Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#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_243432/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243432/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",a,b); }else if(a > b){ printf("a > b\n",a,b); }else if(a == b){ printf("a == b\n",a,b); } return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243483/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243483/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 if(a==b){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243526/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243526/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_243577/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243577/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main() { int n, P1, P2, P3, T1, T2; int a[200][2]; int i,j,k,l; int tmp,tmp1,tmp2,tmp3,next,sum; scanf("%d%d%d%d%d%d",&n,&P1,&P2,&P3,&T1,&T2); for(i=0;i<n;i++) scanf("%d%d",&a[i][0],&a[i][1]); sum=0;tmp1=0;tmp2=0;tmp3=0;ne...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24362/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24362/source.c" target datalayout = "e-m:e-p270:32:32-p271: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_243706/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243706/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 **trees; int n; void query(int p,int b); void refresh(int p,int tmp); int main(void){ int i,j,k,m,p,b,tmp,num; scanf("%d%d",&n,&m); trees=(int **)calloc(n+1,sizeof(int *)); for(i=0;i<n+1;i++) trees[i]=(int *)calloc(1<<i,sizeof(int)); num=1<<n; for(i=0;i<num;i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24375/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24375/source.c" target datalayout = "e-m:e-p270:32:32-p271: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_243793/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243793/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_243836/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243836/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include"stdio.h" char str[200],len; long num[3]; int main() { long i; scanf("%s",str); len=0; while(str[len]!='\0') len++; for(i=0;i<=len-1;i+=2) num[(long)(str[i]-'1')]++; num[1]+=num[0]; num[2]+=num[1]; for(i=1;i<=num[0];i++) str[i*2-2]='1'; for(i=num[0]+1;i<=num[1];i++) str[i*2-2]='2'; fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24388/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24388/source.c" target datalayout = "e-m:e-p270:32:32-p271: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_243922/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243922/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_243966/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_243966/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; do { scanf("%d %d",&a,&b); } while (-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_244015/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244015/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) puts("a < b"); else if (a > b) puts("a > b"); else puts("a == b"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244066/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244066/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244109/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244109/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244152/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244152/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244202/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244202/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244246/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244246/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[101]; char arr[101]; long int l; long int m; long int i = 0; long int j = 0; long int k; long int t; scanf("%s" , &str); l = strlen(str); while(str[i] != '\0') { if(str[i] != '+') { arr[j] = str[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24429/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24429/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 s[101]; int main() { int i=0, j, size=0, temp; char ch; while(1) { scanf("%c", &ch); if(ch == '\n') break; if(ch == '+') continue; s[size++] = ch-'0'; } fflush(stdin); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24434/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24434/source.c" target datalayout = "e-m:e-p270:32:32-p271: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){ puts("a < b"); } else if(a > b){ puts("a > b"); } else { puts("a == b"); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244390/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244390/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; 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_244433/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244433/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 printf("a == b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244505/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244505/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244549/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244549/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>=-1000 && a<=1000 && b>=-1000 && b<=1000) { 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_244592/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244592/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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> int main() { int a, b; a = 0, b = 0; scanf("%d %d", &a, &b); if (a >= -1000 && 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_244635/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244635/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244679/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244679/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a); scanf("%d",&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_244721/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244721/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ puts("a < b"); } else if(a>b){ puts("a > b"); } else if(a == b){ puts("a == b"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244772/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244772/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244822/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244822/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, const char * argv[]) { 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_244866/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244866/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244952/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244952/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245009/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245009/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245052/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245052/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"); else if (a > b) puts("a > b"); else if (a == b) puts("a == b"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245096/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245096/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> /* recommend usage initial */ void solve(int a, int b){ if( a==b ){ printf("a == b\n"); } else if( a>b )//if( a>b ){ printf("a > b\n"); // b> a is ng else if( a < b ){ //}else{ printf("a < b\n"); } } int main(void){ // Your code here! in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245139/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245139/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str.3 = private unnamed_a...
#include <stdio.h> int main() { unsigned cases; unsigned x, y, a, b; scanf("%u", &cases); for (unsigned i = 0; i < cases; i++) { scanf("%u %u %u %u", &x, &y, &a, &b); unsigned mod = (y - x) % (b + a); if (mod == 0) { printf("%u\n", (y - x) / (b + a)); } else { printf("-1\n"); } } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24519/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24519/source.c" target datalayout = "e-m:e-p270:32:32-p271: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); printf("a "); if(a > b)printf(">"); if(a < b)printf("<"); if(a == b)printf("=="); printf(" b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245232/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245232/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245276/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245276/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245326/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245326/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i,p=0,min,max,t,l,h,counter=0; scanf("%d %d",&n,&m); min=m; max=m; for(i=0;i<n;i++) { scanf("%d %d %d",&t,&l,&h); min=min-t+p; max=max+t-p; if((l>=min&&l<=max)||(h<=max&&h>=min)||(min>=l&&min<=h)||(max<=h&&max>=l)) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24537/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t; long long x,y,a,b,ans; scanf("%d",&t); while(t--) { scanf("%lld%lld%lld%lld",&x,&y,&a,&b); if((y-x)%(a+b)==0) printf("%lld\n",(y-x)/(a+b)); else printf("-1\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24542/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24542/source.c" target datalayout = "e-m:e-p270:32:32-p271: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_245478/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245478/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245520/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245520/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245564/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245564/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245614/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245614/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,e,f,g; 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_245658/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245658/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245715/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245715/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245759/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245759/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245801/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245801/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define MAX_NODES 8 /* 大蛇の節の最大数 */ #define MAX_ROCKS 100 /* 岩の最大数 */ #define MAX_STEPS 20 /* 最長ステップ数 */ #define RADIUS ((MAX_STEPS+2)/2+MAX_NODES+1) /*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245845/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245845/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dX = dso_local local_unnam...
#include <stdio.h> int a[21], L; int calc_next(int a, int L){ int i, j; int h[10] ={}; // ヒストグラム int maximum = 0, minimum = 0; // 最大,最小 for(i = 0; i < L; i++){ h[a % 10]++; a = a / 10; } // 大きい順に使う for(i = 9; i >= 0; i--){ for(j = 0; j < h[i]; j++){ maximum = maximum * 10 + i; } }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245902/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @a = dso_local global [21 x...
#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...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245946/source.c" target datalayout = "e-m:e-p270: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> int main() { int i,o; scanf("%d",&o); for(i=0;i<o;i++) { long int x,y,a,b,t; 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"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24599/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24599/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#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 <<= 2; p += 4; break; case 'C': p <<= 2; p += 5; break; case 'G': p <<= 2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246031/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246031/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #define MAX 100000000 char str[14]; char H[MAX]; int find(void); void insert(void); int getChar(char); int getkey(void); int main(){ int i,j,n; char a[7]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s %s",a,str); if(a[0]=='i'){ insert(); } else if(a[0]=='f'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246075/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246075/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct dictionary_t *dictionary_t; #define NIL ((uint64_t)0xFFFFFFFFFFFFFFFF) struct dictionary_t { uint64_t *data; size_t size; }; dictionary_t dictionary_create(size_t size) { dictionary_t dict = (dic...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246118/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246118/source.c" target datalayout = "e-m:e-p270: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_t = type...
#include<stdio.h> #include<string.h> #define M 1046527 #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; else return 0; } long long getKey(char str[]){ long long sum = 0,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246161/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246161/source.c" target datalayout = "e-m:e-p270: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 N 100000000 char c[14]; int x[N]; int n; int a(void); int b(char); void insert(void); int find(void); int main(){ char str[7]; int i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s%s",str,c); if(str[0]=='i'){ insert(); } else if(str[0]=='f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246204/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246204/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 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; else return 0; } long long getKey(char str[]) { long long sum = 0, p =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246255/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246255/source.c" target datalayout = "e-m:e-p270: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 <stdbool.h> #include <string.h> int getkey(char []); int h1(int); int h2(int); int Getc(char); #define M 1046527 #define L 14 typedef struct a{ char H[L]; bool X; }has; has hash[M]; void insert(char []); bool find(char []); int main(){ int n,i; char X[L],command[7...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246299/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246299/source.c" target datalayout = "e-m:e-p270: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.a = type { [14 x i8...
#include <stdio.h> #include <string.h> typedef unsigned int U; #define L 1<<21 char HA[L], T[256]; int main() { U n, s, t; char c; T['A'] = 4; T['C'] = 3; T['G'] = 2; T['T'] = 1; scanf("%d", &n); getchar(); while (n--) { s = 0; t = 1; int flag = ( c = getch...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246370/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246370/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @T = dso_local local_unname...
#include<stdio.h> #include<string.h> #define M 1000002 #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 return 4; } /* convert a string into an integer value */ long long getKey(cha...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246413/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246413/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> #define N 1000000 #define M 1000001 typedef struct card{ char key[15]; struct card *next; }card; card *a[M]; long long convert(char str[]){ int x=0; long p=1; for(int i=0;i<strlen(str);i++){ x+=(str[i]-'A')*p; p*=5; } return x%M; } void insert(c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246457/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246457/source.c" target datalayout = "e-m:e-p270: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 { [15 x...
#include <stdio.h> #define ABS(a) ((a) < 0 ? (0 - (a)) : (a)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define TRUE 1 #define FALSE 0 #define PI 3.14159265358979323846 #define HELL 1000000007ll #define INF 1000000000000015 #define getchar_unlocked() getchar() long long fast_i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24650/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @fast_in.j_fast = internal un...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define N 100000000 #define pi M_PI char H[N]; 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_246543/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246543/source.c" target datalayout = "e-m:e-p270: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 1046527 #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_246594/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246594/source.c" target datalayout = "e-m:e-p270: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]; /* 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; else return 0; } /* convert a string into an integer value */ long...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246644/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246644/source.c" target datalayout = "e-m:e-p270: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> #include <stdlib.h> #define BUF_SIZE 25 #define BITMAP_SIZE 33554432 int map[0xff] = { ['A'] = 0, ['C'] = 1, ['G'] = 2, ['T'] = 3, }; int strtokey(char *str) { char *tmp; int i; int ans = strlen(str); // lsb 4bit: length, [31,5] -> key for(tmp = str, i=2; *tmp...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246688/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246688/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @map = dso_local local_unna...
#include <stdio.h> #include <string.h> #define M 1046257 #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; return 0; } long long getKey(char str[]) { long long sum ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246730/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246730/source.c" target datalayout = "e-m:e-p270: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 1000003/* 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 lo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246781/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246781/source.c" target datalayout = "e-m:e-p270: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 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_246831/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246831/source.c" target datalayout = "e-m:e-p270: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 getC(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 getk(char str[]){ long long sum=0,p=1,i; for(i=0;i<strlen(str);i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246875/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246875/source.c" target datalayout = "e-m:e-p270: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> #define M 1000000 #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; else return 0; } /* convert a string into an in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246918/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246918/source.c" target datalayout = "e-m:e-p270: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...
/* * 1040.c: Chocolate with Heart Marks */ #include <stdio.h> #include <stdlib.h> #include <string.h> /* constant */ #define MAX_INT (1 << 29) #define MAX_H (12) #define MAX_W (12) #define MAX_NTS (6) /* typedef */ typedef int mat_t[MAX_H * MAX_W][MAX_H * MAX_W]; typedef int opt_t[1 << MAX_NTS][MAX_H * MAX_W]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246969/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246969/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @gmat = internal unnamed_ad...
// Aizu Vol-1 0184: Tsuruga Castle // 2017.8.2 #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> char *gets(char *); char buf[100], *p; int getInt(void) { register int n = 0; // while (isspace(*p)) p++; while (isdigit(*p)) n = 10 * n + (*p++ - '0'); return n; } int cnt[15]; int main...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247010/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247010/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @p = dso_local local_unname...
#include<stdio.h> int main(void){ int n,i,age,a,b,c,d,e,f,g; for(;;){ a=0,b=0,c=0,d=0,e=0,f=0,g=0; scanf("%d",&n); if(n==0) break; for(i=0;i<n;i++){ scanf("%d",&age); /*while(age<10){ a++; }*/ if(age<10) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247069/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247069/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 up(const void *a,const void*b){ return *(int *)a - *(int *)b; } int main(void){ int n; scanf("%d",&n); int a[n]; for(int i = 0;i < n;i ++){ scanf("%d",&a[i]); } qsort(a,n,sizeof(int),up); int b = a[0] , count = 1 , ans = 0; a[n] = '\0'; for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247111/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247111/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare_int(const void *a,const void *b){ return *(long*)a-*(long*)b; } int main(void){ long N; long ans = 0; scanf("%ld",&N); long long A[N]; for(int i = 0;i < N;i++) scanf("%lld",&A[i]); qsort(A,N,sizeof(long),compare_int); for(int i = 0;i < N;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247155/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247155/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main(void){ int n; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++) {scanf("%d",&a[i]);} qsort(a, n, sizeof(int), compare_int); int count=0; int samecount=0; int before=-1; for(int i=0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247205/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247205/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[1000],sum; while (1){ sum=0; scanf("%d",&n); if(n==0)break; for (i=0;i<n/4;i++){ scanf("%d",&a[i]); sum=sum+a[i]; } printf("%d\n",sum); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247249/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247249/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define ll long long int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;} void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);} ll a[200010]; int main(){ int n; scanf("%d",&n); for(int i=0;i<n;i++)scanf("%lld",a+i); sortup(a,n); for(int i=1;i<n;i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247328/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247328/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* * atcode154-c */ #include <stdio.h> #include <stdlib.h> int comp_int(const void *p1, const void *p2) { int *i1 = (int *)p1; int *i2 = (int *)p2; return (*i1 > *i2); } int main(int argc, char *argv[]) { int *np; int n, i; scanf("%d", &n); np = (int *) malloc(n * sizeof (int)); for (i = 0; i < ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247386/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247386/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ddd(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main () { int n,i,j; int a[200010]; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } qsort(a, n, sizeof(int), ddd); for(i=0;i<n;i++) { if(a[i]==a[i+1]) { printf("NO"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247429/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247429/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int c; int s; scanf("%d %d %d",&a,&b,&c); if(c<=3 || b<=1 || a==0) { s=0; goto l1; } if(a<=b/2 && a<=c/4) s=7*a; else if(a>=b/2 && b<=c/2) s=(b-(b%2))*7/2; else s=7*(c-(c%4))/4; l1: printf("%d",s); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24748/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { int n, number; int cnt = 0; int i, j; int tr = 0; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d", &number); if (number == 2) { } else if (number < 2 || number % 2 == 0) { tr = 1; } else { for (j = 3; j <= sqrt(number); j += 2) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247522/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247522/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int N; int a[10000]; int i, j; int cnt = 0; scanf("%d", &N); for (i = 0; i < N; i++) { scanf("%d", &a[i]); } for (i = 0; i < N; i++) { for (j = 2; j*j <= a[i]; j++) { if (j != a[i] && a[i] % j == 0) { cnt++; break; } } } printf("%d\n", N - cnt); ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247580/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247580/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10000]; int n, flag, i, j, count=0; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &a[i]); flag=1; if(a[i]<2) flag=0; else if(a[i]==2) flag=1; else if(a[i]%2 == 0) flag=0; else{ for(j=3; j<= a[i]/j; j+=2){ if(a[i]%j==0) flag=0; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247645/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247645/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 judge(int num) { int i; if (num < 2){ return (0); } if (num == 2){ return (1); } if (num % 2 == 0){ return (0); } for (i = 3; i * i <= num; i += 2){ if (num % i == 0){ return (0); } } return (1); } int main(void) { int n, num; int ct = 0, i; scanf("%d", &n); for (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247702/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,a,n,count=0,flag=0; int arr[N]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&arr[i]); } for(i=0;i<n;i++){ if(arr[i]==2){ count++; continue; } if(arr[i]<2||arr[i]%2==0)continue; a=3; while(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247753/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247753/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 true 1 #define false 0 int isPrime(int); int main(){ int i,data[N],n,cnt=0; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%d",&data[i]); } for(i=0; i<n; i++) cnt += isPrime(data[i]); printf("%d\n",cnt); return 0; } int isPrime(int x){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247797/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// 1_1_C #include <stdio.h> #include <math.h> int IsPrime(int n){ if(n == 2) return 1; if(n % 2 == 0) return 0; int limit = (int)ceil(sqrt((double)n)), divisor; for(divisor = 3; divisor <= limit; divisor += 2){ if(n % divisor == 0) return 0; } return 1; } int main(){ int n, i, nu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247854/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247854/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,n,c=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x); if(x==2) c++; if(x<2||x%2==0) continue; j=3; while(j<=sqrt(x)){ if(x%j==0) break; j+=2; } if(j>sqrt(x)==1) c++; } printf("%d\n",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247898/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247898/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 TRUE 1 #define FALSE 0 int isprime(int); int main(){ int i,j,num,A[N],count=0; while(1){ scanf("%d",&num); if(1 <= num && num <= N) break; } for(i = 0;i < num;i++){ scanf("%d",&A[i]); if(A[i] < 2 || N*N < A[i]) i = i - 1; } for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247940/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247940/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 isprime(int); int main() { int n,s[10000],i,cnt=0; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&s[i]); for(i=0;i<n;i++) if((isprime(s[i]))==1) cnt++; printf("%d\n",cnt); return 0; } int isprime(int x) { int i; if(x==2) return 1; else if(x<2 || x%2==0) retu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247991/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247991/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 isPrime(int p){ int i; if(p == 2)return 1; if(p < 2 || p%2 == 0) return 0; i = 3; while(i <= sqrt(p) ){ if(p % i == 0) return 0; i = i + 2; } return 1; } int main(){ int a[10000], i, n, c = 0; scanf("%d",&n); for(i = 0; i < n; i++) { sc...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248033/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248033/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 prime(int x) { int i; if(x==2) return 1; else 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 n,m,i; int a=0; scanf("%d",&n); for(int i=0;i<n;i++) { scanf("%d",&m); if(prime(m)==1) { a++; } } printf("%d\n",a); r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248077/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248077/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 prime(int n) { int i; if(n<2) return 0; for (i=2; i<=(int)sqrt((double)n); i++) if (n%i==0) return 0; return 1; } int main(void) { int i,sum=0,n,a; scanf("%d",&n); for (i=1; i<=n; i++) { scanf("%d",&a); if(prime(a)) sum+=1; } printf("%d\n",sum); return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int n,a,ans=0,i,j; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); for(j=2;j*j<=a;j++) if(a%j==0) goto loop; ans++; loop:; } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248192/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248192/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...