Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #define DEBUG 0 int* array; int N; int L; int min_counter; void Print_Array(void); void sliding_Window(void); int Min_in_L(int start); int main(){ scanf("%d %d",&N,&L); if(DEBUG)printf("N = %6d\nL = %6d\n",N,L); array = mal...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_346882/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_346882/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a, b, c, d, e, last; scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); scanf("%d", &D); scanf("%d", &E); a = A%10; last = a == 0? 0 : 10-a; b = B%10; if(10-b > last && b != 0){ last = 10-b; } c = C%10; if(10...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_346932/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_346932/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int i,a,r=0,s=0,n; for(i=0;i<5;i++){ scanf("%d",&a); n=10-a%10; if(n==10)n-=10; s+=a+n; if(r<n&&n!=0)r=n; } printf("%d",s-r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_346976/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_346976/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[6]; int i; int cnt=0; int ans=0; int N=0; for(i=0;i<5;i++){ scanf("%d",&a[i]); } for(i=0;i<5;i++){ cnt = cnt + (a[i]%10); } if(cnt==0){ for(i=0;i<5;i++){ ans=ans+a[i]; } } else{ a[5]=a[0]; for(i=1;i<5;i++){ if((a[5...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347018/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347018/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 time[6], i, sum,rest[6],tmp; tmp = 10; sum = 0; for (i = 1;i < 6;i++) { scanf("%d", &time[i]); rest[i] = time[i] % 10; if (rest[i] != 0) { time[i] += 10; if (tmp > rest[i]) tmp = rest[i]; }; sum += time[i]-rest[i]; } sum += tmp-10; printf("%d\n", sum); r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347061/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347061/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Time[5],i,max=10,max_i,total=0; for (i = 0; i < 5; i++) { scanf("%d", &Time[i]); } for (i = 0; i < 5; i++) { if (max > Time[i] % 10 && Time[i] % 10 != 0) { max = Time[i] % 10; max_i = i; } } for (i = 0; i < 5; i++) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347104/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347104/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <sysexits.h> #include<stdlib.h> #include<math.h> int main(void){ int j,tmp,sum,x[5],i,mod[5],s[5],k; for(i=0;i<5;i++){ if(scanf("%d",&x[i])>1){ exit(0); } } sum=0; for(i=0;i<5;i++){ mod[i]=x[i]%10; s[i]=x[i]/10; } for(i=0;i<5;i++){ if(mod[i]==0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347148/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347148/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<stdlib.h> int intsort(const void *a, const void *b){ return *(int*)a - *(int*)b; /*qsort(a,aの配列数,sizeof(int),intsort);*/ } int main(){ int i,a[5],p[5],q[5]; for(i=0;i<5;i++){ scanf("%d",&a[i]); p[i]=a[i]%10; if(p[i]==0){ q[i]=a[i]; }else{ q[i]=a[i]-p[i]+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347191/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347191/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 P(type,x) fprintf(stdout,"%"#type"\n",x) #define S(type,x) fscanf(stdin,"%"#type,&x) int main() { int n, q,d; char name[100]="kogakubu10gokan",s[100]; S(d, n), S(d, q); while (n--) { scanf("%d %s", &d, s); if (d <= q) strcpy(name, s); } P(s,name); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347234/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347234/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.name = privat...
#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int m,n; scanf("%d %d",&n,&m); if(m==n) printf("Yes\n"); else printf("No\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347278/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347278/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d",&n,&m); if(n==m) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347342/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347342/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d",&N,&M); if(N==M){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347386/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347386/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int i_testCaseNum; int i_completeCaseNum; scanf("%d%d", &i_testCaseNum, &i_completeCaseNum); if (i_testCaseNum == i_completeCaseNum) { printf("Yes"); } else { printf("No"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347429/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347429/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, M; scanf("%d%d",&N, &M); if(N==M) { printf("Yes"); } else { printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347472/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347472/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,M; scanf("%d %d",&N,&M); if(N == M){ printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347522/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347522/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int M,N; scanf("%d%d",&M,&N); if(M==N){ printf("Yes"); } else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347566/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347566/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d",&n,&m); if(n==m) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347609/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347609/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,M; scanf("%d",&N); scanf("%d",&M); if(N<=100 && N>0 && M>=0 && M<=N) { if(M==N) printf("Yes"); else printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347652/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347652/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int m, n; int a = scanf("%d %d", &m, &n); printf("%s\n", m == n ? "Yes" : "No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347702/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &n, &m); if(n == m){ printf("Yes"); }else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347746/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347746/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void ** createMatrix(unsigned n, unsigned m, unsigned tsize, unsigned psize){ void **p; p = malloc(n * psize); for (int i = 0; i < n; i++){ p[i] = malloc(m * tsize); } return p; } void FreeMatrix(void **p, unsigned n){ for (int i = 0; i < n; i++){ free(p[i]); } free(p)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34779/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34779/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 test, ok; scanf("%d %d",&test, &ok); if (test == ok) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347832/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347832/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> typedef long long ll; int main(){ int a,b; scanf("%d %d",&a,&b); if(a==b)printf("Yes"); else printf("No"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347876/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347876/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> // uint64_t #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) > (b) ? (b) : (a)) int get_int2(int *a1, int *a2) { scanf("%d %d", a1, a2); return 0; } // <arr[0]> <arr[1]> .. <arr[size-1]> int fget_array(int *arr, int size...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347919/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347919/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int i,n,m; int num = 0; int a[100000]; for(i=0;i<100000;i++) a[i] = 0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&m); if(a[m]==0){ a[m] = 1; num++; } } if(num%2==0){ printf("%d\n",num-1); }else{ printf("%d\n",num); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_347962/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_347962/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++) #define rep(i,n)Rep(i,0,n) typedef long long lld; #define Ma(x,y)(x>y?x:y) int main(){ int n,W,v[2<<6],w[2<<16]; scanf("%d%d", &n, &W); rep(i,n)scanf("%d%d",&w[i],&v[i]); lld dp[2<<6][2<<16];//dp[a+1][b]...v[a]w[a]までの品物の中から重さがbを超えぬように選んだ時の価値の総...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> typedef long long int llu; #define MAX(a, b) ((a < b) ? b : a); int main() { int N, W; scanf("%d%d", &N, &W); llu *dp = (llu*)calloc(W+1,sizeof(llu)); int w, v; while (N--) { scanf("%d%d", &w, &v); for (int j = W; j >= w; --j) { d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348048/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348048/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> long long W[101]; long long V[101]; long long dp[101][100001]; long long max(long long a, long long b) { if (a >= b) return a; else return b; } long long q (long long k, long long w) { if (dp[k][w] != -1) return dp[k][w]; if (k == 0) dp[k][w] = 0; else if (w < W[k]) dp[k][w] =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348091/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348091/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dp = dso_local local_unnam...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1) int upll(const vo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348134/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348134/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d\n",(A*B)); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348178/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348178/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { long i; float x; scanf("%ld", &i); scanf("%f", &x); long a =i * x; printf("%ld\n", a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348220/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348220/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,seki; scanf("%d",&a); scanf("%d",&b); seki=a*b; printf("%d\n",seki); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348264/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348264/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,M; scanf("%d %d",&A,&B); M = A*B; printf("%d\n",M); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348307/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348307/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d",A*B); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348358/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348358/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { double A,B,C; int ans; scanf("%lf%lf",&A,&B); C = A*B; ans = (int)C; printf("%d\n", ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348400/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348400/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d", a*b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348444/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348444/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf("%d\n", a*b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348488/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348488/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d",a * b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348538/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348538/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf("%d",A*B); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348589/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348589/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d", a * b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348631/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348631/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf("%d", a*b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf("%d\n",a*b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348718/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348718/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int a, b; scanf("%d %d", &a,&b); printf("%d\n", a * b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348769/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348769/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf("%d",a*b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348811/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 stu[31] = {0}; int i = 28, n; while(i-- > 0){ scanf("%d", &n); stu[n] = 1; } for(i = 1; i < 31; i++){ if(stu[i] == 0){ printf("%d\n", i); } } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348855/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348855/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[30],i,z; for(i=1;i<=30;i++){ a[i]=1; } for(i=1;i<=28;i++){ scanf("%d",&z); a[z]=0; } for(i=1;i<=30;i++){ if( a[i]==1 ){ printf("%d\n",i); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348905/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> int i,j,k; int a[35],n; int main(){ for(i=1;i<=30;i++)a[i]=0; for(i=1;i<=28;i++)scanf("%d",&n),a[n]=1; for(i=1;i<=30;i++)if(a[i]==0)printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_348949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_348949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @i = dso_local local_unname...
#include <stdio.h> int main(void) { char a[3]; int count1=0; scanf("%s",&a); if(a[0]=='a'||a[0]=='h') count1++; if(a[1]=='1'||a[1]=='8') count1++; if(count1==0) printf("8"); if(count1==2) printf("3"); if(count1==1) printf("5"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 cons...
#include <stdio.h> int main(){ long a, b; scanf("%ld%ld", &a, &b); long ans = 0; long two = 1; while((b/a) >= two){ ans++; two = two << 1; } printf("%ld\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349056/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349056/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,q; scanf("%d%d%d",&t,&s,&q); int ans=0; double k=s*1.0; while(k<t){ k*=1.0*q; ans++; } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3491/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3491/source.c" target datalayout = "e-m:e-p270:32:32-p271: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...
/* cat <<EOF >mistaken-paste */ #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #define BIG 2000000007 #define MOD 1000000007 typedef unsigned long long ull; typedef signed long long sll; #define N_MAX...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349142/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349142/source.c" target datalayout = "e-m:e-p270: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.hw = type { i32, i3...
#include <stdio.h> //#include <string.h> int main(void){ int ab, bc; scanf("%d %d", &ab, &bc); printf("%d", ab*bc/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349193/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349193/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a, b, c; scanf("%d %d %d", &a, &b, &c); int *higher = &a; if(b>*higher) higher=&b; if(c>*higher) higher=&c; *higher = 1; printf("%i\n", (a*b*c)/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349243/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349243/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #define MAX(X, Y) (((X) > (Y))? (X) : (Y)) #define MIN(X, Y) (((X) < (Y))? (X) : (Y)) int compare_int(const void *a, const void *b){ return *(long int*)b - *(long int*)a; // 大きい順 } int compare_int_small(const void *a, const void *b){ retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,area; scanf("%d%d%d",&a,&b,&c); area=(0.5)*a*b; printf("%d\n",area); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349337/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 AB,BC,CA; scanf("%d%d%d",&AB,&BC,&CA); printf("%d",AB*BC/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%d\n",a*b/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349423/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf("%d\n",a * b / 2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349474/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ int a, b, c; int i; scanf("%d %d %d", &a, &b, &c); int S; int d; d = (a+b+c)/2; S = sqrt(d*(d-a)*(d-b)*(d-c)); printf("%d\n", S); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349524/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349524/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 100 #define A 10000000 char composite[A + 1]; void init() { int a, b; for (a = 2; a <= A / a; a++) { if (composite[a]) continue; for (b = a * a; b <= A; b += a) composite[b] = 1; } } int *ov[1 + N], oo[1 + N]; void link(int u, int v) { int o = oo[u]++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349568/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349568/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @composite = dso_local loca...
#include<stdio.h> #include<string.h> int main(){ int i,j,n,m; char s[256],la[256]; while(1){ scanf("%s",s); if(s[0]=='-') break; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&m); strncpy(la,s,m); la[m]='\0'; for(j=0;j+m<strlen(s)+2;j++) s[j]=s[j+m]; strcat(s,la); s[strlen(s)]='\0'; m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349698/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349698/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main(){ int N, i, j, k, ans = 0, f; scanf("%d", &N); char **S = (char **)malloc(sizeof(char *) * N); char **T = (char **)malloc(sizeof(char *) * N); for(i = 0; i < N; i++){ S[i] = (char *)malloc(sizeof(char) * (N + 1)); scanf("%s", S[i]); T[i] = (char *)malloc(size...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349755/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349755/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 D,E; double min; int i,j; while(scanf("%d%d",&D,&E),D+E){ min=fabs(sqrt(D*D)-E); for(i=0,j=D;j>=0;i++,j--) if( min > fabs((sqrt(i*i+j*j)-E)) ) min=(sqrt(i*i+j*j)-E); printf("%.10f\n",min); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349805/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349805/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> volatile int N; //int N=0; int KIMOCHI(int a,int b) { //int N; // A if(a<b){ if(a+b<=N){ if(a%3==0){ return 3; } else{ return a%3; } } else{ //int cy=N-b+1; if((N-b+1)%3==0){ return 3; } else{ return (N-b+1)%3; } } } // B else { //int cy; //...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349849/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349849/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @N = dso_local global i32 0...
#include<stdio.h> int a[100005]={0}; int b[100005]={0}; int hash[100005]={0}; int main() { int num,i,k=1; scanf("%d",&num); for(i=1;i<=num;i++) { scanf("%d",&a[i]); if(a[i]<=num&&hash[a[i]]==0) { b[i]=a[i]; hash[a[i]]++; } } for(i=1;i<=num;i++) { if(b[i]!=0) printf("%d ",b[i]); else { while(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3499/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3499/source.c" target datalayout = "e-m:e-p270: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 [100005 x...
/* exC */ #include<stdio.h> #define N 1000000007 int main(void){ int n, num, i, total=0; scanf("%d", &n); long long a[n], b[n]; for(i=0; i<n; i++){ scanf("%d", &num); a[i] = num%N; } for(i=0; i<n; i++){ if(i==0){ b[n-i-1]=a[n-i-1]%N; }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349942/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349942/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define mod 1000000007 int main(void) { int n; scanf("%d", &n); long a[n]; long b[n]; scanf("%ld", &a[0]); b[0] = a[0]; for(int i = 1;i < n;i++) { scanf("%ld", a + i); b[i] = (a[i] + b[i-1]) % mod; } long result = 0; for(int i = 1;i < n;i++) { result += a[i] * b[i-1]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_349986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_349986/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { while (1){ int a[100000]={0},b[100000]={0},c=0,i,j,k,n; scanf("%d%d",&n,&k); if(n==0 && k==0) { break; } for(i=1;i<=n;i++) { scanf("%d",&a[i]); } for(i=1;i<=n-k+1;i++) { for(j=1;j<=k;j++) { b[i]=b[i]+a[i+j-2]; } if(b[i]>c) { c=b[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350034/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350034/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* AtCoder My Practice * author: Leonardone @ NEETSDKASU */ #include <stdio.h> #include <stdlib.h> #define N_MAX (200001) #define MAX(A,B) ((A) > (B) ? (A) : (B)) typedef struct _range { int upper, lower, depth; struct _range *ubound, *lbound; } Range; Range *newRange(int lower, int upper) { Range *...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350113/source.c" target datalayout = "e-m:e-p270: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._range = type { i32...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> void ClearLineFromReadBuffer(void) { while (getchar() != '/n'); } int main() { char aa[3] = { 0 }; char test[5][3] = { 0 }; int i; int sum = 0; scanf("%s ", aa); for (i = 0; i < 5; i++) { scanf("%s", test[i]); ClearLineFromReadBuffer; } for (i = 0; i <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35020/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35020/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void) { int n,i; scanf("%d",&n); if (n%111==0) printf("%d\n",n); else printf("%d",111*(int)(n/111+1)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350272/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350272/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main(void){ int N, a; scanf("%d", &N); a = N/100; if(N<=100*a+10*a+a) printf("%d\n", 100*a+10*a+a); else printf("%d\n", 100*(1+a)+10*(1+a)+a+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350315/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { char n[100]; int no; scanf("%s",n); if(n[0]>n[1]){ no=1; }else if(n[0]==n[1]){ if(n[2]<=n[1]){ no=1; }else{ no=2; } }else{ no=2; } switch(no){ case 1: printf("%c%c%c\n",n[0],n[0],n[0]); break; case 2: printf("%c%c%c\n",n[0]+1,n[0]+1,n[0]+1)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350359/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350359/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 _(int n); int main() { int n; scanf("%d", &n); while (!_(n)) { n++; } printf("%d\n", n); return 0; } int _(int n) { const int table[] = {111, 222, 333, 444, 555, 666, 777, 888, 999}; int i; int f = 0; for (i = 0; i < 9; i++) { if (ta...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350401/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350401/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num; int m = 0, n = 0, q = 0; scanf("%d", &num); m = num / 100; q = num % 100 / 10; n = num % 10; if(m == q && q == n) printf("%d", num); else if(m < q ||(m == q && m < n)) printf("%d%d%d", m + 1, m+1, m+1); else if(m > q || (m == q && m > n)) printf("%d%d%d", m,m,m); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350445/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350445/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int main() { int a,b,n,k,x,y,i,j; scanf("%d",&n); b=n/111; if(n%111!=0){ a=(b+1)*111;}else{ a=(b*111); } printf("%d",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350489/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <math.h> #include <limits.h> int max(int a, int b){return a>b?a:b;} int min(int a, int b){return a<b?a:b;} int gcd(int a, int b){return min(a,b)==0?max(a,b):gcd(min(a,b),max(a,b)%min(a,b));} long long llmax(long long a, long long b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350539/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350539/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @lowcmp = dso_local local_u...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> int main(void){ int num_attendance; int *rate; int kinds_color=0; int class[9]={0}; scanf("%d",&num_attendance); rate=(int *)malloc(sizeof(int)*num_attendance); int i; for(i=0;i<num_attendance;i++){ scanf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350597/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350597/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rem; char s[2],a[2],b[2],c[2],d[2],e[2]; scanf("%s",s); scanf("%s %s %s %s %s",a,b,c,d,e); if(s[0]==a[0]||s[0]==b[0]||s[0]==c[0]||s[0]==d[0]||s[0]==e[0]) printf("YES\n"); else { if(s[1]==a[1]||s[1]==b[1]||s[1]==c[1]||s[1]==d[1]||s[1]==e[1]) printf("YES\n"); else p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_35064/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_35064/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void){ int i,min=0,max=0,n,a,c,col[9]={}; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); c=0; while(1){ if((a-400)>=0&&c!=8){ a=a-400; c++; } else{ col[c]++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350683/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350683/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//set many funcs template //Ver.20190820 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #include<assert.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350740/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350740/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.node = type { i32, ...
#include<stdio.h> long long gcd(long long a,long long b){ while(b ^= a ^= b ^= a%=b); return a; } long long main(){ long long n,x; long long i,j,g; scanf("%lld%lld",&n,&x); g = gcd(n,x); n /= g; x /= g; printf("%lld\n",(n-1)*3*g); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350784/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350784/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d; int c[30]; int last[30] = {}; int s[400][30]; int t[400]; int v[400]; scanf("%d", &d); for (int i = 1; i <= 26; i++) { scanf("%d", &c[i]); } for (int i = 1; i <= d; i++) { for (int j = 1; j <= 26; j++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__) #define dpri(x) dbg(#x ": %d\n", x) #define dprs(x) dbg(#x ": %s\n", x) #include <stdio.h> typedef long long ll; const int MYINF = 1e9+7; static int row[110]; static int sum[110]; int main(int argc, char **argv) { int r, c, i, j; scanf("%d %d", &r, &c); for (i =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_350979/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_350979/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @MYINF = dso_local local_un...
#include<stdio.h> int main(){ int i,j,r,c,h[500][500]={0}; scanf("%d %d",&r,&c); for(i=1;i<=r;i++){ for(j=1;j<=c;j++){ scanf("%d",&h[i][j]); h[i][c+1]=h[i][c+1]+h[i][j]; h[r+1][j]=h[r+1][j]+h[i][j]; h[r+1][c+1]=h[r+1][c+1]+h[i][j]; } } for(i=1;i<=r+1;i++){ for(j=1;j<=c+1;j++){ printf("%d",h[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351020/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351020/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c; int i,j; int A[150][150]; scanf("%d", &r); scanf("%d", &c); for(i=0; i<r; i++){ for(j=0; j<c; j++){ scanf("%d",&A[i][j]); } } for( i=0; i<r; i++){ for( j=0; j<c; j++){ A[i][c] += A[i][j]; } } for( j=0; j<=c; j++){ for( i=0; i<r; i++){ A[r][j] += A[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351064/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351064/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { short r, c; fscanf(stdin, "%hd %hd", &r, &c); short A[r][c]; short i, j; for (i = 0; i < r; i++) { for (j = 0; j < c; j++) { fscanf(stdin, "%hd", &A[i][j]); } } int sum, sum_t = 0; for (i = 0; i < r; i++) { sum = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351107/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351107/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include <stdio.h> int main(void) { int r, c, i, j, su; scanf(" %d %d", &r, &c); int rc[101][101] = {0}; for(i = 0; r > i; i++){ for(j = 0; c > j; j++){ scanf(" %d", &su); rc[i][j] = su; rc[i][100] = rc[i][100] + su; rc[100][j] = rc[100][j] + su; rc[100][100] = rc[100][100] + su; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351150/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351150/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c,i,j; int a[128][128]={0}; scanf("%d %d", &r, &c); for (i = 0; i < r; i++) { for (j = 0; j < c; j++) { scanf("%d", &a[i][j]); a[i][c]+=a[i][j]; } } for (i = 0; i <= c; i++) { for (j = 0; j < r; j++) { a[r][i]+=a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351194/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351194/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c,i,j; scanf("%d %d",&r,&c); int data[r][c]; int ans[r+1][c+1]; for(i = 0;i<r+1;i++){ for(j = 0;j<c+1;j++){ ans[i][j] = 0; } } for(i = 0;i<r;i++){ for(j = 0;j<c;j++){ scanf("%d",&data[i][j]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351237/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351237/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c,i,j; long long int sumt=0,sum1=0,sum2=0; long long int arr[1000][1000]; scanf("%d %d",&r,&c); for(i=0;i<r;i++) { for(j=0;j<c;j++) { scanf("%lld",&arr[i][j]); } } for(i=0;i<r;i++) { for(j=0;j<c;j++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351295/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351295/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int i, j, g, r, **map,x; scanf("%d %d", &g, &r); map = malloc(sizeof(int*)*g + 1); for (i = 0; i < g+1; i++) map[i] = malloc(sizeof(int)*r + 1); for (i = 0; i < g + 1; i++) { for (j = 0; j < r + 1; j++) map[i][j] = 0; } for (i = 0; i < g; i++) { for (j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351338/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351338/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c, cell, row_sum, total, i, j; const char *fmt; scanf("%d %d", &r, &c); int col_sum[c]; for (i = 0; i < c; i++) col_sum[i] = 0; for (total = i = 0; i < r; i++) { for (fmt = "%d", row_sum = j = 0; j < c; j++) { scanf("%d", &cell); printf(fmt, cell); row_sum...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351389/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351389/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int i,j; int r,c; int a[101][101] = {0}; scanf("%d %d", &r,&c); for(i = 0; i < r; i++){ for(j = 0; j < c; j++){ scanf("%d", &a[i][j]); } } for(i = 0; i < r; i++){ for(j = 0; j < c; j++){ a[i][c] += a[i][j]; } } for(j = 0; j < c; j++){ for(i = 0; i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351431/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351431/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int i,j,r,c; static int s[101][101]; scanf("%d %d",&r,&c); for(i=0;i<=r;i++){ for(j=0;j<c;j++){ scanf("%d", &s[i][j]); printf("%d ", s[i][j]); s[i][c] += s[i][j]; s[r][j] += s[i][j]; } printf("%d\n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351475/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351475/source.c" target datalayout = "e-m:e-p270: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.s = internal global [...
#include <stdio.h> int main(void){ int r , c ; int arr[100][100] ; int i , j ; int SUM = 0; scanf("%d %d" , &r , &c); for(i = 0 ; i < r ; i++){ for(j = 0 ; j < c ; j++){ scanf("%d" , &arr[i][j]); } } for(i = 0 ; i < r ; i++){ int sum_c =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351518/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351518/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int i,j; int a[101][101]={{0}}; int x,y; scanf("%d %d",&x,&y); for(j=0;j<x;j++){ for(i=0;i<y;i++){ scanf("%d",&a[j][i]); a[j][y]+=a[j][i]; a[x][i]+=a[j][i]; } a[x][y]+=a[j][y]; } for(j=0;j<=x;j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351561/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351561/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, c, i, j, s[100][100], sum = 0, tho[2][100]; scanf("%d %d", &r, &c); for(i = 0; i < r; ++i) { for(j = 0; j < c; ++j) { scanf("%d", &s[i][j]); tho[0][i] += s[i][j]; tho[1][j] += s[i][j]; sum += s[i][j]; } } for(i = 0; i < r + 1; ++i) { for(j = 0; j < c + 1; ++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351604/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351604/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c,i,j; static int s[101][101]; scanf("%d%d",&r,&c); for(i=0;i<=r;i++){ for(j=0;j<c;j++){ scanf("%d", &s[i][j]); printf("%d ", s[i][j]); s[i][c] += s[i][j]; s[r][j] += s[i][j]; } printf("%d\n",s[i][c]); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351648/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351648/source.c" target datalayout = "e-m:e-p270: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.s = internal global [...
#include <stdio.h> int main() { char s[13]; scanf("%s",&s); int i; i = 0; while (s[i]) { printf("%c",s[i]); if (i == 3) { printf(" "); } i++; } printf("\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_351691/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_351691/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...