Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> #include<stdlib.h> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while(x->left != NIL) x = x->left; return x; } Node treeMaximum(Node x){ while(x->right != NIL...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212746/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212746/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.node = type { ptr, ...
#include<stdio.h> #include<string.h> #include<stdlib.h> long long int n,i,j,u,m,max,d,t,s,uu,a,b,c,d; int main() { scanf("%lld %lld %lld %lld",&n,&m,&a,&b); max=a+b-1; for(i=1;i<m;i++) { scanf("%lld %lld",&c,&d); if(c-a<(b-d)*(b>d ? 1 : -1)) { //printf("IMPOSSIBLE"); //return 0; uu=1; } t=((c-a)-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21279/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21279/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> struct node{ struct node *right; struct node *left; struct node *parent; int key; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ } Node treeMaximum(Node x){ } Node treeSearch(Node u, int k){ } Node treeSuccessor(Node x){ } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212832/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212832/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.node = type { ptr, ...
#include <stdio.h> #include <string.h> #include <stdlib.h> struct Node{ int key; struct Node *right,*left,*parent; }; struct Node *root,*NIL; void insert(int k){ struct Node *y=NIL; struct Node *x=root; struct Node *z; z=malloc(sizeof(struct Node)); z->key=k; z->left=NIL; z->right=NIL; while(x!=N...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212883/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212883/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.Node = type { i32, ...
// Aizu Vol-2 0240: Interest Rates // 2017.8.7 #include <stdio.h> #include <math.h> int main() { int n, y, b, r, t; int i, id; double max, m, yy; while (1) { scanf("%d", &n); if (n == 0) break; scanf("%d", &y), yy = y; for (id = -1, i = 0; i < n; i++) { scanf("%d%d%d", &b, &r, &t); if (t == 1) m = yy...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_212926/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_212926/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> int main() { char temp[10]={'C','O','D','E','F','O','R','C','E','S'}; int i,val=0,state=0,count=0,set=0; char s[1000000]; scanf("%s",s); for(i=0;i<strlen(s);i++) { if(s[i]==temp[val]) { if(count>0&&i!=strlen(s)-10+val&&set==0) continue; if(set=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21297/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21297/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" @__const.main.temp = private ...
#include<stdio.h> #include<stdlib.h> #define min(a,b) a<b?a:b int main() { long long n,a[100001],s1=0,t,m,i; scanf("%lld",&n); for(i=0;i<=n;i++) scanf("%lld",&a[i]); for(i=0;i<n;i++) { scanf("%lld",&m); t=min(m,a[i]); a[i]-=t; s1+=t; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213011/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213011/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,i; scanf("%d", &N); long long int A[100005],B[100005]; long long int max=0; for(i=0;i<N+1;i++){ scanf("%lld", &A[i]); } for(i=0;i<N;i++){ scanf("%lld", &B[i]); } for(i=0;i<N;i++){ if(B[i]>=A[i]){ max+=A[i]; B[i]-=A[i]; //A[i]=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213055/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213055/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) { long n; scanf("%ld", &n); long* a = calloc(n + 1, sizeof(long)); for (long i = 0; i < n + 1; i++) { scanf("%ld", &a[i]); } long* b = calloc(n, sizeof(long)); for (long i = 0; i < n; i++) { scanf("%ld", &b[i]); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213099/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 HEIGHT 12 #define WIDTH 6 enum { YET, ALREADY, LEFT, UP, RIGHT, DOWN }; int calcChain( void ); int deleteBlock( void ); int findGroup( int, int ); int findGroup_body( int, int, char, int ); void deleteGroup( int, int ); void deleteGroup_body( int, int, char, int ); void fallBlock( void ); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213149/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213149/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.FIELD = type { i8, ...
#include <stdio.h> int main(void){ // Your code here! int a,b,x,y; scanf("%d%d%d%d",&a,&b,&x,&y); if(a==x) printf("0"); else printf("1"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213192/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213192/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 <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <limits.h> #include <math.h> int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */ int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */ int cmp_char(con...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213235/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213235/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 M_1,D_1,M_2,D_2; scanf("%d %d",&M_1,&D_1); scanf("%d %d",&M_2,&D_2); if(M_1!=M_2 && D_1>D_2){ printf("1"); }else{ printf("0"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213279/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213279/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<stdint.h> #include<tgmath.h> #include<stdbool.h> //#include<sys/queue.h> #include<time.h> #define ll long long #define min(a, b) ((a) > (b) ? (b) : (a)) #define max(a, b) ((a) > (b) ? (a) : (b)) int n, a, b, c, l[9], ans = 1001001001; int main(){ scanf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213321/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" @ans = dso_local local_unna...
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) int* calc(int *l,int n,int a){ int *dp=(int *)calloc(1<<n,sizeof(int)); dp[0]=1000000; for(int i=1;i<(1<<n);i++){ int su...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213387/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213387/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 X,Y; scanf("%d %d",&X,&Y); if(Y<2*X||4*X<Y){ printf("No\n"); }else if(Y%2==1){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213437/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213437/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 count = 0, x, y; scanf("%d %d", &x, &y); for (int i = 0; i < y; i++) { for (int j = 0; j < y; j++) { if (i * 2 + j * 4 == y && i + j == x) { count += 1; } } } if (count >= 1) { printf("Yes"); } else { printf("No"); } return 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213480/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213480/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 X; int Y; scanf("%d", &X); scanf("%d", &Y); int kame = Y - 2 * X; int turu = 4 * X - Y; if (kame % 2 == 0 && turu % 2 == 0 && kame >= 0 && turu >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213523/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213523/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> signed main(){ int X,Y; scanf("%d %d",&X,&Y); if(X*2<=Y&&Y<=X*4&&Y%2==0){ printf("Yes\n"); } else{ printf("No\n"); } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213567/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213567/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 a[64]; int n,m; int main() { int i; scanf("%d %d",&n,&m); for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;a[i] && (i<m || a[i]==a[m-1]);i++); printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21361/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21361/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 X, Y; scanf("%d %d", &X, &Y); if(Y%2 == 0){ if((2*X>=Y/2) && (X<=Y/2)){ printf("Yes\n"); }else{ printf("No\n"); } }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213660/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213660/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> #include <math.h> #define PI 3.141592653589793 int main(void) { int flg=0; int x, y; scanf("%d%d", &x, &y); for (int i = 1; i <= x; i++) { if ((i * 2) + ((x - i) * 4) == y) { flg = 1; } if ((i * 4) + ((x - i) * 2) == y) { flg = 1; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213703/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213703/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 x , y; scanf("%d %d",&x ,&y); int flag = 0; for(int i = 0;i <= x;i ++){ int t = x - i; if(i*2 + t*4 == y){ flag ++; i += x+1; } } if(flag != 0){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213747/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213747/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 X,Y; int t=0; scanf("%d %d",&X,&Y); for(int i=2*X;i<4*X+2;i+=2){ if(Y==i){ t=1; break; } } if(t==1)printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213798/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213798/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[7]; scanf("%s",s); if(s[0]=='S') puts("Cloudy"); else if(s[0]=='C') puts("Rainy"); else puts("Sunny"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213840/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213840/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() { char str1[10],str2[]= {"Sunny"},str3[]= {"Rainy"},str4[]= {"Cloudy"}; scanf("%s",&str1); if (strcmp(str1,str2)==0) { printf("Cloudy"); } if (strcmp(str1,str3)==0) { printf("Sunny"); } if (strcmp(str1,str4)==0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213905/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){ char S[10]; scanf("%s",S); if(S[0]=='S'){ printf("Cloudy"); }else if(S[0]=='C'){ printf("Rainy"); }else { printf("Sunny"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_213956/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_213956/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){ char wether[7]; char cycle[3][7] = { "Sunny", "Cloudy", "Rainy" }; int a; scanf("%s", wether); if(strcmp(&cycle[0][0], wether) == 0) a = 1; else if(strcmp(&cycle[1][0], wether) == 0) a = 2; else a = 0; printf("%s\n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214005/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214005/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" @__const.main.cycle = priva...
#include<stdio.h> #include<string.h> int main(){ char weather[10] = "\0"; char *weather_kind[] = {"Sunny", "Cloudy", "Rainy"}; scanf("%s", weather); int i; for(i = 0; i<3; i++){ if(strcmp(weather, weather_kind[i]) == 0){ break; } } printf("%s", weather_kind[(i+1)%3]); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214063/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214063/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[10] ; scanf("%s", &s); if(s[0]=='S') { printf("Cloudy\n"); } else if(s[0]=='C') { printf("Rainy\n"); } else if(s[0]=='R') { printf("Sunny\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214120/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214120/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){ char weather[20]; scanf("%s",&weather); if(strcmp(weather,"Sunny")==0){ printf("Cloudy"); }if(strcmp(weather,"Cloudy")==0){ printf("Rainy"); }if(strcmp(weather,"Rainy")==0){ printf("Sunny"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214179/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214179/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...
/*2019/09/13 */ #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define MOD 1000000007 #define MIN 999999999 #define MAX -999999999 typedef long long int ll; typedef unsigned long long int ull; void llswap(ll *x,ll *y){ll temp;temp=*x;*x=*y;*y=temp;} void swap(int *x,int *y){int tmp;tmp=*x;*x=*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214229/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214229/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> typedef long long int int64; typedef struct directedGraph{ int *vertex; int *next; int *start; int v,e; int pointer; } graph; graph* newGraph(const int v,const int e){ graph *g=(graph *)malloc(sizeof(graph)); g->vertex=(int *)calloc(e,sizeof(int)); g->next=(int *)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214272/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214272/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.directedGraph = typ...
#include<stdio.h> void init(int[4][13]); int toSuitInt(char); char toSuitChar(int); void showMissing(int[4][13]); int main(void) { char c; int i,n,x; int isHere[4][13]; init(isHere); scanf("%d",&n); for(i=0;i<n;i++) { scanf(" %c %d",&c,&x); isHere[toSuitInt(c)][x-1]=1; } showMissing(is...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214322/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214322/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; char suits[52]; int ranks[52]; int i, j; int cards[4][14] = {{}}; scanf("%d ", &n); for(i = 0; i < n; ++i) { scanf("%c %d ", &suits[i], &ranks[i]); if(suits[i] == 'S') { cards[0][ranks[i]] = 1; } else if(suits[i] == 'H') { cards[1][ran...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214366/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[4][13] = {0}; int n,rank; char c; register int i,s; scanf("%d",&n); for(i = 0;i < n;i++){ scanf("%s %d",&c,&rank); switch(c){ case 'S': a[0][rank - 1] = 1; break; case 'H': a[1][rank - 1] = 1; break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214416/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214416/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 getDiv(int last,int num); int main(){ int n,i,a; scanf("%d",&n); int* rate; int maxRate=0; rate=(int*)malloc(n*sizeof(int)); for(i=0;i<n;i++){ scanf("%d",&rate[i]); maxRate+=rate[i]; } int div=getDiv(1,n); int thisRate; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21446/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21446/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, i, s, group[4], taxi = 0; group[0] = group[1] = group[2] = group[3] = 0; scanf ("%d", &n); for (i = 0; i < n; i++) { scanf ("%d", &s); group[s-1]++; } taxi += (group[1]+1)/2 + group[2] + group[3]; group[0] -= group[1]%2*2 + group[2]; if (group[0] > 0) taxi += (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21451/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 i,j; char cards[] = {'S', 'H', 'C', 'D'}; char e; int k; int no; int num; int v[4][13]; for(i=0;i<4;i++){ for(j=0;j<13;j++){ v[i][j] = 0; } } scanf("%d",&no); for(i=0;i<no;i++){ scanf(" %c",&e); scanf("%d",&num); switch(e){ case 'S' : k = 0; break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214553/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214553/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" @__const.main.cards = priva...
#include<stdio.h> int main(void){ int n,t[4][13],i,j,k; char e; for(i=0;i<=3;i++){ for(j=0;j<=12;j++){ t[i][j]=0; } } scanf("%d",&n); for(k=1;k<=n;k++){ scanf("%s %d",&e,&j); switch (e){ case 'S': i=0; break; case 'H': i=1; break; case 'C': i=2; break; case 'D': ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214603/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214603/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 cards[4][14] = {0}; int n, i, j, tmp; char c,c2; scanf("%d",&n); for (i = 0; i < n; ++i) { scanf(" %c %d%c",&c, &tmp, &c2); switch(c) { case 'S': cards[0][tmp] = 1; break; case 'H': cards[1][tmp] = 1; break; case 'C': cards[2][tmp] = 1; b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214647/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][13],n,i,j,k,x; char m; for(i=0;i<4;i++){ for(j=0;j<13;j++){ a[i][j]=0; } } scanf("%d",&n); for(k=0;k<2*n;k++){ scanf("%c %d",&m,&x); if(m=='S')a[0][x-1]=1; else if(m=='H')a[1][x-1]=1; else if(m=='C')a[2][x-1]=1; else if(m=='D')a[3][x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214690/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214690/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,n,t,w[13],x[13],y[13],z[13]; char a; for(i=0;i<13;i++){ w[i]=0; x[i]=0; y[i]=0; z[i]=0; } scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s %d",&a,&t); if(a=='S'){ w[t-1]=1; } else if(a=='H'){ x[t-1]=1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214733/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214733/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,A[4][13]; int I,j,k; char i; for(I=0; I<4; I++) for(j=0; j<14; j++) A[I][j]=0; scanf("%d",&n); for(k=0; k<n; k++) { scanf(" %c %d",&i,&j); if(i=='S')I=0; if(i=='H')I=1; if(i=='C')I=2; if(i=='D')I=3; A[I][j-1]=1; } for(I=0; I<4; I++) for(j=0; j<13; j++) { if(I==0)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214777/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214777/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 ) { short n, k; scanf( "%hi %hi", &n, &k ); --k; short a[n]; short i; for ( i = 0; i < n; i++ ) { scanf( "%hi", &a[i] ); } short kol = 0; for ( i = 0; i < n; i++ ) { if ( a[i] >= a[k] && a[i] > 0 ) { kol++; } } printf( "%hi", kol ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21482/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21482/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, rnk, x, i, j, a[4][13]; char ptn; for(i = 0; i < 4; i++){ for(j = 0; j < 13; j++){ a[i][j] = 0; } } scanf("%d%*c", &n); for(x = 0; x < n; x++){ scanf("%c%d%*c", &ptn, &rnk); switch(ptn){ case 'S' : i = 0; break; case 'H' : i = 1; break; case 'C' ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214870/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214870/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,i,j,k,c[4][13],y; char x; for (i = 0; i < 4; i++){ for (j = 0; j < 13; j++){ c[i][j]=0; } } scanf("%d",&n); for (k = 0; k < n*2; k++){ scanf("%c %d",&x,&y); if (x == 'S'){ c[0][y-1]=1; } else if (x == 'H'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214920/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214920/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 t[4][14]; int n, i,j,c; char m, d; for(i=0; i < 4; i++){ for(j=0; j < 14; j++){ t[i][j]=0; } } scanf("%d", &c); for(i = 0; i < c; i++){ scanf("%c", &d); scanf("%c %d", &m, &n); if(m == 'S'){ t[0][n] = 1; } else if(m == 'H'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_214964/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_214964/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 <stdbool.h> int main(){ int i, j, n; char mark; char marks[4]={'S', 'H', 'C', 'D'}; int num; bool cards[4][13]={false}; scanf("%d ", &n); for(i=0;i<n;i++){ scanf("%c %d ", &mark, &num); for(j=0;j<4;j++){ if(mark==marks[j]){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215006/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215006/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" @__const.main.marks = priva...
#include <stdio.h> int min(int a,int b) { if(a<b) return a; return b; } int max(int a, int b) { if(a>b) return a; return b; } int main(void) { int n,a[100005],i=0; scanf("%d",&n); while(i<n) { scanf("%d",&a[i++]); } printf("%d %d\n",a[1]-a[0],a[n-1]-a[0]); i=1; while(i<n-1) { printf("%d %d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21505/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21505/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> #include<stdlib.h> #define SIZE 1000005 int hash[SIZE]; int main() { int i,n,max=0,num,count=0; char ch; scanf("%d",&n); getchar(); for(i=0;i<n;i++) { scanf("%c%d",&ch,&num); if(ch=='+') { hash[num]=1; count+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21510/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21510/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,n,cards[256][14]; int mark[4]={'S','H','C','D'}; for(i=0;i<256;i++){ for(j=0;j<14;j++){ cards[i][j]=0; } } scanf("%d\n",&n); for(i=0;i<n;i++){ char c=0; int num=0; scanf("%c %d\n",&c,&num); cards[c][num]=1; } for(j=0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215143/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215143/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" @__const.main.mark = privat...
#include <stdio.h> int main(void){ int i,j,n,m,cn; char c,s[5]={'S','H','C','D','\0'}; static int card[4][13]; scanf("%d\n",&n); for(i=0;i<n;i++){ scanf("%c %d\n",&c,&m); for(j=0;j<4;j++) if(s[j]==c) card[j][m-1]=1; } for(i=0;i<4;i++) for(j=0;j<13;j++) if(card[i][j]==0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215187/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215187/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" @__const.main.s = private u...
#include <stdio.h> #define max(a,b) ((a>b) ? a : b) int n, kontrolsad[1000001]={}, kontrol[1000001]={}, sonuc=0, kapasite = 0, bastaKisiSayisi = 0, sayi[1000001]={}; char artiEksi[101]; int main() { scanf("%d", &n); for (int i = 0; i < n; i++) { scanf(" %c %d", &artiEksi[i], &sayi[i]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21523/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21523/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" @kontrolsad = dso_local local...
#include <stdio.h> int main(void){ int n, b; int S[14], H[14], C[14], D[14]; int i; char a; for(i=0; i<13; i++){ S[i] = 0; H[i] = 0; C[i] = 0; D[i] = 0; } scanf("%d", &n); for(i=0; i<n; i++){ scanf("%*c%c %d", &a, &b); if(a == ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215273/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 S[13]={}; int H[13]={}; int C[13]={}; int D[13]={}; char val; int num,N; scanf("%d\n",&N); for(int i = 0; i < N; i++){ scanf("%c %d\n",&val,&num); if(val=='S') S[num-1]=1; if(val=='H') H[num-1]=1; if(val=='C') C[num-1]=1; if(val=='D') D[num-1]=1; } for(int i = 0; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215316/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215316/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[1000005],x,n,v=0,ans=0; char c; scanf("%d",&n); getchar(); for(i=0;i<1000005;i++) a[i]=-1; for(i=0;i<n;i++) { scanf("%c",&c); scanf("%d",&x); getchar(); if(c=='-') { if(a[x]==-1) { v++; ans=ans+1; } else { a[x]=-1; v++; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21536/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(){ long long a,b; int k,i; scanf("%lld%lld%d",&a,&b,&k); if((b-a)>=2*k){ for(i=a;i<a+k;i++){ printf("%d\n",i); } for(i=b-k+1;i<=b;i++){ printf("%d\n",i); } }else{ for(i=a;i<=b;i++){ printf("%d\n",i); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215424/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215424/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,b,k; scanf("%d%d%d",&a,&b,&k); int x=0; int y=k; int i=0; while(x<k&&a+x<b-k+1){ printf("%d\n",a+x); x++; } while(y!=0){ if(b-y+1>=a){ printf("%d\n",b-y+1); } y--; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215468/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215468/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){ static int a,b,k ; scanf ("%d%d%d",&a,&b,&k) ; if ( a+k-1<b-k+1 ){ for (int i=0; i<k; i++ ){ printf ("%d\n",a+i) ; } for (int i=0; i<k; i++ ){ printf ("%d\n",b-k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215510/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215510/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" @main.a = internal global i...
#include <stdio.h> int main(){ long int a,b,i; int k; scanf("%ld %ld %d",&a,&b,&k); if(b-a>k){ for(i=0;i<k;i++){ if(b-k+1>a+i)printf("%ld\n",a+i); } for(i=k-1;i>=0;i--){ if(a+k-1<=b-i)printf("%ld\n",b-i); } }else{ for(i=a;i<=b;i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215561/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215561/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, k; scanf("%d %d %d", &a, &b, &k); int i; for (i = a; i <= b; i++) if (i - a < k || b - i < k) printf("%d\n", i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215604/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215604/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(){ char S[4]; scanf("%s",S); if(strlen(S)==2) printf("%s\n",S); else printf("%c%c%c\n",S[2],S[1],S[0]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215684/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215684/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){ char moji[3]; int tmp; scanf("%s",moji); if(strlen(moji)==3){ tmp=moji[0]; moji[0]=moji[2]; moji[2]=tmp; } printf("%s",moji); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215741/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215741/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) { char S[4]; scanf("%s", S); int N = strlen(S); if(N == 2) { printf("%s\n", S); } else { printf("%c%c%c\n", S[2], S[1], S[0]); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215785/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215785/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 func1(int n); int main(void) { int n; scanf("%d", &n); while(n >= 10) { if(n < 100) { n %= 10; } else if(n < 1000) { n %= 100; } } func1(n); return 0; } void func1(int n) { if(n == 2 || n == 4 || n == 5 || n == 7 || n == 9) { printf("hon"); } else i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215828/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215828/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 % 10 == 3) { printf("bon"); }else if(N % 10 == 0 || N % 10 == 1 || N % 10 == 6 || N % 10 == 8) { printf("pon"); }else { printf("hon"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215871/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215871/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; int a; scanf("%d", &n); a = n % 10; if (a == 2 || a == 4 || a == 5 || a == 7 || a == 9) { printf("hon\n"); } else if (a == 0 || a == 1 || a == 6 || a == 8) { printf("pon\n"); } else { printf("bon\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215914/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215914/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 = 0, s; scanf("%d", &n); while(n/10>0){ n = n%10; } s = n; if(s==2 || s==4 || s==5 || s==7 || s==9){ printf("hon\n"); }else if(s==0 || s==1 || s==6 || s==8){ printf("pon\n"); }else{ printf("bon\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_215972/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_215972/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 main(){ int n; scanf("%d",&n); if(n%10==3){ printf("bon"); } else if(n%10==0 || n%10==1 || n%10==6 || n%10==8 ){ printf("pon"); } else{ printf("hon"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216021/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216021/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); int last=N%10; if(last==2 || last==4 || last==5 || last==7 || last==9) printf("hon"); else if(last==0 || last==1 || last==6 || last==8) printf("pon"); else printf("bon"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216065/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216065/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 Therefore pandacodeb */ #include <stdio.h> int main(void){ int N; scanf("%d", &N); int r = N % 10; //calculate reminder to determine the last digit of N //check number of the last digit (r) switch(r){ case 2: case 4: case 5: case 7: case 9: printf("hon\n"); break; case...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216108/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216108/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 kanon */ #include <stdio.h> int main(void) { //与えられる値を入れる変数を宣言 int num; //変数に値を入力する scanf("%d", &num); //Nの1の位の値で分岐させる if (num % 10 == 3) { printf("bon\n"); } else if (num % 10 == 0 || num % 10 == 1 || num % 10 == 6 || num % 10 == 8) { printf("pon\n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216151/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216151/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...
/*Kadai3_2 saitomo*/ #include<stdio.h> int main(void){ int num,first_num; scanf("%d",&num); first_num = num%10;//1の位を求める if(first_num==3){//問題文の通りに条件分岐 printf("bon\n"); }else if(first_num==0 || first_num==1 || first_num==6 || first_num==8){ printf("pon\n"); }else{ printf("hon\n"); } retu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216195/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216195/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,c=0,o,e,d=1,i,t,j,n,y,k,m,l,r=0; scanf("%lld",&n); 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("bon\n");} }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216238/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216238/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<string.h> int main() { char n[100],i,p=0; scanf("%s",&n); p=strlen(n); if(p==1){ if(n[0]=='2'||n[0]=='4'||n[0]=='5'||n[0]=='7'||n[0]=='9'){ printf("hon\n"); } else if(n[0]=='0'||n[0]=='1'||n[0]=='6'||n[0]=='8'){ pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216281/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216281/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<math.h> #include<stdlib.h> int main() { int n; scanf("%d",&n); if(n%10==3) printf("bon"); else if(n%10==0||n%10==1||n%10==6||n%10==8) printf("pon"); else printf("hon"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216324/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216324/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\n"); break; case 0: case 1: case 6: case 8: printf("pon\n"); break; case 3: printf("bon\n"); break; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216368/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216368/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); if(N%10==2||N%10==4||N%10==5||N%10==7||N%10==9){ printf("hon"); }else if(N%10==0||N%10==1||N%10==6||N%10==8){ printf("pon"); }else if(N%10==3){ printf("bon"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216410/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216410/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...
// AtCoder165 C #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <math.h> #include <assert.h> #include <string.h> #include <memory.h> #include <malloc.h> #include <stdlib.h> #include <ctype.h> // qsortで用いる比較用関数.*a<*bならaが先になる. int compare(const void* a, const void* b) { return *(int*)a - *(int*)b; } in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216469/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216469/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); int a = n%10; if(a == 3){ printf("bon\n"); } else if(a == 0 || a == 1 || a == 6 || a == 8){ printf("pon\n"); } else{ printf("hon\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216511/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216511/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); switch(n%10){ case 0: case 1: case 6: case 8: printf("pon"); break; case 3: printf("bon"); break; default: printf("hon"); break; } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216555/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216555/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 %= 10; if (n == 3) { printf("bon\n"); } else if (n == 0 || n == 1 || n == 6 || n == 8) { printf("pon\n"); } else { printf("hon\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216599/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216599/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> typedef struct node { int id; struct node *pre; struct node *next; } *nodePointer; nodePointer START; nodePointer END; nodePointer cursol; void init(); void insert(int); void move(int); void erase(void); void printNode(void); nodePointer make1node(void); int main(void) { int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216641/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216641/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.node = type { i32, ...
#include<stdio.h> #include<math.h> int main(){ int t,n,i; scanf("%d",&t); while(t--) { scanf("%d",&n); long long a[n]; for(i=1;i<=n;i++) { a[i-1]=pow(2,i); } long long sum1=0,sum2=0; for(i=0;i<n/2-1;i++) sum1+=a[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2167/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2167/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<string.h> int main(void) { int k,len,i; char s[1000],e[3]; scanf("%d",&k); scanf("%s",s); len=0; len=strlen(s); if(len<=k){ for(i=0;i<len;i++){ printf("%c",s[i]); } } else{ for(i=0;i<k;i++){ printf("%c",s[i]); } printf("...\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216742/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216742/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 c[1000]="",k; scanf("%d\n",&k); scanf("%s\n",c); int i,s=0; for(i=0;c[i]!='\0';i++) { s++; } if(k<s){ for(i=0;i<k;i++) { printf("%c",c[i]); } printf("..."); } else { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216786/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216786/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> int main() { int k; char s[100]; scanf("%i",&k); scanf("\n"); scanf("%[^\n]%*c",s); if (strlen(s)<=k){ printf("%s\n",s); } else{ for(int i=0;i<k;i++){ printf("%c",s[i]); } printf("..."); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216836/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216836/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 len,i,t,j,flag; char s[200]; scanf("%d",&t); for(i=0;i<t;i++) { scanf("%s",s); for(len=0;s[len]!='\0';len++) continue; flag=0; for(j=0;j<len-1;j++) { if(s[j]!=s[j+1]) { flag=1; break; } } if(flag==0) printf("%s\n",s); else { for(j=0;j<l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_21688/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_21688/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() { short input_int; char input_string[101]; scanf("%hd", &input_int); scanf("%s", input_string); char output_string[104]; short is_overflow = 0; for(short i = 0; i < input_int; i += 1) { output_string[i] = input_string[i]; if (input_string[i] == '\0') { break...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216937/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216937/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() { long long int ch[1000]; char arr[1000]; long long int a,b,c,d,e=0,i=0,tep=0,temp=0,j=0,k=0,l=0,m=0,n=0; scanf("%lld",&a); scanf("%s",arr); k=strlen(arr); if(k<=a) { printf("%s\n",arr); } else { fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_216980/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_216980/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 moji[120]; int k,i; /* 文字列の入力 */ scanf("%d%s",&k, moji); for(i=0; moji[i]!='\0'; ++i){ if(i==k){ printf("...\n"); return 0; } printf("%c",moji[i]); } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217022/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217022/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...
/// ****** Property of vipulks ****** \ #include <stdio.h> #include <limits.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ll long long int main(){ ll t,n,i,j,k,ans,a,b,c,d; t=1;//scanf("%lld",&t); while(t--){ char s[200]; scanf("%lld",&k); scanf("\n%s",s); n=str...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217066/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217066/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...
// Aizu Vol0 0087: Strange Mathematical Expression // 2017.7.29 #include <stdio.h> #include <stdlib.h> #include <ctype.h> char *gets(char *); #define MVS 0 #define MAX 100 int main() { char buf[MAX+5]; double stack[MAX + 5], d1, d2; int top; int k, minus; char *p; while (gets(buf) != NULL) { p = buf; top...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217130/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217130/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 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)) //seg木 int segNUM; ll seg[1<<18],*segN; //まずsegNUM(2べき)を指定 void seguse(int n){if(n==(n&-n)){segNUM=n;segN=seg+segNUM-1;}} //segN[]で各ノードを初期化してから↓を呼んでその上をまとめて初期化 void segin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217239/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217239/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.interval = type { i...
#include<stdio.h> #define MAX 10000 int main(){ int H[MAX], W[MAX]; int i, j, k; for(i = 0; i < MAX; i++){ scanf("%d %d", &H[i], &W[i]); if(H[i] == 0 && W[i] == 0) break; } for(i = 0; i < MAX; i++){ if(H[i] == 0 && W[i] == 0) break; for(j = 0; j < H[i]; j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217282/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217282/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(i%2==1){ if(j%2==0)printf("."); else printf("#"); }else{ if(j%2==0)printf("#"); else printf("."); } } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217347/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217347/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, counth, countw = 0; while(1){ scanf("%d %d", &h, &w); if(h == 0 && w == 0) break; for(counth = 0; counth < h; counth ++){ if(counth % 2 == 0){ while(countw < w){ printf("#"); c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217390/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217390/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, n, m; int W[300], H[300]; for(n=0 ; ; n++){ scanf("%d %d",&H[n],&W[n]); if(H[n]==0 && W[n]==0){ m=n; break; } } for(n=0 ; n<m ; n++){ for(i=0 ; i<H[n] ; i++){ for(j=0 ; j<W[n] ; j++){ if(i%2==0 && j%2==0){ printf("#"); }else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217433/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217433/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 i,j; int h,w; for(;;){ // Input scanf("%d %d",&h, &w); // Finish Check if( h == 0 && w == 0 ){ break; } // Output for(i=1;i<=h;i++){ for(j=1;j<=w;j++){ if( ( i + j ) % 2 == 0 ){ printf("#"); } else { printf("."); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_217477/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_217477/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...