Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
/*氏名:保坂優介, 学籍番号:200441141
概要:無いカードを表示する*/
#include<stdio.h>
int char_to_int(char suit)
{
int suit_num;
if (suit == 'S')
{
suit_num = 0;
}
if (suit == 'H')
{
suit_num = 1;
}
if (suit == 'C')
{
suit_num = 2;
}
if (suit == 'D')
{
suit_num ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include<stdbool.h>
#include<assert.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#defin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int S[14] = {};
int H[14] = {};
int C[14] = {};
int D[14] = {};
int n, number;
char suit;
scanf("%d", &n);
for (int i = 0; i < n; i++) {
(void)getchar();
scanf("%c %d", &suit, &number);
if (suit == 'S') S[number] = 1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main (){
int card[5][14] = {0};
int n,d,i,j;
char c;
scanf("%d",&n);
for (j = 0;j < n; j++){
scanf(" %c %d",&c,&d);
if (c == 'S'){
card[1][d] = 1;
}
if (c == 'H'){
card[2][d] = 1;
}
if (c == 'C'){
card[3][d] = 1;
}
if (c == 'D'){
card[4][d] = 1;
}
}
for (i =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int egara(char c){
if(c=='S')return 0;
if(c=='H')return 1;
if(c=='C')return 2;
if(c=='D')return 3;
return 0;
}
char Egara(int n){
if(n==0)return 'S';
if(n==1)return 'H';
if(n==2)return 'C';
if(n==3)return 'D';
return 'S';
}
int main(){
int n,a[4][13],i,j,m;
char c,d;
for(i=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a[4][14]={};
int n,i,j;
char ch;
int b;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf(" %c %d",&ch,&b);
//printf("%c\n",ch);
//printf("%d\n",b);
if(ch=='S') a[0][b]=1;
if(ch=='H') a[1][b]=1;
if(ch=='C') a[2][b]=1;
if(ch=='D') a[3][b]=1;
}
for(i=0;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n,i,j,k;
char a[52];
int b[52];
scanf("%d\n",&n);
for(i=0;i<n;i++){
scanf("%c %d\n",&a[i],&b[i]);
}
for(j=0;j<13;j++){
k=0;
for(i=0;i<n;i++){
if(a[i]=='S'&&b[i]==j+1){
k=1;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long a,b,k,i,d,p,m[100000],j,temp=0,min;
scanf("%lld %lld %lld",&a,&b,&k);
d=b-a;
p=0;
if(k<d){
while(k--)
{
// printf("%lld\n",a);
//a++;
m[p]=a++;
//printf("%lld\n",b);
// b--;
m[p+1]=b--;
p=p+2;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
int a,b,k,i;
while(scanf("%d%d%d",&a,&b,&k)!=EOF)
{
if(k<1||k>100)
break;
if(b-a+1<k*2)
{
for(i=a;i<=b;i++)
printf("%d\n",i);
}
else
{
for(i=a;i<=a+k-1;i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a=0, b=0, k=0;
int i=0;
scanf("%d %d %d", &a, &b, &k);
if(a+(k-1) >= b-(k-1)){
for(i=a; i<=b; i++)
printf("%d\n", i);
return 0;
}
for(i=a; i<a+k; i++)
printf("%d\n", i);
for(i=b-(k-1); i<=b; i++)
printf("%d\n", i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include "stdio.h"
int main()
{
long A, B;
long i;
int k,start;
long smallcount = 0;
long th;
scanf("%ld %ld %d",&A,&B,&k);
th = B - k;
if (th < A)th = A;
for (i = A; i <= B; i++, smallcount++) {
if (smallcount < k) {
printf("%ld\n", i);
}
else if(i > th) {
printf("%ld\n", i);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215576/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215576/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#define Max(x,y) ((x>y)?x:y)
#define min(x,y) ((x<y)?x:y)
int dp[9][55];
int main(){
int i,j,n,a,b,c,f;
int p[]={380,550,850,1520,1870,2244};
int w[]={2,3,5,10,12,15};
for(i=0;i<7;i++)for(j=1;j<=50;j++)dp[i][j]=10000000;
for(i=0;i<6;i++){
for(j=1;j<=50;j++){
if(j-w[i]>=0)d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215633/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dp = dso_local local_unnam... |
/*
* main.c
*
* Created on: 2019/04/20
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
char S[4];
int len = 0;
scanf("%s", S);
len = strlen(S);
if(len==2) {
printf("%s\n", S);
} else {
printf("%c%c%c\n", S... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
char S[3];
int rep;
S[0] = '0';
S[1] = '0';
S[2] = '0';
scanf("%s", S);
if (S[2] == 0)
{
printf("%c%c", S[0],S[1]);
}
else
{
printf ("%c%c%c", S[2], S[1], S[0]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215756/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
int i,j,m,n,t;
scanf("%d", &t);
for(i=0;i<t;i++){
scanf("%d", &n);
long long int sum=0,diff,sum2=0,k=2;
for(j=1;j<n;j++){
if(j<n/2){
sum+=k;
k*=2;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include<stdio.h>
int main(void){
int n;
scanf("%d",&n);
switch(n%10){
case 0:
case 1:
case 6:
case 8:puts("pon");break;
case 3: puts("bon");break;
default:puts("hon");break;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n<=999){
n=n%100;
n=n%10;
}
if(n<=99){
n=n%10;
}
if(n<=9) n=n;
if(n==2||n==4||n==5||n==7||n==9) printf("hon\n");
if(n==0||n==1||n==6||n==8) printf("pon\n");
if(n==3) printf("bon\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n;
scanf("%d", &n);
switch (n % 10) {
case 2:
case 4:
case 5:
case 7:
case 9:
puts("hon");
break;
case 0:
case 1:
case 6:
case 8:
puts(("pon"));
break;
case 3:
puts("bon");
brea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215987/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215987/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n;
scanf("%d",&n);
switch(n%10){
case 2:
case 4:
case 5:
case 7:
case 9:printf("hon"); break;
case 0:
case 1:
case 6:
case 8:printf("pon"); break;
case 3:printf("bon");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216036/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))
int main(int argc, const char *argv[])
{
long long temp1,temp2,temp3,temp4, N, i,min,max;
scanf("%I64d", &N);
long long a[N];
for (i = 0; i < N;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21608/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21608/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
/* ex3_2 "∴(Therefore)"
dada__ */
#include<stdio.h>
int main(void){
int pencil;
scanf("%d", &pencil); //本数Nの入力
switch(pencil%10){ //一の位による場合分け
case 2:case 4:case 5:case 7:case 9:
printf("hon\n"); break;
case 0:case 1:case 6:case 8:
printf("pon\n"); break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216122/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216122/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_2
sak_Citrus*/
#include <stdio.h>
int main(void){
int n;
scanf("%d",&n);
//1桁目だけが欲しいので
n = n % 10;
switch(n){
//3だったらbon
case 3:
printf("bon");
break;
//0,1,6,8だったらpon
case 0:
case 1:
case 6:
case 8:
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216166/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216166/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex3_2
kosaq */
#include <stdio.h>
int main(void){
int n_pen; //n_pen means the number of pencils(N)
int first_digit; // the first digit of N
scanf("%d", &n_pen); //output N
first_digit = n_pen % 10; //this formula represents the first digit of N
if(first_digit == 2 || ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216209/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, const char * argv[]) {
// insert code here...
int N;
scanf("%d", &N);
while (N>=10) {
N = N%10;
}
if (N==2||N==4||N==5||N==7||N==9) {
printf("hon\n");
}else if (N==0||N==1||N==6||N==8){
printf("pon\n");
}else{
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216252/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n;
scanf("%d",&n);
n %=10;
if(n == 2 || n == 4 || n == 5 || n == 7||n == 9)
printf("hon");
else if(n == 0 || n == 1 || n == 6 || n == 8)
printf("pon");
else
printf("bon");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216296/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216296/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
n = n % 10;
if (n == 3)
printf("bon");
else if (n == 0 || n == 1 || n == 6 || n == 8)
printf("pon");
else
printf("hon");
return (0);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216339/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216339/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
int a;
scanf("%d",&a);
if(a % 10 == 2 || a % 10 == 4 || a % 10 == 5 || a % 10 == 7 || a % 10 == 9){
printf("hon");
}else if(a % 10 == 0 || a % 10 == 1 || a % 10 == 6 || a % 10 == 8){
printf("pon");
}else{
printf("bon");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216382/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main( int argc, char *argv[] )
{
int n;
scanf( "%d", &n );
switch( n % 10 ) {
case 2:
case 4:
case 5:
case 7:
case 9:
puts( "hon" ) ;
break;
case 0:
case 1:
case 6:
case 8:
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216432/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int num;
scanf("%d",&num);
switch(num % 10){
case 2:
case 4:
case 5:
case 7:
case 9:
printf("hon");
break;
case 0:
case 1:
case 6:
case 8:
printf("pon");
break;
case 3:
printf("bon");
default:
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int N;
int main()
{
scanf("%d",&N);
if(N%10==2 || N%10==4 || N%10==5 || N%10==7 || N%10==9)
puts("hon");
else if(N%10==0 || N%10==1 || N%10==6 || N%10==8)
puts("pon");
else
puts("bon");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define ll long long
#define int long long
int main()
{
ll t;
scanf("%lld",&t);
for(ll ii=0;ii<t;ii++)
{
int a,b,x,y;
scanf("%lld %lld %lld %lld",&x,&y,&a,&b);
if (x<=0 && y<=0)
{
x=x+2*x;
y=y+2*y;
}
if (x>=0 && ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21657/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#define int long long
#define p (int)(1e9 + 7)
int MOD(int a){
if(a >= 0){
return a % p;
}
else{
return p + a % p;
}
}
int power(int a, int n){
if(n == 0){
return 1;
}
else if(n % 2 == 1){
return MOD(a * power(a, n - 1));
}
else{
return power(MOD(a * a), n / ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216612/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216612/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#define ll long long
#define MOD 998244353
int main(){
int k;
char s[100] = {};
scanf("%d %s", &k, s);
for(int i=0;i<100;i++){
if(s[i]=='\0') break;
if(i>=k){
printf("...\n");
break;
}
putchar(s[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216670/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
int K;
char S[101];
scanf("%d",&K);
scanf("%s",S);
for(int i=0;i<strlen(S);i++){
if(i<K)printf("%c",S[i]);
else{
printf("...");
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(){
int e,d;
char s[101];
char c[101];
scanf("%d",&e);
scanf("%s",s);
d=strlen(s);
//d++;
strncpy(c,s,e);
c[e]='\0';
if(d>e)printf("%s...\n",c);
else printf("%s\n",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long long int t, x, y, a, b, tmp, sum1, sum2;
scanf("%lld", &t);
while (t--) {
scanf("%lld %lld %lld %lld", &x, &y, &a, &b);
if (x>y) {
tmp=x;
x=y;
y=tmp;
}
sum1=x*b;
sum1+=(y-x)*a;
sum2=(x+y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21680/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int n,i,l;
char s[100];
scanf("%d",&n);
scanf("%s",s);
l=strlen(s);
if(n>=l) printf("%s",s);
else {
s[n]='\0';
printf("%s...",s);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216850/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216850/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
int substr( char *t, const char *s, int pos, int len )
{
if( pos < 0 || len < 0 || len > strlen(s) )
return -1;
for( s += pos; *s != '\0' && len > 0; len-- )
*t++ = *s++;
*t = '\0';
return 0;
}
int main() {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void main()
{
int kazu;
char moji[105];
int i;
int a;
a = scanf("%d", &kazu);
a = scanf("%s", moji);
for (i = 0; i < kazu; ++i) {
if (moji[i] == '\0') {
return;
}
printf("%c", moji[i]);
}
for (i = 0; moji[i] != '\0'; ++i);
if (kazu < i) {
printf("...");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216951/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216951/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main() {
int k;
char s[101];
scanf("%d", &k);
scanf("%s", &s);
if (k >= strlen(s)) {
printf("%s", s);
}
else {
s[k] = '\0';
printf("%s...", s);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216995/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216995/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <inttypes.h>
int main(void){
int k;
char s[100]={'\0'};
int len;
int i;
scanf("%d\n",&k);
scanf("%s",s);
len=strlen(s);
if(len>k){
for(i=0;i<k;i++){
printf("%c",s[i]);
}
printf("...");
}else{
printf("%s",s);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217037/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217037/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
int k;
char s[105];
scanf("%d %s", &k, s);
if(strlen(s) <= k){
printf("%s\n", s);
}else{
for(int i=0; i<k; i++)
printf("%c", s[i]);
printf("...\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217088/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217088/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(void){
double stack[128];
int n,i;
char str[128],*adr;
//int l;
while(fgets(str,sizeof(str),stdin)!=NULL){
adr=strtok(str," \n");
n=0;
for(i=0;i<128;i++) stack[i]=0;
while(adr!=NULL){
if(*adr=='+'){
stack[n-2]+=stack[n-1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217181/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217181/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include <stdio.h>
int main()
{
int H, W;
while(scanf("%d %d", &H, &W), (W || H))
{
for(int y = 0; y < H; ++y)
{
for(int x = 0; x < W; ++x)
{
putchar((x + y) % 2 ? '.' : '#');
}
putchar('\n');
}
putchar('\n');
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217253/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217253/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,i,j;
while(1)
{
scanf("%d%d",&a,&b);
if(a==0&&b==0){break;}
for(i=1;i<=a;i++)
{
for(j=1;j<=b;j++)
{
if(j%2==1)
{
if(i%2==1)printf("#");
else printf(".");
}
else
{
if(i%2==1)printf(".");
else printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int H=1,W=1;
int h,w;
while(1){
scanf("%d%d", &H, &W);
if(H==0 && W==0)
break;
for(h=0;h<H;h++){
for(w=0;w<W;w++)
if((h%2 == 0 && w%2 == 0) || (h%2 == 1 && w%2 == 1))
printf("#");
else
printf(".");
printf("\n");
}
printf("\n");
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217361/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217361/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int h,w,i,j;
while(scanf("%d %d",&h,&w)){
int count=0;
if(h==0 && w==0)break;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(count==0){
printf("#");
count=1;
}
else{
printf(".");
count=0;
}
}
printf("\n");
if(w%2 ==0){
if(count==0)count=1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217404/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217404/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int h,w,i,j;
while(1){
scanf("%d %d",&h, &w);
if(h == 0 && w == 0)break;
for(i = 1;i <= h;i++){
for(j = 1;j <= w;j++){
if(i % 2 != 0 && j % 2 != 0){
printf("#");
}else if(i % 2 == 0 && j % 2 == 0){
printf("#");
}
else{
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217491/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217491/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int h,w,i,j;
while(1){
scanf("%d%d",&h,&w);
if(h==0&&w==0)break;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(i%2==j%2)printf("#");
else printf(".");
}printf("\n");}printf("\n");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217541/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217541/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<limits.h>
int main(void){
int H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0 && W==0)break;
else{
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(i%2 == 0){
if(j%2 == 0)printf("#");
else printf(".");}
else {
if(j%2 == 0)printf(".");
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217585/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217585/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0&&W==0)break;
for(j=1;j<=H;j++){
for(i=1;i<=W;i++)
{if(i%2==0&&j%2==1){
printf(".");
}else if(i%2==1&&j%2==0){
printf(".");
}else{printf("#");}
}
printf("\n");
}
printf("\n");
}retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217628/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217628/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int H,W;
int i,j;
scanf("%d %d", &H, &W);
while(H!=0 || W!=0){
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(i%2 == 0){
if(j%2 == 0) printf("#");
else printf(".");
}else{
if(j%2 == 0) printf(".");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217679/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217679/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int h;
int w;
int a;
int b;
scanf("%d %d", &h, &w);
while (1){
if ((h == 0) && (w == 0)){
break;
}
for (a = 1; a <= h; a++){
for (b = 1; b <= w; b++){
if ((a % 2 == 0) && (b % 2 == 0)){
printf("#");
}
else if ((a % 2 == 0) && (b % 2 == 1)){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int i,j,h,w;
scanf("%d %d",&h,&w);
while((h != 0) || (w != 0)){
for(i=0;i<h;i++){
if((i % 2) == 0){
for(j=0;j<w;j++){
if((j % 2) == 0){
printf("#");
} else {
printf(".");
}
}
printf("\n");
} else {
for(j=0;j<w;j++){
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217765/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217765/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int h[301];
int w[301];
int i;
int t;
int u;
int v;
int x;
int y;
for (i = 1; i <= 300; i++) {
scanf("%d %d", &h[i], &w[i]);
if ((h[i] == 0) && (w[i] == 0))break;
}
for (t = 1; t <= 300; t++) {
if (i == t)break;
for (v = 1; v <= h[t]; v++) {
y = v % 2;
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217808/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217808/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int H,W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0&&W==0){
break;
}
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if(H==1&&W==1){
printf("#\n");
}else if((i+j)%2==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
for(;;){
int h, w, i, j;
scanf("%d %d", &h, &w);
if(h == 0 && w == 0)
break;
for(i = 0; i < h; i++){
for(j = 0; j < w; j++)
putchar((i+j) % 2 ? '.' : '#');
putchar('\n');
}
putchar('\n');
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217909/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int a,i,j,k,rows,cols;
for(a=0;;a++)
{
scanf("%d %d",&rows,&cols);
if(rows==0 && cols==0)
break;
else
{
k = 1;
for(i=1; i<=rows; i++)
{
for(j=1; j<=cols; j++)
{
if(k == 1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217952/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217952/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int H, W,i,j;
while(1){
scanf("%d %d",&H,&W);
if(H==0&&W==0)
break;
for(i=1;i<=H;i++){
for(j=1;j<=W;j++){
if(j%2==1){
if(i%2==1)printf("#");
else printf(".");
}else{
if(i%2==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int H,W;
int i,j;
int plus = 0;
while(1){
scanf("%d %d", &H, &W);
if(W%2 == 1){
plus = 1;
}
if(H == 0&& W ==0){
break;
}
for(i =0;i<H;i++){
if(W == 1){
if(i%2 == 0){
printf("#");
}else{
printf(".");
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int H;
int W;
int i,j = 0;
while(1){
scanf("%d %d",&H,&W);
if ((H==0)||(W==0))break;
for(i=0;i<H;i++){
for(j=0;j<W;j++){
if((j%2)==(i%2)){
printf("#");
}else{
printf(".");
}
}
printf("\n");
}
printf("\n");
i++;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int
main (void)
{
int h, w, f;
while (1)
{
scanf ("%d%d", &h, &w);
if (h == 0 && w == 0)
break;
f = w << 1;
for (; h > 0; h--)
{
for (w = f >> 1; w > 0; w--)
{
if ((f & 0x1) == 0)
printf ("#");
else
printf (".");
f ^= 0x1;
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int h,w;
while(1){
scanf("%d %d",&h,&w);
if(h==0&&w==0) break;
for(int i=0; i<h; i++){
for(int j=0; j<w; j++){
if((i + j) % 2==0){
printf("#");
}else{
printf(".");
}
}printf("\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int h,w,i,j;
while(1){
scanf("%d%d",&h,&w);
if(h==0&&w==0) break;
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if ((i+j)%2==0) printf("#");
else printf(".");
}
printf("\n");
}
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int h,w;
char s;
s='#';
while (1)
{
scanf("%d",&h);
scanf("%d",&w);
if(w == 0 && h == 0 )break;
for (int i = 1; i <= h; i++)
{
for (int j = 1; j <= w; j++)
{
if( (i % 2 != 0 && j % 2 == 0) || (i % 2 == 0 && j % 2 != 0)) s = '.';
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218269/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int i,a,b,j;
while(1){
scanf("%d%d",&a,&b);
if(a==0&&b==0){break;}
for(i=1;i<=a;i++){
for(j=1;j<=b;j++){
if((!(i%2==0))&&(j%2==0)||(!(j%2==0))&&(i%2==0))printf(".");
else printf("#");
}printf("\n");
}printf("\n");
}
return 0;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218311/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218311/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n;
scanf("%d",&n);
int i,j,N[n+10];
for(i=0; i<n; i++)
{
scanf("%d",&N[i]);
}
int temp,flag=0;
if(N[1]>N[0]) temp=N[1]-N[0];
else temp = N[0]-N[1];
if(N[1]<N[0])
{
for(i=0,j=1; i<n-1,j<n; i++,j++)
{
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21837/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int i,j,h;
int H, W;
for(h=0;;h++){
scanf("%d %d", &H, &W);
if(H == 0 && W == 0){
break;
}
for(i=0; i<H; i++){
for(j=0; j<W; j++){
if((i+j) % 2){
printf(".");
}
else{
printf("#");
}
}
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218412/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218412/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int h[300],w[300],i,j,k=0,num=0,num_=0;
while(1){
scanf("%d%d",&h[k],&w[k]);
if(h[k]==0&&w[k]==0){
break;
}
k++;
}
k=0;
while(1){
if(h[k]==0&&w[k]==0){
break;
}
for(i=0;i<h[k];i++){
for(j=0;j<w[k];j++){
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218463/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218463/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/**************************************
* AUTHOR : SHAKIL MOSHARROF 202014048 *
* NICK : xBCC [2013-2019] C/N:1819 *
* INSTITUTION : MIST CSE 20 *
***************************************/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
#include<float.h>
#define PI 3.14
int main() ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218564/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218564/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
long long int a,b,k;
scanf("%llu %llu %llu",&a,&b,&k);
if(a<k){
k=k-a;
a=0;
if(b<k){
b=0;
}else{
b=b-k;
}
}else{
a=a-k;
}
printf("%llu %llu\n",a,b);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218614/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218614/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main()
{
long A,B,K;
scanf("%ld%ld%ld",&A,&B,&K);
if(A+B>=K)
{
if(A>=K)
{
A=A-K;
printf("%ld %ld",A,B);
exit(0);
}
else if(B>=K-A)
{
B=B-(K-A);
printf("%d %ld",0,B);
}
}
else
{
printf("%d %d",0,0);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218658/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218658/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
long long int i, j;
long long int a,b,k;
scanf("%lld %lld %lld",&a,&b,&k);
if (a-k>=0) {
a-=k;
k=0;
}
if (a-k<0) {
a-=k;
k=a*-1;
a=0;
}
b-=k;
if (b<0) {
b=0;
}
printf("%lld %lld\n",a,b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218700/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define MAX 10^12
long long int A,B,K;
int main(int argc, char const *argv[])
{
scanf("%lld", &A);
scanf("%lld", &B);
scanf("%lld", &K);
if (A <= K)
{
K = K-A;
A = 0;
if (B <= K)
{
B = 0;
}
else{
B = B-K;
K = 0;
}
}
else{
A = A-K;
K = 0;
}
printf("%lld %lld... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218751/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218751/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include "stdio.h"
#include "stdarg.h"
#include "math.h"
#include "limits.h"
#define SWAP(type,a,b) do{type c=a;a=b;b=c;}while(0)
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define DEBUG(format,a) do{printf(#a" : "#format,a);}while(0)
int main() {
long int k, a, b, ans;
scanf("%ld%ld... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218801/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218801/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#if 0
cat <<EOF >mistaken-paste
#endif
// thx Ebi-chan!
#pragma GCC diagnostic ignored "-Wincompatible-pointer-types"
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#define BIG 2000000007
#define VERYBI... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218845/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218845/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.hwll = type { i64, ... |
#include <stdio.h>
int main(void){
int n;
scanf("%d", &n);
int list[10][10];
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++) {
list[i][j] = 0;
}
}
int head,tail,number;
for (int i = 1; i <= n; i++) {
number = i;
tail = number%10;
while (number > 0) {
head = nu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218889/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218889/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <limits.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218939/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218939/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
int x;
int i;
scanf("%d", &x);
for(i=1; i<360*x; i++){
if(360*i%x==0){
printf("%d\n", 360*i/x);
return 0;
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_218982/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_218982/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int i, N;
long long T[1001], A[1001];
scanf("%d", &N);
for (i = 1; i <= N; i++) scanf("%lld %lld", &(T[i]), &(A[i]));
long long g[2];
for (i = 2, T[0] = T[1], A[0] = A[1]; i <= N; i++) {
g[0] = (T[0] - 1) / T[i] + 1;
g[1] = (A[0] - 1) / A[i] + 1;
if (g[0] > g[1]) {
T[0]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219039/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219039/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#define MAX 1002
int marker[MAX][MAX],avail[MAX],demand[MAX];
int main()
{
int m,n,i,j,d,c,need,beauty;
scanf("%d %d",&n,&m);
for(i=0;i<n;i++)
{
scanf("%d %d",&c,&d);
marker[d][c]++;
avail[d]++;
}
for(beauty=i=0;i<m;i++)
{
scanf("%d %d",&c,&d);
if(marker[d][c]>0)
{
marker[d][c]--... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21909/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21909/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
int inList( char a[], char b[], int n );
int n, d, t[1005];
char a[1005][25], b[1005][25], A[1005][25], B[1005][25];
int main()
{
int k = 0;
int i, j;
scanf("%d %d", &n, &d);
for( i = 1; i <= n; i++ )
scanf("%s %s %d", a[i], b[i], &t[i]);
for( i =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <inttypes.h>
#define MAX 600000
char S[MAX];
int wariate[MAX];
int fromCount = 0;
int from[MAX];
int main(void) {
int n, i;
uint64_t sum;
if (fgets(S, sizeof(S), stdin) == NULL) return 1;
for (n = 0; S[n] != '\0' && S[n] != '\n'; n++);
if (S[0] == '<') from[fromCount++] = 0;
for (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219198/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219198/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fromCount = dso_local loca... |
#include<stdio.h>
#include<stdlib.h>
int main()
{
int N, A, B;
scanf("%d%d%d", &N, &A, &B);
if(abs(A-B)%2)//間のマスが偶数
{
puts("Borys");
}
else
{
puts("Alice");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219240/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219240/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int n, a, b;
scanf("%d%d%d", &n, &a, &b);
if(a - b & 1) puts("Borys");
else puts("Alice");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219291/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219291/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int n,m,p,i,sum,ans;
while(1){
scanf("%d %d %d",&n,&m,&p);
if(!(n+m+p)) break;
int a[n];
sum=0;
for(i=0;i<n;i++){
scanf("%d",&a[i]);
sum+=a[i];
}
sum*=100;
sum=sum-((sum*p)/100);
if(!a[m-1])
printf("%d\n",0);
else{
a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219334/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219334/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
int t,n,i,j,g,h;
scanf("%d",&t);
for(j=0;j<t;++j)
{
h=0;
scanf("%d",&n);
g=pow(2,n);
for(i=1;i<=(n/2)-1;++i)
{
g+=pow(2,i);
}
for (i=n/2;i<=n-1;++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef long long ll;
#ifdef __linux__
#define LLD "%lld"
#else
#define LLD "%I64d"
#endif
int ply[100006];
int
descomp (const void *a, const void *b)
{
int x = *(int *)a;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21945/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21945/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int N ;
scanf("%d", &N) ;
int arr[3] , i , rest = N ;
for(i = 0 ; i <3 ; i++) {
arr[i] = rest %10 ;
rest = rest / 10 ;
}
if(arr[0] == arr[2]){
printf("Yes");
}else{
printf("No");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219493/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c,d;
scanf("%d",&a);
b=a%10;
c=a%100-b;
d=(a-c-b)/100;
if (b==d)
{
printf("Yes\n");
}else
{
printf("No\n");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219536/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219536/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define pi 3.14159265
int main()
{
float d,h,v,e,r;
scanf("%f%f%f%f",&d,&h,&v,&e);
r=d/2;
if((v/(r*r)*pi)-e<=0)
printf("NO");
else
printf("YES\n%f",h/((v/((r*r)*pi)-e)));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int n;
int a, b;
scanf("%d", &n);
a = n / 100;
b = n % 10;
if(a == b){
printf("Yes");
}else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219637/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219637/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int N;
int first;
int last;
scanf("%d",&N);
first = N/100;
last = N - 100*first;
last = N - 10*(last/10) - 100*first;
if(last == first)
{
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219680/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219680/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,m,i,minf,minr,ans;
minf=10*10*10*10*10;
minr=10*10*10*10*10;
scanf("%d %d %d",&a,&b,&m);
int frz[a],range[b],x[m],y[m],c[m];
for(i=0;i<a;++i)
{
scanf("%d",&frz[i]);
if(minf>frz[i]) minf=frz[i];
}
for(i=0;i<b;++i)
{
scanf("%d",&range[i]);
if(mi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219723/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
struct discount {
int x;
int y;
int dis_fee;
};
void cpy_array(int *dst_array, int *src_array, int num) {
for (int i = 0; i < num; i++) {
dst_array[i] = src_array[i];
}
}
void sort(int *array, int left, int right) {
/*
for (int i = left; i <=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219767/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.discount = type { i... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
long long arr[2000001],brr[2000001],mod=1000000000+7;
char str[2000001],s1[2000001];
int func(const void *a, const void *b)
{
return (*(int*)a-*(int*)b);
}
long long max(long long a, long long b)
{
return (a>b)?a:b;
}
long long min(long long a, long long b)
{
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21981/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21981/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unname... |
#include<stdio.h>
int main()
{
int k,x,i;
scanf("%d%d",&k,&x);
for(i=0;i<2*k-1;i++){
if(i<2*k-1)
printf("%d ",x-k+1+i);
else if(i==2*k-1)
printf("%d ",x);
else
printf("%d ",x-k+1+i);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219853/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219853/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
int start = b+1-a;
for(int i =1 ;i<=(a-1)*2 + 1;i++)
{
printf("%d ",start++);
if(i!=(a-1)*2+1)
printf(" ");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219897/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219897/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main ( ) {
int a, b, c, d, i, j , k;
scanf("%d", &a);
b=0;
c=0;
char jaber[a];
for(i=0;i<a; i++){
scanf("%s", &jaber[i]);
if((jaber[i]=='s'|| jaber[i]=='S')&&(jaber[i-1]=='f'||jaber[i-1]=='F')&& i>=1){
b++;
}
else if((jaber[i]=='f'|| jaber[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int k,x,i,j,low,high;
scanf("%d%d",&k,&x);
low=(x-(k-1));
high=(x+(k-1));
for(i=low;i<=high;i++){
printf("%d ",i);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_219983/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_219983/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.