Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(){ 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 if(a == b){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244088/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244088/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>=-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...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244130/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244130/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244174/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244174/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244224/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244224/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// // main.c // ITP1_2_A Small, Large, or Equal // // Created by x17054xx on 2017/04/28. // Copyright ?? 2017??´ x17054xx. All rights reserved. // #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){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244268/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244268/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244318/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244318/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244369/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244369/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244411/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244411/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/************************************/ // //???????????´??° a, b ?????????????????§???a ??¨ b ?????§?°???¢??????????????????????????°?????? // //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_2_A&lang=jp /************************************/ #include<stdio.h> #define MIN -1000 #define MAX 1000 int ma...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244477/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244477/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244527/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244527/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(-1000<=a && 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_244570/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244570/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244613/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244613/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244657/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244657/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[1000]={}; int cnt[4]={}; scanf("%s",a); int i; int len=strlen(a); for(i=0;i<len;i=i+2) { if(a[i]=='1') cnt[1]++; else if(a[i]=='2') cnt[2]++; else cnt[3]++; } for(i=0;i<cnt[1];i++) { if(i==cnt[1]-1 && cnt[3]==0 && cnt[2]==0) printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24470/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24470/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 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_244743/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244743/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_244800/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244800/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; printf("");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_244844/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244844/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str.1 = private unnamed_a...
#include <stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(a < b){ printf("a < b\n"); } else if(a > b){ printf("a > b\n",a,b); } else{ printf("a == b\n",a,b); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244888/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244888/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char const *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_244930/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244930/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_244981/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_244981/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245030/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245030/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf(a<b?"a < b\n":(a==b?"a == b\n":"a > b\n")); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245074/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245074/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"); }else{ printf("ERROR!\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245117/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245117/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef long long ll; int max(int a, int b){ if(a > b) return a; else return b; } int min(int a, int b){ if(a < b) return a; else return b; } int sort(const void *a ,const void *b){ return *(int*)a - *(int*)b; } int f(int a){ int c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245168/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245168/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 printf("a == b\n",a,b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245210/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245210/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"); if(a > b)printf("a > b"); if(a == b)printf("a == b"); printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245254/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245254/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"); else if(a>b)printf("a > b"); else printf("a == b"); printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245298/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245298/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int a, b; 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_245348/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245348/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245399/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245399/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char *argv[]) { int 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_245456/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245456/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { long int x,y,n,k,z,l,m,i; scanf("%ld%ld%ld",&y,&k,&n); x = n - y; long d1,d2; d1 = y / k; d2 = n / k; z = d2 - d1; l = d1 % k; if(z>=1) { for(i=1;i<=z;i++) { m = (d1+i) * k - y; printf("%ld ",m); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2455/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2455/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> int main() { short 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_245542/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245542/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245586/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245586/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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&&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_245636/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245636/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245694/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245694/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 if(a<b){ printf("a < b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245737/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245737/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_245780/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245780/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 puts("a == b"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245823/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245823/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L_MAX 6 #define I_MAX 20 int anagram(int n, int l, int (*comp)(const void*, const void*)) { char arr[L_MAX]; int i; for(i = l - 1; i >= 0; i--, n /= 10) arr[i] = n % 10; qsort(arr, l, 1, comp); for(n = i = 0; i < l; i++) n = n * 10 +...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245874/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245874/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1000000 #define L 14 char H[MAX][L]; int ctoi(char rom){ if(rom=='A')return 1; else if(rom=='C')return 2; else if(rom=='G')return 3; else if(rom=='T')return 4; else return 0; } int getvalue(char ary[]){ int sum=0,a=1,i; for(i=0;i<strlen(ary);i++){ s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245924/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245924/source.c" target datalayout = "e-m:e-p270: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 NIL (-1) #define m 1046527 char T[m][14]; int h1(int key) {return key%m;} int h2(int key) {return 1+key%(m-1);} 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 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_245968/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_245968/source.c" target datalayout = "e-m:e-p270: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 global [1046...
#include<stdio.h> int x,y,a,b; int main() { int N,i=0; scanf("%d",&N); while(i<N) { scanf("%d %d %d %d",&x,&y,&a,&b); if((y-x)%(a+b)==0) { int num=(y-x)/(a+b); printf("%d\n",num); } else printf("-1\n"); i++; } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24601/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24601/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 1777216 #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_246053/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246053/source.c" target datalayout = "e-m:e-p270: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 [1777...
#include <stdio.h> // printf(), fprintf(), scanf() #include <stdlib.h> // exit() #include <string.h> // strlen(), strcpy(), strcmp(), memset() #include <stdbool.h> // #define DEBUG 1 #define N_DICT 1000000 #define N_HASH 512000 #define L_STRINGS 50000000 typedef struct dict_tbl { const char*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246097/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246097/source.c" target datalayout = "e-m:e-p270: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.dict_tbl = type { p...
#include<stdio.h> int main() { int x,y,a,b,t,i,c; scanf("%d",&t); for(i=0;i<t;i++){ scanf("%d%d%d%d",&x,&y,&a,&b); c=a+b; if((y-x)%c==0){ printf("%d\n",(y-x)/c); }else{ printf("-1\n"); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24614/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24614/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> int getChar(char); int h1(int); int h2(int); int find(char []); int insert(char []); #define LN 14 #define NIL -1 #define M 1000000 char HASH[M][LN]; int main(){ int i,n;; char str[LN]; char comm[7]; for(i=0;i<M;i++){ HASH[i][0]='\0'; scanf("%d",&n); for(i=0;i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246183/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246183/source.c" target datalayout = "e-m:e-p270: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 #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 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246226/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246226/source.c" target datalayout = "e-m:e-p270: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...
// AOJ ALDS1_4_C Dictionary // 2018.4.27 bal4u #include <stdio.h> // バッファを経ずstdinから数値を得る #define gc() getchar_unlocked() //#define gc() getchar() int in() { int n = 0, c = gc(); do n = 10*n + (c & 0xf), c = gc(); while (c >= '0'); return n; } int tr['T'+1]; char f[33554432]; int main() { int n, k, c; tr['A']...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246277/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246277/source.c" target datalayout = "e-m:e-p270: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._IO_FILE = type { i...
#include<stdio.h> #include<string.h> int main() { int n,i; scanf("%d",&n); for(i=1;i<=n;i++) { long long int a,b,c,d; scanf("%lld%lld%lld%lld",&a,&b,&c,&d); int x; if( (b-a)%(c+d)==0 ) printf("%d\n",x=(b-a)/(c+d)); else printf("-1\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24632/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24632/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #define newTree() ((PTREE)calloc(1, sizeof(TREE))) int code[128] = { 0 }; typedef struct _tree { int flag; struct _tree *list[4]; } TREE, *PTREE; void insert(PTREE root, char *str) { int i; if (*str == '\0') { root->flag = 1; return; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246392/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246392/source.c" target datalayout = "e-m:e-p270: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._tree = type { i32,...
#include<stdio.h> #include<string.h> #define M 1000003 #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 = 0, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246435/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246435/source.c" target datalayout = "e-m:e-p270: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 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; } /* 文字列から数値へ変換して key を生成する */ lo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246479/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246479/source.c" target datalayout = "e-m:e-p270: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 int getChar(char); long long getKey(char st[]){ long long sum=0,p=1,i; for(i=0;i<strlen(st);i++){ sum+=p*(getChar(st[i])); p*=5; } return sum; } int h1(int); int h2(int); int find(char*); int insert(char*); char H[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246521/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246521/source.c" target datalayout = "e-m:e-p270: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 A 1046527 #define NIL (-1) #define B 14 char H[A][B]; int geChar(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 geKey(char str[]) { long long sum = 0, a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246565/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246565/source.c" target datalayout = "e-m:e-p270: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 /* ハッシュ表の列数 */ #define FOUND 1 #define NFOUND 0 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; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246622/source.c" target datalayout = "e-m:e-p270: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]; 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 < str...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246666/source.c" target datalayout = "e-m:e-p270: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; } //文字列から数値へ変換してkeyを生成する long long getKey(cha...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246709/source.c" target datalayout = "e-m:e-p270: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 MAX 1000000 int T[4][MAX + 5]; int convert(char[], int*); int hashSearch(int, int); int hashInsert(int, int); int hash(int, int); int main() { int n; int i, ix; int count = 0; int store, find; scanf("%d", &n); char tempCmd[13]; char tempChar[13]; for (i = 0; i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246752/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a1,b1,c1; scanf("%d",&a1); scanf("%d",&b1); scanf("%d",&c1); a1=a1/1; b1=b1/2; c1=c1/4; int x=a1<=b1?a1:b1; int s=x<=c1?x:c1; printf("%d\n",s*7); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24681/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24681/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> int hachTable[250000000]; int getNum(char c){ switch (c) { case 'A': return 1; case 'C': return 2; case 'G': return 3; case 'T': return 4; default: return 0; } } int getK...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246853/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246853/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @hachTable = dso_local loca...
#include<stdio.h> #include<string.h> #define R 1046527 #define N (-1) #define L 14 char Hi[R][L]; int gc(char X){ if(X == 'A'){ return 1; } else if(X == 'C'){ return 2; } else if(X = 'G' ){ return 3; } else if(X == 'T') { return 4; } else return 0; } long long gt(char A[]){ long...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246897/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246897/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @Hi = dso_local global [104...
#include<stdio.h> #include<string.h> #define M 1000000 #define L 12 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_246947/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246947/source.c" target datalayout = "e-m:e-p270: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> int main(void) { int a; int i; int vis; while (1){ int b[7] = {0}; scanf("%d", &vis); if (vis == 0){ break; } for (i = 0; i < vis; i++){ scanf("%d", &a); if (a < 10){ b[0]++; } else if (a < 20){ b[1]++; } else if (a < 30){ b[2]++; } else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_246990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_246990/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int s, x1, x2, p, d1, t1, t2, ans = 0; scanf("%d%d%d%d%d%d%d", &s, &x1, &x2, &t1, &t2, &p, &d1); int t_ig = abs(x1 - x2) * t2; int t_tr; if (d1 > 0 && p > x1 && p <= x2) t_tr = (2*s - p + x2)*t1; if (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24704/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> typedef long long ll; int compare_ll(const void *a, const void *b){ return *(ll*)a - *(ll*)b; } int main(){ int n, ans=0; ll a[100001]={0}; scanf("%d",&n); for(int i=0; i<n; i++){ scanf("%lld",&a[i]); } qsort( a, n, sizeof(ll), compare_ll ); int cnt=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247090/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247090/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 100000 int compare(const void *a, const void *b) { int ia = *(int *) a; int ib = *(int *) b; return ia - ib; } int main() { static int aa[N]; int n, i, j, ans; scanf("%d", &n); for (i = 0; i < n; i++) scanf("%d", &aa[i]); qsort(aa, n, sizeof *aa, compare);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247133/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.aa = internal global ...
#include <stdio.h> #include <stdlib.h> int cmp(const void *a, const void *b){ return *(const int *)a - *(const int *)b; } int main(void){ int N,i,j; scanf("%d",&N); int S[N]; for (i=0;i<N;i++){ scanf("%d",&S[i]); } qsort(S,N,sizeof(int),cmp); int cnt=0; for (j=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247177/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int n, m, i, total = 0, mato; scanf("%d", &n); while(n != 0) { total = 0; m = n /4; for(i = 0; i < m; i++){ scanf("%d", &mato); total = total + mato; } printf("%d\n", total); total = 0; scanf("%d", &n); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247227/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247227/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int A[100028]; int B[100028]; int main () { int na, nb; int i, j; int k, m; int tar; scanf ("%d%d", &na, &nb); scanf ("%d%d", &k, &m); for (i = 0; i < na; i++) { scanf ("%d", &A[i]); } for (i = 0; i < nb; i++) { scanf ("%d", &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2473/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2473/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <stdlib.h> #include <stdio.h> #include <math.h> #define MAX_WORD_LEN 2000 char encword[MAX_WORD_LEN+1]; char decword[MAX_WORD_LEN+1]; int sgn(int x) { if (x > 0) return 1; if (x < 0) return (-1); return 0; } int main() { #ifndef ONLINE_JUDGE freopen( "input.txt", "r", stdin ); #endif int wor...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24735/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24735/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 int_comp(const void*a,const void*b){return *(int*)a-*(int*)b;} int main(void) { int n; int a[200000]; scanf("%d",&n); for(int i=0;i<n;i++){ scanf("%d",&a[i]); } int flg=0; qsort(a,n,sizeof(int),int_comp); for(int i=1;i<n;i++){ if(a[i]==a[i-1]){ flg=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247407/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247407/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main (void) { int N, i; unsigned long A; char *IND; scanf("%d", &N); IND = (char *)calloc(1000000000, sizeof(char)); for (i = 0; i < N; i++) { scanf("%lu", &A); IND[A]++; if (IND[A] > 1) { puts("NO"); return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247450/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247450/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const void *a,const void *b){return *(long long*)a-*(long long*)b;} int main(){ int n; scanf("%d",&n); ll a[n]; for(int i=0;i<n;i++) scanf("%lld",&a[i]); qsort(a,n,sizeof(long long),cmp); int count=0; for(int i=0;i<n-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247500/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247500/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main(void) { int num; long long int prime; int count_prime = 0; int i, j; scanf("%d", &num); for (i = 0; i < num; i++) { int count = 0; scanf("%lld", &prime); if (prime == 2) { count_prime++; } else if (prime > 2 && prime % 2 != 0) { fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247544/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247544/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int main() { int N, i; int A[10001]; scanf("%d",&N); for (i = 0; i <= N - 1; i++) { scanf("%d", &A[i]); } int m = 0, all = 0; for (i = 0; i <= N - 1; i++) { all += prime(A[i]); } printf("%d\n", all); return 0; } int prime(int x) { if (x == 2 || x =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247601/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247601/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[10000]; int main( void ) { int n; scanf( "%d", &n ); int i, j; int cnt = n; for( i=0; i<n; i++ ) { scanf( "%d", &num[i] ); } for( i=0; i<n; i++ ) { if( 2 == *(num+i) ) { continue; } if( 0 == *(num+i)%2 ) { c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247674/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247674/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #include<stdlib.h> #define N 10000 int main(){ int i,j,n,a[N],count=0,count2=0; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%d",&a[i]); for(j=2; j<=sqrt(a[i]); j++){ if(a[i]%j == 0 || a[i]==j*j){ count = -1; break; } } if(count == 0)count2++;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int main(){ int n,i,x; int cnt=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&x); if(Prime(x)) cnt++; } printf("%d\n",cnt); return 0; } int Prime(int x){ int i=3; if(x==2) return 1; if(x%2==0) return 0; while(i<=sqrt(x)){ if(x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247775/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247775/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(1); } if(x < 2 || (x%2) == 0){ return(0); } int i=3; while((i*i) <= x){ if((x % i) == 0){ return(0); } i = i + 2; } return(1); } int main(void) { int n; int x; int i; int count = 0; scanf("%d",&n); fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247825/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x); int main(){ int i,n,A[10000],count=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); count+=isPrime(A[i]); } printf("%d\n",count); return 0; } int isPrime(int x){ int i=3; if(x==2){ return 1; } if(x<2 || x%2==0){ return 0; } while...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247876/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247876/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x); int main() { int i,j,n,m,count=0,num,c; scanf("%d",&num); for(i = 0;i < num;i++) { scanf("%d",&n); c = isPrime(n); count += c; } printf("%d\n",count); return 0; } int isPrime(int x) { int i; if(x == 2) return 1; if(x < 2 || x ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_247919/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_247919/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=0,i; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); for(i=1;i<=a;i++) { if(2*i<=b&&4*i<=c) ans=7*i; else break; } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24797/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> #include<math.h> #define N 10000 int keisan(int); int main(){ int i,j,num; int S[N]; int count = 0; while(1){ scanf("%d",&num); if(num >= 1 && num <= N)break; } for(i = 0;i<num;i++){ scanf("%d", &S[i]); } for(i = 0;i<num;i++){ if(keisan(S[i]) == 1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248011/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248011/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,num,kazu,i,j; int A[10000]; double b; scanf("%d",&n); kazu=0; for(i=0;i<n;i++){ scanf("%d",&A[i]); num=0; b=sqrt(A[i]); for(j=1;j<=b;j++){ if(A[i]%j==0){ num++;} } if(num==1){ kazu++;} } printf("%d\n",kazu); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248055/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248055/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 primality(int x); int main(void){ int n,i,x,cnt=0; scanf("%d", &n); for(i=0;i<n;i++){ scanf("%d", &x); if(primality(x)){ cnt++; } } printf("%d\n",cnt); return 0; } int primality(int x){ int i; if(x == 2){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248170/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248170/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,r,f=0,count=0; int a[10000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++){ if(a[i]!=2){ for(j=2;j<=sqrt(a[i]);j++){ r=a[i]%j; if(r==0){ f=1; break; } } } if(f==0) count++; f=0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248220/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248220/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,k,a,in=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); for(k=1;k<=a;k+=2){ if(k==1 && a==2){in++; break;} if(k==1)continue; if(a==3 || a==5 || a==7){in++; break;} if(a!=2 && a%2==0)break; if(a!=3 && a%3==0)break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, num, sum = 0, i, j; scanf("%d", &n); for(i = 0; i < n; i++) { scanf("%d", &num); if(num % 2 == 0 && num > 2) { sum++; } else { for(j = 3; j <= sqrt(num); j+=2) { if(num % j == 0) { sum++; break; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248314/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248314/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,cnt,i,j,sosuu=0,snum; double num; while(1) { scanf("%d",&n); if(n >= 1 && n <= N) break; } for(i=0;i<n;i++) { while(1) { scanf("%lf",&num); if(num >=2 && num <= 100000000) break; } snum = sqrt(nu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248358/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248358/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x[10000],a=0; scanf("%d", &n); if(n >= 1 && n <= 100000){ for(i = 0 ; i < n ; i++){ scanf("%d",&x[i]); } for(i = 0 ; i < n ; i++){ for(j = 2; j <=sqrt(x[i] ) ;j++){ if(x[i] % j == 0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248408/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main(void){ int a[10005],count=0,i,j,f,n; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=0;i<n;i++){ f=1; for(j=2;j<=sqrt(a[i]);j++){ if(a[i]%j==0){ f=0; } } if(a[i]==1)continue; if(f==1){ count++; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248466/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248466/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x) { if (x == 2) return 1; if (x % 2 == 0) return 0; int i = 3; int sqrt_x = sqrt(x); for (i; i <= sqrt_x; i += 2) { if (x % i == 0) return 0; } return 1; } int main(void) { int n, x, idx, ans; ans = 0; scanf("%d", &n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248552/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248552/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 judg(int x) { int i; if( x==2) return 1; if(x<2 || x%2==0) return 0; for(i=3;i<=sqrt(x);i+=2) { if(x%i==0) return 0; } return 1; } int main(){ int i,in,lonely,nakama=0; scanf("%d",&in); for(i=0;i<in;i++) { scanf("%d",&lonely); if(judg(lonel...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248596/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 10000 int main(){ int a[N], f = 0, g, i, n, x = 3; scanf("%d", &n); for(i = 0; i < n; i++){ if((scanf("%d", &a[i])) == EOF) break; if(a[i] == 2 || a[i] == 3 || a[i] == 5 || a[i] == 7) f++; else if(a[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248646/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248646/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main() { int a,b,x[1005],y[1005],v[1005],n,i; double time=1000000000,temp; scanf("%d %d",&a,&b); scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&x[i],&y[i],&v[i]); temp=sqrt((a-x[i])*(a-x[i])+(b-y[i])*(b-y[i])); temp=temp/v[i]; if(temp<time){ time=temp; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_24869/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_24869/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(){ int i,j,k,n,count1,count2=0; int A[10000]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&A[i]); count1=0; for(j=1;j<=sqrt(A[i]);j++){ if(count1==2) break; if(A[i]%j==0) count1++; } if(count1==1) count2++; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248732/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248732/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX 10000 int isprime(int n); int main(void){ int n,i = 0,c = 0,A[MAX]; double x; for(i = 0; i < MAX; i++){ A[i] = 0; } scanf("%d" ,&n); for(i = 0; i < n; i++){ scanf("%d",&A[i]); if(isprime(A[i]) == 1){ c++; } } printf("%d\n" ,c); return 0; } int ispr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248776/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248776/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x){ if(x==2) return 1; if(x<2 || x%2==0) return 0; for(int i=3 ; i<=sqrt(x) ; i+=2){ if(x%i==0) return 0; } return 1; } int main(void){ int n, x, c=0; scanf("%d", &n); for(int i=0 ; i<n ; i++){ scanf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248826/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248826/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* * 素数判定プログラム * n個の整数が与えられる(a,b,c)。それらのうち素数のものをカウントし、 * カウントした結果mを一行で出力する。 * * input * n * a * b * c * * output * m */ #include <stdbool.h> #include <math.h> #include <stdio.h> /*int mysqrt(int x) { int i = 0; while (true) { i++; if ((double)pow(i, 2) >= pow(sqrt(x), 2)) break; } return i; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_248877/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_248877/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...