Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(void) { int a; int b; scanf("%d",&a); scanf("%d",&b); if(a<b){ printf("a < b\n"); } if(b<a){ printf("a > b\n"); } if(a==b){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243730/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243730/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d", &a, &b); if (a > b){ printf("a > b\n"); } else if (a == b){ printf("a == b\n"); } else { printf("a < b\n"); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243774/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243774/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a, b; scanf("%d %d", &a, &b); if (a < b) { printf("a < b\n"); } else if (a > b) { printf("a > b\n"); } else { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243817/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243817/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a, b; scanf("%d",&a); scanf("%d",&b); if(a<b){ printf("a < b\n"); }else if(a>b){ printf("a > b\n"); }else if(a==b){ printf("a == b\n"); }else{ } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243860/source.c" target datalayout = "e-m:e-p270:32: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 ; scanf("%d %d",&a,&b); if(a<b){ printf("a < b\n"); } else if(a>b){ printf("a > b\n"); } else{ printf("a == b\n"); } return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243910/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243910/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b; scanf("%d%d",&a,&b); if(a < b){ printf("a < b\n"); } else if(a>b){ printf("a > b\n"); } else{ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243976/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243976/source.c" target datalayout = "e-m:e-p270:32: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 Min(a,b) (a<b?a:b) #define Max(a,b) (a>b?a:b) #define Swap(a,b) {(a)=(a)^(b); (b)=(a)^(b); (a)=(a)^(b);} #define MAXN 65535 #define INF 1e9 int cmp(const void *a, const void *b){ return *((int *)a) - *((int *)b); } char str[110];...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24404/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24404/source.c" target datalayout = "e-m:e-p270:32: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 a, b; scanf("%d %d", &a, &b); if(a > b){ printf("a > b\n"); }else if(a < b){ printf("a < b\n"); }else{ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244083/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244083/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d%d" ,&a,&b); if(a>b||a<b){ if(a>b){ printf("a > b\n"); } else if(a<b){ printf("a < b\n"); } } else if(a==b){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244126/source.c" target datalayout = "e-m:e-p270:32: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 ; scanf("%d%d",&a,&b); if(a<b) printf("a < b\n"); if(a>b) printf("a > b\n"); if(a == b) printf("a == b\n"); return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244177/source.c" target datalayout = "e-m:e-p270:32: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() { int m,n,i,j,k,sum,a1,a2,a3; char c[200]; while(scanf("%s",c)!=EOF){ a1 = a2 = a3 = m = 0; for(i=0;c[i]!='\0';i++){ if(c[i]=='1') a1++; if(c[i]=='2') a2++; if(c[i]=='3') a3++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24422/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24422/source.c" target datalayout = "e-m:e-p270:32: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 a,b; scanf("%d %d",&a,&b); if(a<b){ printf("a < b\n"); } else if(a>b) {printf("a > b\n");} else if(a==b) {printf("a == b\n");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244263/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244263/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b; scanf("%d%d",&a,&b); if(a<b)printf("a < b\n"); else if(a>b)printf("a > b\n"); else printf("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244313/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244313/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d", &a,&b); if(a<b) { printf("a < b\n"); } if (a > b) { printf("a > b\n"); } if (a == b) { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244357/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244357/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d",&a); scanf("%d",&b); if(a<b) printf("a < b\n"); else if(a>b) printf("a > b\n"); else printf("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244407/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244407/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d", &a, &b); if(a < b) printf("a < b\n"); else if(a > b) printf("a > b\n"); else printf("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244465/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244465/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d", &a, &b); if ( a < b ) { printf("a < b\n"); } else if(a > b){ printf("a > b\n"); } else{ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244508/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d",&a,&b); if (a>b){ printf("a > b\n"); } else if(a<b){ printf("a < b\n"); } else{ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244551/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244551/source.c" target datalayout = "e-m:e-p270:32: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=0; int b=0; scanf("%d %d",&a, &b); if (a < b){ printf("a < b\n"); }else if (a > b){ printf("a > b\n"); }else if (a == b){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244601/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244601/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if(a>b) printf("a > b\n"); else if(a<b) printf("a < b\n"); else printf("a == b\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244645/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244645/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d",&a); scanf("%d",&b); if(a<b) printf("a < b\n"); else if(a>b) printf("a > b\n"); else printf("a == b\n"); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244689/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244689/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); if(a<b){ printf("a < b\n"); } else if(a>b){ printf("a > b\n"); } else{ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); if (a < b) printf("a < b\n"); else if (a > b) printf("a > b\n"); else printf("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244782/source.c" target datalayout = "e-m:e-p270:32: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(x>y){ printf("a > b\n",y,x); } else if(x<y){ printf("a < b\n"); } else if(x==y){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244832/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244832/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a < b) { printf("a < b\n"); } if(a > b) { printf("a > b\n"); } if(a == b) { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244876/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244876/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d", &a); scanf("%d", &b); -1000<=a,b<=1000; if (a > b ) printf("a > b\n"); else if (a < b) printf("a < b\n"); else printf ("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244926/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244926/source.c" target datalayout = "e-m:e-p270:32: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 comp(const void *a,const void *b){ return ((int *)a)[0]-((int *)b)[0]; } int main() { char s[100],ch; int i=0,a[100],j=0; while((ch=getchar())!='\n') { s[i++]=ch; if(ch!='+') a[j++]=ch-48; } qsort(a,j,sizeof(a[0]),comp); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24497/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24497/source.c" target datalayout = "e-m:e-p270:32: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 a,b; scanf("%d %d\n",&a,&b); if(a>b){ printf("a > b\n"); }else if(a<b){ printf("a < b\n"); }else{ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245019/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245019/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d",&a,&b); if(a>b) printf("a > b\n"); else if(a<b) printf("a < b\n"); else printf("a == b\n"); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245062/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245062/source.c" target datalayout = "e-m:e-p270:32: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 a[101],b[100],c[101],v; int i=0,j,k,n=0,temp; scanf("%s",a); while(a[i]!='\0') { n++; i++;} for(i=0;i<n;i++) { if(a[i]!='+') { b[j]=a[i]; j++; } } for(i=0;i<j-1;i++) { for(k=0;k<j-1-i;k++) { if(b[k]>b[k+1]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24512/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24512/source.c" target datalayout = "e-m:e-p270:32: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 a,b; scanf("%d %d",&a,&b); if(a==b) printf("a == b\n"); else if(a > b) printf("a > b\n"); else if(a<b) printf("a < b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245163/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d",&a,&b); if(a < b){ printf("a < b\n"); } else if(a > b){ printf("a > b\n"); } else { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245206/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245206/source.c" target datalayout = "e-m:e-p270:32: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; int x, y, a, b; int D; int R; scanf("%d", &T); while (T--) { scanf("%d %d %d %d", &x, &y, &a, &b); R = y - x; D = a + b; if (R % D) { printf("-1\n"); } else { R /= D; printf("%d\n", R); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24525/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24525/source.c" target datalayout = "e-m:e-p270:32: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 a, b; scanf("%d%d", &a, &b); if(a < b)printf("a < b\n"); else if(a > b)printf("a > b\n"); else printf("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245293/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245293/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d",&a,&b); if(a>b) puts("a > b"); if(a<b) puts("a < b"); if(a==b) puts("a == b"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245336/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245336/source.c" target datalayout = "e-m:e-p270:32: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 n; scanf("%d",&n); while(n--) { long long int a,b,c,d; scanf("%lld %lld %lld %lld",&a,&b,&c,&d); if((b-a)%(d+c)==0) printf("%lld\n",(b-a)/(d+c)); else printf("-1\n"); } //printf("Hello world!\n"); return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24538/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24538/source.c" target datalayout = "e-m:e-p270:32: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 a, b; int main(){ scanf("%d %d", &a, &b); if (a < b){ printf("a < b\n"); } else if (a == b){ printf("a == b\n"); } else if (a > b){ printf("a > b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245422/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245422/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main( ) { int a,b; scanf("%d %d",&a,&b); if(a > b) { printf("a > b\n"); } else if(a < b) { printf("a < b\n"); } else if(a == b) printf("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245466/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245466/source.c" target datalayout = "e-m:e-p270:32: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; int b; scanf("%d%d",&a,&b); if(a>b) { printf("a > b\n"); }else if(a<b) { printf("a < b\n"); }else if(a==b) { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245509/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245509/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(){ int t; scanf("%d",&t); while(t-->0){ long long x,y,a,b; scanf("%lld %lld %lld %lld",&x,&y,&a,&b); long double len=y-x; long double v=a+b; if((int)(len/v)==(len/v)){ printf("%d\n",(int)(len/v)); } else{ printf("-1\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24556/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24556/source.c" target datalayout = "e-m:e-p270:32: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 a, b; scanf("%d %d", &a, &b); if(a==b) printf("a == b\n"); else if(a>b) printf("a > b\n"); else printf("a < b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245624/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245624/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d", &a, &b); if (a < b) { printf("a < b\n"); } else if (a > b) { printf("a > b\n"); } else { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245668/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245668/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a>b) { printf("a > b\n"); } else if(a<b) { printf("a < b\n"); } else { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245710/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245710/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d",&a,&b); if(a<b){ printf("a < b\n"); } else if(a==b){ printf("a == b\n"); } else{ printf("a > b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245754/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245754/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d",&a,&b); if (a>b){ printf("a > b\n"); }else if (a<b){ printf("a < b\n"); }else{ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245798/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245798/source.c" target datalayout = "e-m:e-p270:32: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; scanf("%d %d", &a, &b); if (a<b) { printf("a < b\n"); } else if (a>b) { printf("a > b\n"); } else { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245840/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245840/source.c" target datalayout = "e-m:e-p270:32: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 cmp1(const void *a, const void *b){ return *((char *)a) - *((char *)b); } int cmp2(const void *a, const void *b){ return *((char *)b) - *((char *)a); } int ff(int a,int b){ int m,mm; int i; char s[13]={0}; /* for(i = 5;i >= 0;i--){ s[i] = a%10 + '0'; a /= 10; if(a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245884/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245884/source.c" target datalayout = "e-m:e-p270:32: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 N 1000003 int GetChar(char); long long getkey(char *); int Find(char *); void Insert(char *); int hash1(int); int hash2(int); int n = 0; char Hash[N][13]; int main () { int i; char c[7], str[13]; for(i = 0 ; i < N ; i++) Hash[i][0] = '\0'; scanf("%d",&n);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245941/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245941/source.c" target datalayout = "e-m:e-p270: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...
/* * Dictionary.c * * Created on: 2015/02/16 */ #include<stdio.h> #include<string.h> #define M 1000213 void insert(char*); int find(char*); int get_key(char*); int get_keycode(char); int get_hash_num(int,int); char hash[M][13]={"\0"}; int main(void){ int n; int i; char str[13],input[7]; scanf("%d",&n); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245985/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245985/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @hash = dso_local global [1...
#define _CRT_SECURE_NO_WARNINGS #define MaxSize 16777215 #include <stdio.h> #include <stdlib.h> void insert(char *D, char s[]) { int i = -1; char c; int p = -1; while (c = s[++i]) { switch (c) { case 'A': p *= 4; p += 4; break; case 'C': p *= 4; p += 5; break; case 'G': p *= 4; p +...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246027/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct dictionary { char str[12]; struct dictionary *p_left; struct dictionary *p_right; }STR; STR *p_root = NULL; void insert(char value[]); char *find(char value[]); STR *makeNewnode(char value[]); int main(void) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246070/source.c" target datalayout = "e-m:e-p270: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.dictionary = type {...
#include <stdio.h> #include <string.h> #define M 1046527 #define L 14 char H[M][L]; int char2int(char c) { switch (c) { case 'A': return 1; case 'C': return 2; case 'G': return 3; case 'T': return 4; default: return 0; } } long long getKey(char str[]) { long long ret = 0, p = 1; int i; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246113/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
#include <stdio.h> #include <string.h> #define M 1000000 #define L 14 char H[M][L]; int getChar(char ch){ if(ch=='A') return 1; else if(ch=='C') return 2; else if(ch=='G') return 3; else if(ch=='T') return 4; return 0; } long long getKey(char s[]){ long long i,sum=0,p=1; for(i=0;i<strlen(s);i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1000...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include<math.h> int main() { int t,x,y,a,b; scanf("%d", &t); for (int i = 0; i < t; i++) { scanf("%d%d%d%d", &x, &y, &a, &b); if ((y - x) % (a + b) == 0) { printf("%d\n", (y - x) / (a + b)); } else printf("-1\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24620/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24620/source.c" target datalayout = "e-m:e-p270:32: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> #define HASHTABLEMAX 16777216 unsigned short hashTable[HASHTABLEMAX]; void init(void){ unsigned int i; for( i=0; i<HASHTABLEMAX; i++){ hashTable[i] = 0; } } unsigned int makehash(char *str,unsigned int length){ unsigned int i; unsigned int hash; unsigned int code; h...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246243/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246243/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @hashTable = dso_local loca...
#include <stdio.h> #include <string.h> #define M 1046527 #define NIL (-1) #define L 14 char H[M][L]; int getChar(char ch) { if (ch == 'A') return 1; else if (ch == 'C') return 2; else if (ch == 'G') return 3; else if (ch == 'T') return 4; else return 0; } long long getKey(char str[]) { long ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246287/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246287/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
#include<stdio.h> int main() { long long int t,x,y,a,b,i; scanf("%lld",&t); for(i=1;i<=t;i=i+1) { scanf("%lld %lld %lld %lld",&x,&y,&a,&b); long long int p,q; q=y-x; p=a+b; if(q%p!=0) { printf("-1\n"); } else { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24633/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24633/source.c" target datalayout = "e-m:e-p270:32: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> #define M 1000007/* your task*/ #define NIL (-1) #define L 14 char H[M][L]; /* Hash Table */ int getChar(char ch){ if ( ch == 'A') return 1; else if ( ch == 'C') return 2; else if ( ch == 'G') return 3; else if ( ch == 'T') return 4; return -1; } /* convert a string in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246395/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246395/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local local_unname...
#include<stdio.h> #include<string.h> #define M 1000033 #define L 14 char H[M][L]; /* Hash Table */ int getChar(char ch){ if ( ch == 'A') return 1; else if ( ch == 'C') return 2; else if ( ch == 'G') return 3; else if ( ch == 'T') return 4; } /* convert a string into an integer value */ long long getKey(char...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246445/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246445/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1000...
#include<stdio.h> #include<string.h> #define M 1046527 #define NIL (-1) #define L 14 char H[M][L]; //文字から数値に変換 int getChar(char ch){ if (ch == 'A'){ return 1; } else if(ch == 'C'){ return 2; } else if ( ch == 'G'){ return 3; } else if(ch == 'T'){ return 4; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246489/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
#include <stdio.h> #include <string.h> #define M 1046527 #define L 14 char H[M][L]; int getChar(char ch){ if ( ch == 'A') return 1; else if ( ch == 'C') return 2; else if ( ch == 'G') return 3; else if ( ch == 'T') return 4; } long long getKey(char str[]){ long long sum = 0, p = 1, i; for ( i = 0; i < ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246531/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246531/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
#include <stdio.h> #include <string.h> #define M 333331/* your task*/ #define L 14 char H[M][L]; /* Hash Table */ int getChar(char ch){ if ( ch == 'A') return 1; else if ( ch == 'C') return 2; else if ( ch == 'G') return 3; else if ( ch == 'T') return 4; } /* convert a string into an integer value */ long l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246575/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246575/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [3333...
#include<stdio.h> #include<string.h> #define M 5000000 #define T '0' #define L 14 int getChar(char); long long getKey(char[]); int h1(int); int h2(int); int find(char[]); int insert(char[]); int ll=0; char H[M][L]; /* Hash Table */ int getChar(char ch){ if ( ch == 'A') return 1; else if ( ch == 'C') return 2; e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ll = dso_local local_unnam...
#include<stdio.h> #include<string.h> #define M 1046527 #define L 14 #define NIL -1 char H[M][L]; /* Hash Table */ int getChar(char ch) { if ( ch == 'A') return 1; else if ( ch == 'C') return 2; else if ( ch == 'G') return 3; else if ( ch == 'T') return 4; } /* convert a string into an integer value */ long long...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246661/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246661/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #define BUFSIZE (1024) char buf[BUFSIZE]; long readnum() { long ret; char *bp; bp = fgets(buf, BUFSIZE, stdin); if (bp == NULL) goto err; ret = atol(buf); return ret; err: perror("err...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246711/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246711/source.c" target datalayout = "e-m:e-p270: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.stlist = type { ptr...
#include<stdio.h> #include<string.h> #define M 1045627 #define L 14 char H[M][L]; // 文字から数値に変換 int getChar(char ch){ if(ch == 'A') return 1; else if(ch == 'C') return 2; else if(ch == 'G') return 3; else if(ch == 'T') return 4; else return 0; } // 文字列から数値へ変換して key を生成する long long getKey(char str...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246755/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246755/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1045...
#include<stdio.h> #include<string.h> #define M 1046527 #define L 14 char H[M][L]; int getChar(char ch){ if ( ch == 'A') return 1; else if ( ch == 'C') return 2; else if ( ch == 'G') return 3; else if ( ch == 'T') return 4; } long long getKey(char str[]){ long long sum = 0, p = 1, i; for ( i = 0; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246805/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246805/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
#include<stdio.h> #include<string.h> #define M 1046527 #define NIL (-1) #define L 14 char H[M][L]; int getChar(char ch){ if(ch=='A')return 1; else if(ch=='C')return 2; else if(ch=='G')return 3; else if(ch=='T')return 4; else return 0; } long long getKey(char str[]){ long long sum=0,p=1,i; for(i=0;i<strlen(str...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246856/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246856/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
// Dictionary #include <stdio.h> #include <string.h> #define M 1046527 #define L 14 char H[M][L]; // ハッシュテーブル int getChar(char ch){ if( ch == 'A') return 1; else if(ch == 'C') return 2; else if(ch == 'G') return 3; else if(ch == 'T') return 4; } // 文字列から数値へ変換 long long getKey(char str[]){ long long sum = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246906/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246906/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @H = dso_local global [1046...
#include<stdio.h> int main() { char s[100005]; int n,k,a,b,i,j,p=0,fa=0,fb=0,ka,kb; scanf("%d%d%d%d",&n,&k,&a,&b); getchar(); s[n]='\0'; while((a!=0)||(b!=0)) { if(a>b) { i=0; if(fa==1) ka=k-1; else ka=k; while(i<ka&&a>=1) { s[p]='G'; p++; i++; a--; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24695/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24695/source.c" target datalayout = "e-m:e-p270:32: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> #define ll long long int main() { int i,na,nb,m,k; int a[100000],b[100000]; scanf("%d%d%d%d",&na,&nb,&k,&m); for(i=0;i<na;i++) scanf("%d",&a[i]); for(i=0;i<nb;i++) scanf("%d",&b[i]); if(a[k-1]<b[nb-m]) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2470/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2470/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> int min3(int, int, int); int main(void) { int l, a, p; int sum; while (~scanf("%d%d%d", &l, &a, &p)) { p /= 4; a /= 2; sum = 7 * min3(l, a, p); printf("%d\n", sum); } return 0; } int min3(int a, int b, int c) { int m; m = (a < b) ? a ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24705/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24705/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int min(int a, int b){ return(a < b ? a : b); } int main(void) { int a, b, c; scanf("%d%d%d", &a, &b, &c); int x = min(min(a, b/2), c/4); printf("%d", x*7); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24710/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24710/source.c" target datalayout = "e-m:e-p270:32: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<string.h> #include<stdbool.h> #include<math.h> #include<stdlib.h> #include <stdio.h> #include<ctype.h> int compare(const void *p,const void *q){ return *(int *)p - *(int *)q; } int main(int argc, char *argv[]) { int n; scanf("%d",&n); int say[n+1]; for(int i=0;i<n;i++) scanf("%d",say+i); qsort(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247150/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247150/source.c" target datalayout = "e-m:e-p270:32: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> static int cmp(const void *a, const void *b); int main(int argc, char *argv[]) { int i, N, t = 0, n = 0; long long list[100000] = {0LL}, l; scanf("%d", &N); for ( i = 0; i < N; i++ ){ scanf("%lld", &list[i]); } qsort(list, N, s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247200/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247200/source.c" target datalayout = "e-m:e-p270:32: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){ while(1){ int n; scanf("%d",&n); if(n==0)return 0; int i=0,sum=0; while(i<n/4){ i++; int a; scanf("%d",&a); sum+=a; } printf("%d\n",sum); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247244/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247244/source.c" target datalayout = "e-m:e-p270:32: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,m,z; while(1){ scanf("%d",&n); if(n==0){ break; } z=0; for(i=0;i<n/4;i++){ scanf("%d",&m); z+=m; } printf("%d\n",z); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247309/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247309/source.c" target datalayout = "e-m:e-p270:32: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> #define lop(i, n) for(i=0; i<n; i++) int compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main() { int n, i; scanf("%d", &n); int A[n]; lop(i, n){ scanf("%d", &A[i]); } qsort(A, n, sizeof(int), compare_int); for(i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247352/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247352/source.c" target datalayout = "e-m:e-p270:32: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> void q_sort(long numbers[], int left, int right); int main(void){ int j,N,K,i,min; long A[200000]={}; long ans; if(scanf("%d",&N)>1){ exit(0); } for(i=0;i<N;i++){ if(scanf("%ld",&A[i])>1){ exit(0); } } q_sort(A,0,N-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247402/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247402/source.c" target datalayout = "e-m:e-p270:32: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 merge_sort(int array[],int left,int right){ int i,j,k,mid; int work[200000]; if(left < right){ mid = (left + right)/2; merge_sort(array,left,mid); merge_sort(array,mid+1,right); for(i=mid; i>= left;i--){work[i] = array[i];} for(j=mid+1; j<=right; j++){ work[rig...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247446/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247446/source.c" target datalayout = "e-m:e-p270:32: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 a[3000]; int index=0; int index2=0; char b[3000]={0}; int m; scanf("%d",&m); scanf("%s",a); if(m%2==0) { for(int i=m-2;i>=0;i-=2) { b[index]=a[i]; index+=1; } for(int j=1;j<=m-1;j+=2) { b[index]=a[j]; index+=1; } } if(m%2==1) { for(int i=m-2;i>...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24749/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24749/source.c" target datalayout = "e-m:e-p270:32: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 a, b, c, sum; scanf("%d %d %d", &a, &b, &c); while(a) { if((a<<1)<=b && (a<<2)<=c) break; else a--; } sum=a+(a<<1)+(a<<2); printf("%d\n", sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24754/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24754/source.c" target datalayout = "e-m:e-p270:32: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 <math.h> int main(void){ /*宣言部*/ unsigned int input, answer=0, x, y, flag; /*input:素数の全体数 answer:素数の総数 x, y:ループ変数 flag:フラグ*/ long prime[10000], limit; /*prime:素数 limit:素数調査のループ最大値*/ /*入力部*/ scanf("%u", &input); /*全体数を読み取る*/ for(x=0; input>x; x++){ /*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247583/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247583/source.c" target datalayout = "e-m:e-p270:32: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 i,j,n,sum=0; while(scanf("%d",&n)!=EOF){ j=0; for(i=2;i<=sqrt(n);i++){ if(n%i==0){ j=1; break; } } if(j==0)sum++; } printf("%d\n",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247691/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247691/source.c" target datalayout = "e-m:e-p270:32: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> #define MAX 10000 int main(){ int n,i,j,find,count=0; int num[MAX]; scanf("%d",&n); if( n < 1 || MAX < n ) exit(2); for( i = 0 ; i < n ; i++ ) { scanf("%d",&num[i]); if( num[i] < 2 || 100000000 < num[i]) exit(3); } for( i = 0 ; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247734/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247734/source.c" target datalayout = "e-m:e-p270:32: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> #define N 10000 int main(){ int n,num[N],i,j,count=0; scanf("%d",&n); for(i=0;i<n;i++)scanf("%d",&num[i]); for(i=0;i<n;i++){ if(num[i]==2)continue; if(num[i]%2==0){ count+=1; continue; } for(j=3;j<=sqrt(num[i]);j+=2){ if(num[i]%j==0){ cou...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247778/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247778/source.c" target datalayout = "e-m:e-p270:32: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 isPrime(int x){ int i; if(x == 2) return 1; if(x < 2 || x % 2 == 0) return 0; for(i = 3; i * i <= x; i = i + 2){ if(x % i == 0) return 0; } return 1; } int main(){ int n, x, i; int cnt = 0; scanf("%d", &n); for ( i = 0; i < n; i++){ scanf("%d", &x); i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247820/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247820/source.c" target datalayout = "e-m:e-p270:32: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> // num????´???°??????1, ?´???°??§????????????0???????????¢??° int primenumber(int num) { int i, ans = 1, nmax = (int)sqrt((double)num); if (num == 1) { ans = 0; } else { for (i = 2; i <= nmax; i++) { if (num % i == 0) { ans =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247864/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247864/source.c" target datalayout = "e-m:e-p270:32: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 judge(int); int main() { int i,a,x[10000],y,c=0; int m; scanf("%d",&a); for(i=0;i<a;i++){ scanf("%d",&x[i]); m=judge(x[i]); if(m==1){ c++; } } printf("%d\n",c); return 0; } int judge(int x){ int i; if (x == 2) return 1; if(x<2 || ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247907/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> int prime(int); int main(){ int n,*data,i,count=0,check; scanf("%d",&n); data=(int*)malloc(n*sizeof(int)); for(i=0;i<n;i++) scanf("%d",&data[i]); for(i=0;i<n;i++){ check=0; check=prime(data[i]); if(check==1) count++; } printf("%d\n",count); free(data); retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247950/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247950/source.c" target datalayout = "e-m:e-p270:32: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 check(int x){ int i; if(x%2==0&&x!=2||x==1)return 0; else if(x%2==1)for(i=3; i<=sqrt(x); i+=2)if(x%i==0)return 0; return 1; } int main(){ int i, n, a, count=0; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &a); if(check(a))count++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247994/source.c" target datalayout = "e-m:e-p270:32: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 i, j; int n, tmp; int count = 0; scanf("%d", &n); for(i = 0; i < n; i++){ scanf("%d", &tmp); for(j = 2; j <= sqrt(tmp); j++){ if (tmp % j == 0) break; } if (j > sqrt(tmp) || sqrt(tmp) < 2){ count++; } } prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248043/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248043/source.c" target datalayout = "e-m:e-p270:32: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 n, t, count, i, j; int num[10000]; scanf("%d",&n); for(i=0; i < n; i++){ scanf("%d",&num[i]); } count = n; for (i = 0; i < n; i++){ if (num[i] == 2) { } else if(num[i] % 2 == 0){ count--; } else{ t = sqrt(num[i]);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248087/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248087/source.c" target datalayout = "e-m:e-p270:32: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,sum=0,i; while(scanf("%d%d%d",&a,&b,&c)!=EOF) { if(b>=2&&c>=4) { for(i=1;i<=a;i++) if(b/i>=2&&c/i>=4) sum++; printf("%d\n",sum*7); } else printf("0\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24813/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24813/source.c" target datalayout = "e-m:e-p270:32: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 <math.h> int isPrime(int x){ int i; if (x <= 1) return 0; else if(x==2) return 1; if(x%2==0) return 0; for(i=3;i*i<=x;i+=2){ if(x%i==0) return 0; } return 1; } int main() { int a,b,i; int c=0; scanf("%d",&a); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248180/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248180/source.c" target datalayout = "e-m:e-p270:32: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 IsPrime(int x) { if (x<2) return 0; else if (x==2) return 1; if (x%2==0) return 0; int i; for (i=3; i*i<=x; i+=2) { if (x%i==0) return 0; } return 1; } int ReadValue() { int value; scanf("%d",&value); return value; } int solve(int n) { int ans...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248223/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248223/source.c" target datalayout = "e-m:e-p270:32: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 n,ans1=0,ans2; scanf("%d",&n); if(n<=0||n>10000)return 0; int a,i,j; for(i=0;i<n;i++){ scanf("%d",&a); if(a<2||a>100000000)return 0; if(a==2){ ans1++; } if(a==3){ ans1++; } if(a==5){ ans1++; } if(a%2==0); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248274/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248274/source.c" target datalayout = "e-m:e-p270:32: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> #define N 10000 #define MAX 100000000 #define MIN 2 int main(){ int i,n,j,num[N],count=0; scanf("%d",&n); if(n>N) return 0; for(i=n;i>0;i--){ scanf("%d",&num[i]); if(num[i]>=MIN&&num[i]<=MAX){ if(num[i]!=2&&num[i]%2==0) count++; else{ for(j=3;j<=sqrt(num[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248317/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248317/source.c" target datalayout = "e-m:e-p270:32: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 i,j=0,l; int x; int count=0; int n[10000]; scanf("%d",&i); while(1){ scanf("%d",&n[j]); if(i == j+1)break; else j++; } for(j=0 ; j<i ; j++){ for(x=2 ; x <= sqrt(n[j]) ; x++){ if(n[j] % x ==0) break; } if(n[j] % ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248368/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248368/source.c" target datalayout = "e-m:e-p270:32: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 n,N,i=0,j,count=0; double sqrtN; scanf("%d",&n); for(j=0;j<n;j++){ scanf("%d",&N); if(N==2 || N==3){ count++; continue; } else if(N<2 || N%2==0) continue; else{ sqrtN=sqrt(N); for(i=2;i<=sqrtN;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248410/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248410/source.c" target datalayout = "e-m:e-p270:32: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...