Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main() { int A,B,C; scanf("%d %d %d",&A,&B,&C); if(C>=A&&C<=B) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110570/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110570/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 a,b,c; while(~scanf("%d%d%d",&a,&b,&c)) { if(c>=a&&c<=b) { printf("Yes\n"); } else printf("No\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110613/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110613/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; scanf("%d %d %d",&a,&b,&c); if(c>=a && c<=b) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110664/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110664/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() { int a,b,c; scanf("%d %d %d\n",&a,&b,&c); if (c>=a && c<=b){ printf("Yes"); }else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110714/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110714/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 <inttypes.h> int main(void) { int_fast8_t a, b, c; scanf("%" SCNdFAST8 " %" SCNdFAST8 " %" SCNdFAST8, &a, &b, &c); puts((a <= c && c <= b) ? "Yes" : "No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110758/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110758/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,C; scanf("%d",&A); scanf("%d",&B); scanf("%d",&C); if(C>=A&&C<=B){ printf("Yes\n");} else{ printf("No\n");} return 0;}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110800/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110800/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> int main(void) { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(c>=a && c<=b){ puts("Yes"); } else{ puts("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110851/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110851/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,c; scanf("%d%d%d", &a,&b,&c); if (a <= c && c <= b) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110895/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110895/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> #define swap(type,a,b) do{type t=a;a=b;b=t;}while(0); #define MAX(a,b) (((a)>(b))?(a):(b)) #define MIN(a,b) (((a)<(b))?(a):(b)) #define ll long long #define INF 100000000 #define FOR(i,a,n) for(i=a;i<n;i++) int comp(const void* a,const void* b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110938/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110938/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 <stdbool.h> #include <limits.h> #include <regex.h> #define lli long long int #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(b)) #define abs(a) ((a)<0?-(a):(a)) #define alloc(type,size) calloc(sizeof(type),size) #d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110981/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110981/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.circle = type { dou...
#include <stdio.h> int main( void ) { int i, n, sum; char ch[ 10 ][ 61 ] = { "", ".,!? .,!? .,!? .,!? .,!? .,!? .,!? .,!? .,!? .,!? .,!? .,!? ", "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc", "defdefdefdefdefdefdefdefdefdefdefdefdefdefdefdefdefdefdefdef", "ghighighighighighighighighighighighighighig...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111038/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111038/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.ch = private ...
#include<stdio.h> int main(){ int a,b,c,k,i; scanf("%d%d%d%d",&a,&b,&c,&k); if(a>=b && a>=c) for(i=1;i<=k;i++) a*=2; else if(b>=a && b>=c) for(i=1;i<=k;i++) b*=2; else for(i=1;i<=k;i++) c*=2; printf("%d\n",a+b+c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111089/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111089/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; int k; int maior, menor; scanf("%d %d %d", &a, &b, &c); scanf("%d", &k); if (a>=b && a>=c) maior = a; else if(b>=a && b>=c) maior = b; else maior = c; menor = a+b+c-maior; for(int i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111131/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111131/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[3]; int k; int i,j; int tmp; for(i=0;i<3;i++){ scanf("%d",&a[i]); } scanf("%d",&k); for(i=0;i<3;i++){ for(j=i+1;j<3;j++){ if(a[i]>a[j]){ tmp=a[i]; a[i]=a[j]; a[j]=tmp; } } } for(i=0;i<k;i++){ a[2]*=2; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111175/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111175/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, k; int flag = 0; int i; scanf("%d %d %d %d", &a, &b, &c, &k); if(a > b){ if(a > c){ //a > b, c flag = 0; } else if(b > c){ //a > b > c flag = 0; } else{ //c > a > b flag = 2; } } else{ if(a > c){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111218/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111218/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() { int a, b, c, i, k, sum; scanf("%d%d%d\n", &a, &b, &c); scanf("%d", &k); sum = a*pow(2, k)+b+c; if(a<=b){ sum = a+b*pow(2, k)+c; } if(b<=c){ sum = a+b+c*pow(2, k); } if(c<=a){ sum = a*pow(2, k)+b+c; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111261/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111261/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,c,k,i; scanf("%d %d %d %d",&a,&b,&c,&k); if (a >= b && a >= c) { for (i = 0;i < k;i++) { a *= 2; } } else if (b >= a && b >= c) { for (i = 0;i < k;i++) { b *= 2; } } else { for (i = 0;i < k;i++) { c *= 2; } } printf("%d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111311/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111311/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, tun, max; int in, out; int i; scanf("%d %d", &n, &m); tun = max = m; for (i = 0; i < n; i++){ scanf("%d %d", &in, &out); tun += in; tun -= out; if (tun < 0){ printf("0\n"); return (0); } if (max < tun){ max = tun; } } printf("%d\n", max)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111355/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111355/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; scanf("%d %d", &h, &w); int c[10][10]; for (int i = 0; i < 10; i++) { for (int j = 0; j < 10; j++) { scanf("%d", &c[i][j]); } } int a[h][w]; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { scanf("%d", &a[i][j]); } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111399/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111399/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> int descending_compare(const void *a, const void *b){ return (int)(*(int*)b - *(int*)a); } int ascending_compare(const void *a, const void *b){ return (int)*(int*)a - *(int*)b; } int c[10][10]; int a[200][200]; int main(void){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111441/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111441/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 t,a;double b[5]; for(t=0;t<5;t++){ scanf("%lf",&b[t]); } b[1]=b[1]/b[3]; b[2]=b[2]/b[4]; if((b[1])>(b[2])){ b[1]=ceil(b[1]); } else{ b[1]=ceil(b[2]); } a=b[0]-b[1]; printf("%d\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111492/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111492/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,l,i; scanf("%d %d %d %d %d",&l,&a,&b,&c,&d); for(i=1;i<l;i++){ a -= c; b -= d; if(a <= 0 && b <= 0){ l -= i; break; } } printf("%d\n",l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111535/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111535/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 Day,A,B,Aper,Bper,Aday,Bday,plus; scanf("%d %d %d %d %d",&Day,&A,&B,&Aper,&Bper); Aday=A/Aper; Bday=B/Bper; if(A%Aper != 0) Aday++; if(B%Bper != 0) Bday++; if(Aday > Bday){ plus=Aday; } else { plus=Bday; } printf("%d\n",Day-plus); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111579/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111579/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 l,a,b,c,d,x,y; scanf("%d",&l); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); if(a%c==0) x=a/c; else if(a%c>0) x=a/c+1; if(b%d==0) y=b/d; else if(b%c>0) y=b/d+1; if(x>=y) printf("%d\n",l-x); else printf("%d\n",l-y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111650/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,c,d,n; while(scanf("%d",&n)!=EOF){ int count=0; for(a=0;a<10;a++){ for(b=0;b<10;b++){ for(c=0;c<10;c++){ for(d=0;d<10;d++){ if(a+b+c+d==n) count++; } } } } printf("%d\n",count); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111694/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111694/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,c,d,n,sum,count; while(scanf("%d",&n) != EOF){; sum =0; count = 0; for(a=0;a<=9;a++){ for(b=0;b<=9;b++){ for(c=0;c<=9;c++){ for(d=0;d<=9;d++){ sum = a+b+c+d; if(sum == n){ count += 1; }else{ ; } } } } } pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111737/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111737/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 count(int n); int main() { int n; while (scanf("%d", &n) != -1) { int cnt; cnt = count(n); printf("%d\n", cnt); } return 0; }; int count(int n) { int a, b, c, d; int cnt; cnt = 0; for (a = 0; a < 10; a++) { for (b = 0; b < 10; b++) { for (c = 0; c < 10; c++) { for (d = 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111780/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111780/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,ans,a,b,c,d; while( scanf("%d", &n)!=EOF ){ ans = 0; if(n<=36){ for(a=0 ; a<=9 ; a++){ for(b=0 ; b<=9 ; b++){ for(c=0 ; c<=9 ; c++){ for(d=0 ; d<=9 ; d++){ if((a+b+c+d)==n){ ans++; } } } } } } printf("%d\n",ans); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111874/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111874/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 oushuget(int n,int m){ return m*n/2; } int jishuget(int n,int m){ int a=oushuget(n-1,m); return a+m/2+1; } int main(){ int N; scanf("%d",&N); while(N--){ int n,m; scanf("%d%d",&n,&m); if(n%2==0||m%2==0){ printf("%d\n",oushuget(n,m)); }else{ printf("%d\n",jis...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11199/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11199/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 cou,i,j,k,l,val; while((scanf("%d",&val)) != EOF){ cou=0; for(i=0;i<10;i++){ for(j=0;j<10;j++){ for(k=0;k<10;k++){ for(l=0;l<10;l++){ if(i+j+k+l == val)cou++; } } } } printf("%d\n",cou); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112046/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112046/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, n, m, sum; scanf("%lld", &t); while(t--) { scanf("%lld %lld", &n, &m); sum= n*m; if(sum%2==0) { printf("%lld \n", sum/2); } else { printf("%lld \n", (sum/2 +1)); } } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11209/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11209/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, k, l; int comb_num; int n; while( scanf("%d", &n) != EOF ){ comb_num = 0; for( i=0; i<10; i++ ){ for( j=0; j<10; j++ ){ for( k=0; k<10; k++ ){ for( l=0; l<10; l++ ){ if( i+j+k+l == n ) comb_num++; } } } } printf("%d\n", comb...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112132/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,answer; int i,j,k,l; while(scanf("%d",&n) != EOF){ answer = 0; for(i=0;i < 10;i++){ for(j=0;j < 10;j++){ for(k=0;k < 10;k++){ for(l=0;l < 10;l++){ if(i+j+k+l == n) answer++; } } } } printf("%d\n",answer); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112176/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112176/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 printOutput(int n, int m){ if(n==1 || m==1){ int t = n>m?n:m; // printf("%d\n",); return t%2 == 0?t/2:(t/2 + 1); }else if(n == 2 || m==2){ // printf("%d\n",n>m?n:m); return n>m?n:m; }else{ return 0; } } int main() { int n; scanf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11227/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11227/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> typedef struct{ int*data,size,max_size; }vector; void init(vector*v){ v->data=(int*)malloc(sizeof(int)*(v->max_size=1)); v->size=0; } void push(vector*v,int x){ if(v->size==v->max_size){ v->data=(int*)realloc(v->data,sizeof(int)*(v->max_size<<=1)); } v->data[v->size++]=x;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112312/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112312/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.vector = type { ptr...
#include <stdio.h> int main() { int n; scanf("%d",&n); printf("%d",(n+1)/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112356/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112356/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; scanf("%d",&t); while(t--) { int n,i,t,k=0; scanf("%d",&n); int a[n]; for(i=0;i<n;i++) { scanf("%d",&t); if(t%2==0) printf("%d ",t); else a[k++]=t; } for(i=0;i<k;i++) printf ("%d ",a[i]); printf ("\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1124/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1124/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() { int n; scanf("%d",&n); //char s[4]; //scanf("%s",s); printf("%d",(n%2==0) ? n/2: (n/2)+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112442/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112442/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 % 2) printf("%d", n / 2 + 1); else printf("%d", n / 2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112486/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112486/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%2==0) printf("%d",n/2); else printf("%d",n/2+1); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112529/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112529/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> #include<string.h> #define max(x,y)(x>y?x:y) #define min(x,y)(x>y?y:x) #define MOD (int)1e9+7 int dx4[]={1,0,-1,0}; int dy4[]={0,-1,0,1}; typedef long long int ll; typedef unsigned long long int ull; ll gcd(ll x,ll y){if(!y)return x;return gcd(y,x%y);} ll lcm(ll x,l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112572/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112572/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" @dx4 = dso_local local_unna...
#include <stdio.h> int main(void){ int N; scanf("%d",&N); printf("%d",(N+1)/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112622/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%2==0) printf("%d\n", n/2); else { int newn = n/2; newn++; printf("%d\n", newn); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112666/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%2==0){ printf("%d",N/2); }else{ printf("%d",(N/2)+1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112709/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 % 2 == 1){ n++; } printf("%d", n/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112752/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 num[1000]={0},a; int i,j,b,ANS=0; while(1){ scanf("%s",num); if(num[0]=='0'){ break; } b=strlen(num); for(i=0;i<b-1;i++){ for(j=b-1;j>i;j--){ if(num[j]>num[j-1]){ a=num[j-1]; num[j-1]=num[j]; num[j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112839/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112839/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 x[1001] = {0}; int ans, i; while(scanf("%s", x) != EOF) { if(x[0] == '0') break; ans = 0; for(i=0; x[i]!='\0'; i++) ans += (x[i]-'0'); printf("%d\n", ans); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112882/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112882/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, s, n; char x[1000]; while(1){ i=0; s=0; scanf("%s", x); if(x[0]=='0') break; while(x[i]!='\0'){ n=x[i]-'0'; s+=n; i++; } printf("%d\n", s); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112925/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112925/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() { char x[1000] = {'\0'}; int a,b; int i; while(1) { a = 0; b = 0; scanf("%s",x); if(x[0] == '0') { return 0; } for(i = 0;;i++) { if(x[i] == '\0') { break; } a = x[i] -'0'; b += a; } pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112976/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112976/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(){ while(1){ char a[1001]; char c; int b=0,d=0; scanf("%s",a); if(!strcmp(a,"0"))break; while((c=a[b++])!='\0'){ d+=c-'0'; } printf("%d\n",d); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113025/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113025/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> #include <stdlib.h> #include <stdbool.h> #define MOD 1000000007 #define INFTY 2147483646 #define DEBUG 1 #define END printf("\n");return 0; #define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void *,const voi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113083/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113083/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._GD = type { i64, i...
#include<stdio.h> #include<string.h> #define N 100 void BubbleSort(char (*)[3],int); void SelectionSort(char (*)[3],int); int main(){ int i,j,n,temp,cnt=0,minj; char A[N][3],B[N][3],S[N][3]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",A[i]); strcpy(B[i],A[i]); strcpy(S[i],A[i]); } BubbleSort(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113133/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 n 36 struct Card{ char suit; char value; }; void BubbleSort(struct Card C[],int N){ int i,j; struct Card a; for(i=0;i<N;i++){ for(j=N-1;j>=i+1;j--){ if(C[j].value < C[j-1].value){ a = C[j]; C[j] = C[j-1]; C[j-1] = a; } } } } void Sel...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113177/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.Card = type { i8, i...
#include<stdio.h> int main() { int t; long long int a,b,n,m; scanf("%d",&t); while(t>0) { scanf("%lld%lld%lld%lld",&a,&b,&n,&m); if(m+n>a+b) { printf("No\n"); } else { if(a<b) { if(a<m) printf("No\n"); else printf("Yes\n"); } else { if(b<m) printf("No\n"); else printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11322/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11322/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> typedef struct{char c;int n;} card; card B[36],S[36]; int bubble(card A[36],int N) { int i,j,c=0,flag=1; card stock; while(flag) { flag=0; for(i=N-1;i>0;i--) { if(A[i].n<A[i-1].n) { stock=A[i]; A[i]=A[i-1]; A[i-1]=stock; flag=1; c++; } } }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113263/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113263/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.card = type { i8, i...
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int i,j,n,minj,flag=0; char B[36][3],S[36][3],temp[3]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",B[i]); strcpy(S[i],B[i]); } //bubblesort for(i=0;i<n-1;i++){ for(j=n-1;j>i;j--){ if(atoi(&B[j][1])<atoi(&B[j-1][1])){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113306/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113306/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; scanf("%i",&t); while(t--){ int n; scanf("%i",&n); printf("%i\n",(n+1)/2); } return 0-0-0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11335/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11335/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(){ int t; long long a, b, n, m; scanf("%d", &t); while(t--){ scanf("%lld%lld%lld%lld", &a, &b, &n, &m); if(a + b < m + n) printf("No\n"); else{ if(a > b){ if(m > b){ printf("No\n"); } else{ printf("Yes\n"); } } else if(a <=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11340/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11340/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> struct card{ int num; char mark; }; struct card card_i[40], card_j[40]; void BubbleSort(int n); void SelectionSort(int n); void write(int n); void stable(int n); int main(void){ int n, i, j; scanf("%d", &n); for(i = 0; i < n; i++){ while(1){ scanf("%c", &c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113443/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.card = type { i32, ...
#include<stdio.h> struct Card{ char suit; char value; }; struct Card C1[101], C2[101]; void trace(struct Card *, int); void Bubble(struct Card *, int); void Selection(struct Card *, int); int main(){ int n, i,j,mini; char ch; scanf("%d%c", &n, &ch); for ( i = 1; i <= n; i++ ){ scanf("%c%c%c", &C1[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113494/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113494/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.Card = type { i8, i...
#include<stdio.h> #define N_MAX 40 typedef struct data { int value; char mark; }Data; Data C[N_MAX], C1[N_MAX], C2[N_MAX]; void BubbleSort(Data C[N_MAX], int N); void SelectionSort(Data C[N_MAX], int N); void BubbleSort(Data C1[N_MAX], int N) { int i, j, flag=0; Data work; for(i=0; i<N...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113544/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113544/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.data = type { i32, ...
#include<stdio.h> #include<stdlib.h> #define NMIN 1 #define NMAX 36 struct Card{ char suit; char value; }; void bubble(struct Card A[],int N){ int i,j; struct Card t; for(i=0;i<N;i++){ for(j=N-1;j>=i;j--){ if(A[j].value<A[j-1].value){ t=A[j]; A[j]=A[j-1]; A[j-1]=t; } } } } void selecti...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113588/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.Card = type { i8, i...
#include<stdio.h> #include<string.h> struct Card{ char s[3], v; }; void bubble(struct Card A[], int N){ int i,j; for(i = 0 ; i < N ; i++){ for(j = N - 1 ; j >= i ; j--){ if(A[j].v < A[j - 1].v){ struct Card t = A[j]; A[j] = A[j - 1]; A[j - 1] = t; } } } } void sele...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113630/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113630/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.Card = type { [3 x ...
#include <stdio.h> #include <string.h> #define MAX 36 int main(){ char a[MAX][3],b[MAX][3],str[3]; int n,i,j,c[MAX],d[MAX],tmp,mini,ok = 1; scanf("%d" ,&n); for(i = 0 ; i < n ; i++){ scanf("%s" ,a[i]); strcpy(b[i],a[i]); c[i] = d[i] = a[i][1]-'0'; } for(i = 0 ; i < n ; i++){ for(j = n-1 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113674/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113674/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> typedef struct { char suit, value; } Card; void bubble(Card A[], int N) { int i,j; Card t; for(i = 0; i<N; i++) { for(j = N-1; j >= i; j--) { if(A[j].value < A[j-1].value) { t = A[j]; A[j] = A[j-1]; A[j-1] = t; } } } } void selection(Card A[], int N) { int i,j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113731/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.Card = type { i8, i...
#include <stdio.h> int main(void) { int n,i,j; char s; scanf("%d\n",&n); char array_b[n*3],array_s1[n*3],array_s2[n*3]; for (i = 0;i < n * 3;i++) { scanf("%c",&array_b[i]); array_s1[i] = array_b[i]; array_s2[i] = array_s1[i]; } /* bubble_sort */ for (j = 0;j < n;j++) { for (i = 1;i < n * 3 - 2;i+=3) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113775/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113775/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 N 36 typedef struct{ char mark; int number; } trump; void bubbleSort(trump *,int ); void selectionSort(trump *, int ); int isStable(trump *, trump *,int); int main(){ int i,n; trump tin[N],tout[N]; scanf("%d",&n); for(i = 0; i < n ; i++){ scanf(" %c%d",&tin[i].mark...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113818/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113818/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.trump = type { i8, ...
#include<stdio.h> #include<string.h> #include<stdlib.h> int N; char swap; void bubbleSort(char c[][3]) { for(int i = 0; i<=N-1; i++) { for(int j = N-1; j>=i+1; j-- ) { if(c[j][1] < c[j-1][1]) { //number swap = c[j][1]; c[j][1] = c[j-1][1]; c[j-1][1] = swap; //char swap = c[j][0]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113861/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113861/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" @N = dso_local global i32 0...
#include <stdio.h> typedef struct { char e; int num; }To; void BubbleSort(To*, int); void SelectionSort(To*, int); int main(){ int flag,n,i; char a[3]; To data[36],data2[36]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s",a); data[i].e=a[0]; data[i].num=a[1]-'0'; data2[i]=data[i]; } B...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113904/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.To = type { i8, i32...
#include<stdio.h> void BubleSort(int w[],int n,char W[]){ int i,j,t,count,cp; char c; count=0; t=0; for(j=0; j<n; j++){ for(i=n-1; i>=1; i--){ if(w[i] < w[i-1]){ cp = w[i-1]; c = W[i-1]; w[i-1] = w[i]; W[i-1] = W[i]; w[i] = cp; W[i] = c; count++; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113948/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> struct Cards //構造体 { char mark; int num; } temp; int main(void) { int N; scanf("%d",&N); struct Cards array_b[N],array_s[N]; int i,cnt1=0; for(i=0;i<N;i++) //入力 { scanf(" %c%d",&array_b[i].mark,&array_b[i].num); array_s[i]=array_b[i]; } for(int t=0;t<N-1;t++) //バブルソート { f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113991/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113991/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.Cards = type { i8, ...
#include<stdio.h> typedef struct{char suit, value;}Card; void bubble(Card A[], int N){ int i,j; Card t; for(i=0; i<N; i++){ for(j=N-1; j>=i; j--){ if(A[j].value<A[j-1].value){ t=A[j];A[j]=A[j-1];A[j-1]=t; } } } } void selection(Card A[], int N){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114033/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114033/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.Card = type { i8, i...
#include<stdio.h> #define MAX 36 void BubbleSort(char [], int [], int); void SelectionSort(char [], int [], int, char [], int []); int main(){ int n, i, num1[MAX], num2[MAX]; char c1[MAX], c2[MAX]; scanf("%d",&n); for(i = 0; i < n; i++){ scanf(" %c%d", &c1[i], &num1[i]); c2[i] = c1[i]; num2[i] =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114077/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114077/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,n,i; scanf("%d",&t); for(i=0;i<t;i++) { scanf("%d",&n); if(n%2==1) { printf("%d\n",(n/2)+1); } else if(n%2==0) printf("%d\n",(n/2)); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11412/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11412/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 n, i, j, tmp, min,k,l,f=1; int a[36],b[36],s[36],t[36]; char ch; scanf("%d",&n); for(i = 0; i < n; i++) { scanf(" %c%d ",&ch,&a[i]); s[i] = a[i]; switch(ch){ case 'S': b[i] = 1;t[i] = 1;break; case 'H': b[i] = 2;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114163/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 M 36 #define O 0 #define I 1 typedef struct { char mark; int value; } Card; void BubbleSort(Card *,int); void SelectionSort(Card *,int); void disply(Card *,int); int isStable(Card *,Card *,int); int main(){ Card C1[M+I], C2[M+I]; int i, N; scanf("%d",&N); f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114206/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114206/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.Card = type { i8, i...
#include <stdio.h> int main() { int t,a; scanf("%d",&t); for(;t>0;t--) { scanf("%d",&a); if(a%2 ==1) a++; printf("%d",a/2); printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11425/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11425/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 n, m; scanf("%d%d", &n, &m); printf("%d00",(n+18*m)<<m); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114329/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114329/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; scanf("%d%d%d",&a,&b,&c); int check[b+1],i; for(i=0;i<b;i++) check[i]=0; a%=b; i=0; while(check[i]==0){ check[i]++; i=(i+a)%b; } if(check[c]==0) puts("NO"); else puts("YES"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114387/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114387/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() { int t ; scanf("%d", &t); while (t--) { long long int n; scanf("%lld", &n); if(n%2==0) printf("%lld\n",(n+1)/2); else printf("%lld\n",(n+2)/2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11443/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> #include <string.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) ll gcd(ll p,ll q){for(ll t;q;)t=p%q,p=q,q=t;return p;} int main(){ ll a,b,c; scanf("%lld%lld%lld",&a,&b,&c); puts(c%gcd(a,b)==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114473/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114473/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 <stdio.h> int main(void) { int a, b, c, t, first; int i, j; scanf("%d %d %d", &a, &b, &c); i = 1; first = a % b; do { i++; t = a * i % b; if (t == c) { printf("YES\n"); return 0; } } while (t != first); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114523/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114523/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 in(void){ int i;scanf("%d",&i); return i; } long long llin(void){ long long i;scanf("%lld",&i); return i; } void chin(char s[]){ scanf("%s",s); } void print(int a){ printf("%d\n",a); } void llprint(long long a){ printf("%lld\n",a);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114567/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114567/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...
// // main.c // task2 // // Created by Севастьян on 28.06.2020. // Copyright © 2020 Севастьян. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { int t; scanf("%d",&t); int r[t]; for(int i = 0;i<t;i++){ int n = 0; scanf("%d",&n); if (n % 2 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11461/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11461/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, k, v, a[100], n, l; char buf[2]; scanf("%d", &l); for (n = 0; n < l && (j = scanf("%d%1[\n]", a+n, buf)) == 1; n++) ; if (j == 2) n++; for (k = 0; k < n; k++) { printf("%d", a[k]); if (k < n - 1) { printf(" "); } } printf("\n"); for ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114653/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114653/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 100 int main(void) { int i, j; int nums[MAX]; int length; scanf("%d", &length); for (i = 0; i < length; i++) { scanf("%d", &nums[i]); if (i != 0) { printf(" "); } printf("%d", nums[i]); } printf("\n"); int k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114697/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> static const int N = 100; void trace(int A[], int n){ int i; for ( i = 1; i <= n; i++ ){ if ( i > 1 ) printf(" "); printf("%d", A[i]); } printf("\n"); } int main(){ int n, i, j,key; int A[N+1]; scanf("%d", &n); for ( i = 1; i <= n; i++ ) scanf("%d", &A[i]); trace(A, n)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114747/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114747/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.1 = private unnamed_a...
#include <stdio.h> #define N 100 void printarr(int *a, int n){ int i; for(i = 0; i < n; i++){ printf("%d", a[i]); printf((i == n - 1) ? "" : " "); } printf("\n"); } void insertion(int *a, int n){ int i, j, v; for(i = 1; i < n; i++){ v = a[i]; j = i; while(--j >= 0 && a[j] > v) a[j + 1]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114811/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 i, j, k, l; int num[100]; int sort; scanf("%d", &n); for (i = 0; i < n; i++){ scanf("%d", &num[i]); } for (i = 0; i < n; i++){ for (k = 0; k < n; k++){ printf("%d", num[k]); if (k < n - 1){ printf(" "); } } printf("\n"); for (j = 0; j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114855/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114855/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...
// Insertion_Sort.c #include <stdio.h> #define N 1000 int main() { int n, j, a[N], i, key = 0, k; scanf("%d", &n); for(i = 0; i < n; i++) { scanf("%d", &a[i]); } for(i = 0; i < n; i++) { key = a[i]; j = i - 1; while(j >= 0 && a[j] > key) { a[j + 1] = a[j]; j--; a[j ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114905/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,j,N,v,A[1000],k; scanf("%d",&N); for(i=0;i<=N-1;i++){ scanf("%d",&A[i]); } for(i=0;i<=N-1;i++){ v=A[i]; j=i-1; while(j>=0 && A[j]>v){ A[j+1]=A[j]; j--; } A[j+1]=v; for(k=0;k<N-1;k++){ printf("%d ",A[k]); } prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114949/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,j,key,n,m; int l[100]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&l[i]); } for(i=0;i<n;i++){ printf("%d",l[i]); if(i<n-1)printf(" "); } printf("\n"); for(i=1;i<n;i++){ key = l[i]; j = i - 1; while(l[j]>key && j>=0){ l[j+1] = l[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_114992/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_114992/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 printarray(int array[],int n){ int i; for(i=0;i<n;++i){ if(i)printf(" "); printf("%d",array[i]); } printf("\n"); } int main(void){ int n,i,j,key; int array[100]; scanf("%d",&n); for(i=0;i<n;++i) scanf("%d",&array[i]); printarray(array,n); for(i=1;i<n;++i){ key = array[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115034/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115034/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.1 = private unnamed_a...
#include <stdio.h> int main() { int a[1001] = {0}; int number; int i, j, k; int temp; scanf("%d", &number); for (i = 0; i < number; i++){ scanf("%d", &a[i]); } for (j = 0; j < number - 1; j++) { printf("%d ", a[j]); } printf("%d\n", a[number - 1]); for (i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115078/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115078/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 PRINT(int* A, int N); int main(void){ int N,i,v,j; scanf("%d",&N); int insertionSort[N]; for(i=0;i<N;i++){ scanf("%d",&insertionSort[i]); } PRINT(insertionSort, N); for(i=1;i<N;i++){ v = insertionSort[i]; j=i-1; while(j>=0 && insertionSort[j]>v){ insertionSort[j+1] = i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115120/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115120/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 Print(int* A,int n){ int i; for(i=0;i<n;i++){ if(i) printf(" "); printf("%d",A[i]); } printf("\n"); } void insertSort(int* A,int n){ int i,j,v; for (i = 0; i < n; i++) { v = A[i]; j = i-1; while (j>=0&& A[j]>v) { A[j+1] = A[j]; j--; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115179/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115179/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.1 = private unnamed_a...
#include<stdio.h> int main(){ int N,i,j,key; int A[1000]; scanf("%d",&N); for(i=0 ; i<N ; i++){ scanf("%d",&A[i]); } for(j=0 ; j<N-1; j++) printf("%d ",A[j]); printf("%d\n",A[N-1]); for(i=1 ; i<N ; i++){ key = A[i]; j = i - 1; while(j >= 0 && A[j] > key){ A[j+1] = A[j]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115221/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 i, j, k, n, tmp; int A[100]; scanf("%d",&n); if( n<1 || 100<n ) exit(1); for( i=0 ; i<n ; i++ ){ scanf("%d",&A[i]); if( A[i]<0 || 1000<A[i] ) exit(2); } for( i=1 ; i<n ; i++ ){ tmp = A[i]; j = i-1; for( k=0 ; k<n ; k++ ){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115265/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115265/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> static const int N = 1000; void trace(int A[], int n){ int i; for ( i = 1; i <= n; i++ ){ if ( i > 1 ) printf(" "); printf("%d", A[i]); } printf("\n"); } int main(){ int n, i, j, key; int A[N+1]; scanf("%d", &n); for ( i = 1; i <= n; i++ ) scanf("%d", &A[i]); trace(A, n);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115315/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.1 = private unnamed_a...
#include <stdio.h> void trace(int A[],int N){ int i; for(i=0;i<N;i++){ if(i>0)printf(" "); printf("%d",A[i]); } printf("\n"); } void insertion(int A[],int N){ int i,j,v; for(i=1;i<N;i++){ v = A[i]; j =i-1; while(j>=0&&A[j]>v){ A[j+1] = A[j]; j--; }A[j+1] = v; trace(A,N); } } int main(){ in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_115366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_115366/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.1 = private unnamed_a...