Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> #include <stdbool.h> bool is_lunlun(unsigned long int x) { bool ans = true; if (x / 10 > 0) { unsigned long int temp = x % 10; x = x /10; while (x > 0) { if (x % 10 != temp && x % 10 + 1 != temp && temp + 1 != x % 10) { ans = false; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229446/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229446/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 998244353LL long long f[200001]; long long power(long long x, long long n){ long long res; if(n==0){ return 1; } if(n==1){ return x%MOD; } res=power(x, n/2); res%=MOD; res*=res; res%=MOD; if(n & 1LL){ res*=x; res%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @f = dso_local local_unnamed_...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> typedef long long ll; typedef long double ld; #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 rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #defin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229532/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229532/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) void run(void){ const int n=100000; int *a=(int *)malloc(sizeof(int)*(n+1)); int i,j; for(i=0;i<=n;i++) a[i]=1; a[0]=a[1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229576/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229576/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 struct directedGraph{ int *vertex; int *next; int *start; int v,e; int pointer; } graph; graph* newGraph(const int v,const int e){ graph *g=(graph *)malloc(sizeof(graph)); g->vertex=(int *)calloc(e,sizeof(int)); g->next=(int *)calloc(e,sizeof(int)); g->st...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229619/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229619/source.c" target datalayout = "e-m:e-p270: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.directedGraph = typ...
#include <stdio.h> int main(void){ int n, m, max; int a[1001]; while(1){ scanf("%d %d", &n, &m); if(n == 0 && m == 0) break; for(int i=0; i<n; i++){ scanf("%d", &a[i]); } max = -1; for(int i=0; i<n-1; i++){ for(int j=i+1; j<n; j++){ if(max < a[i]+a[j] && a[i]+a[j] <= m){ max = a[i]+a[j]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229662/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229662/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int m, n; int total_payment; int money; int payment; while (1) { total_payment = 0; scanf("%d %d", &n, &m); if (m == 0 && n == 0) break; payment = m / n; for (i = 0; i < n; i++) { scanf("%d", &money); if (money >= payment) { total_p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229705/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229705/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main() { int i, x, n; scanf("%d", &n); for ( i = 1; i <= n; i++){ x = i; if (x % 3 ==0){ printf(" %d", i); } else { do { if (x % 10 == 3){ printf(" %d", i); break; } else { x = x / 10; } } while (x); } } printf("\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229749/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229749/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> void call(int n) { int i,d,flag; //scanf("%d",&n); for(i=1;i<=n;i++){ if(i%3==0){ printf(" %d",i); }else { d=1; flag=0; while(flag==0) { if((i%(10*d)-i%d)/d==3) { printf(" %d",i); flag=1; }else{ d=d*10; flag=(i/d==0)?1:0; } } } } } int main() { int n; scanf("%d",&n); ca...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229792/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229792/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N,i,x; int main() { scanf("%d",&N); for(i=1;i<=N;i++) { x=i; if(x%3==0)printf(" %d",i); else { for(;x&&x%10!=3;) x/=10; if(x%10==3) printf(" %d",i); } } puts(""); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229835/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229835/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=1, n,x; scanf("%d", &n); while (1){ x = i; if (x % 3 == 0){ printf(" %d", i); } else{ while (1){ if (x % 10 == 3){ printf(" %d", i); break; } x /= 10; if (!x)break; } } if (++i > n) break; } printf("\n")...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229879/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229879/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int x; int n; scanf("%d", &n); i = 1; do { if(i % 3 == 0) { printf(" %d", i); continue; } x = i; do { if(x % 10 == 3) { printf(" %d", i); break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229921/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229921/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> void call(int n); int include3(int n); int main(void){ int num; scanf("%d",&num); call(num); return 0; } void call(int n){ int i; for(i=1;i<=n;i++){ if(i%3==0||include3(i)){ printf(" %d",i); } } printf("\n"); } int include3(int n){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229965/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229965/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j,tmp; scanf("%d",&n); for(i=0;i<n;i++){ tmp=i+1; for(j=0;j<4;j++){ if((i+1)%3==0){ printf(" %d",i+1); break; }else if(tmp%10==3){ printf(" %d",i+1); break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230006/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230006/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i; scanf("%d",&a); for(i=1;i<=a;i++){ if(i%3==0)printf(" %d",i); else if(i%10==3 || i/10%10==3 || i/100%10==3 || i/1000%10==3 )printf(" %d",i); } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230057/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230057/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> int main(void) { int num; scanf("%d", &num); int i, tmp; int cnt = 0; for (i = 0; i < num; i++) { cnt++; //3??§?????????????????°???134??????3???????????§????????°????????? tmp = cnt; //??????????????? char threeJudge[1000]; c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230107/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230107/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=1; int n; int x; int z; int f; int k; int o; int p; scanf("%d",&n); for (i=1; i<=n; i++){ x=i; if(x%3==0){printf(" %d",x);} else while(1){ z=i; if(i/10==3||i/100==3||i/1000==3){printf(" %d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230158/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230158/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h> #include <stdlib.h> void call(int n) { int i = 1; int x; do { x = i; if (x % 3 == 0) { printf(" %d", i); } else { do { if (x % 10 == 3) { printf(" %d", i); x = 0; } else x /= 10; } while (x); } } while (++i <= n); putchar('\n'); } in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230200/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230200/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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_5_D // // Created by k16031kk on 2018/05/22. // Copyright © 2018年 AIT. All rights reserved. // #include <stdio.h> void call(int n, int i) { while(n>=3) { if(n%10==3) { printf(" %d", i); break; } else { n/=10; } } } int m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230251/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230251/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> /* void call(int n){ int i=1; int x; CHECK_NUM: x=i; if(x%3==0){ printf(" %d",i); goto END_CHECK_NUM; } INCLUDE3: if(x%10==3){ printf(" %d",i); goto END_CHECK_NUM; } x/=10; if(x!=0) goto INCLUDE3; END_CHECK_NUM: if(++i<=n) goto CHECK_NUM; printf("\n"); } */ int main(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230295/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230295/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,x; scanf("%d",&n); for(int i=1;i<=n;i++){ x = i; if(x % 3 ==0){ printf(" %d",i); }else { while(x){ if(x%10==3){ printf(" %d",i); break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230345/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230345/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> //prototype int main(void); //main int main(void){ long n, i; char str_n[10000]; scanf("%ld", &n); for (i = 3; i <= n; i++) { sprintf(str_n, "%d", i); //convert to string if(i % 3 == 0 || strstr(str_n, "3") != NULL){ printf(" %ld", i); } } p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230396/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230396/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<math.h> #include<time.h> #include<string.h> #include<stdlib.h> #include<stdio.h> int main() { int n,i; scanf("%d",&n); for(i=1;i<=n;i++) if(i%10==3 || i%100/10==3 || i%1000/100==3 || i/1000==3 || i%3==0) printf(" %d",i); printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230439/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230439/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { int n,m,a,i[100005],sum[100005],res = 0; scanf("%d%d",&n,&m); i[n+1] = m; i[0] = 0; for(a = 1;a <= n;a ++) { scanf("%d",&i[a]); } res = 0; for(a = 0;a <= n+1;a ++) if(a % 2 == 0) { res -= i[a]; sum[a] = res; } else { res += i[a]; sum[a]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23054/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23054/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(b%a==0) printf("%d\n",b+a); else printf("%d\n",b-a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230590/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230590/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(b%a == 0){ printf("%d",a+b); }else{ printf("%d",b-a); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230633/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230633/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(b%a==0){ printf("%d",a+b); }else{ printf("%d",b-a); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230677/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230677/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n; char **a,**b; int c=0; scanf("%d",&n); a=(char**)malloc(n*(sizeof(char*))); for (int j = 0; j < n; j++) { a[j] = (char*) malloc(sizeof(char) * 5); } b=(char**)malloc(n*(sizeof(char*))); for (int j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23072/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23072/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 func(int a, int b) { if ( b % a == 0 ) { return a+b; } else { return b-a; } } int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", func(a, b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230763/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230763/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(B%A==0) printf("%d",A+B); else printf("%d",B-A); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230813/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230813/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(B%A==0){ printf("%d\n",A+B); }else{ printf("%d\n",B-A); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230864/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230864/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int c; scanf("%d %d",&a,&b); if(b%a == 0){ c = a + b; } else{ c = b - a; } printf("%d",c); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230907/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, sum=0; scanf("%d %d", &A, &B); if(B%A == 0) { sum = A + B; } else { sum = B - A; } printf("%d", sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230950/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230950/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(B%A==0){ printf("%d\n",A+B); } else printf("%d\n",B-A); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230994/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(b%a==0) printf("%d",a+b); else printf("%d",b-a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231036/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231036/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int acs(const void *a, const void *b) { return *(int*)a - *(int*)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int*)b - *(int*)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char*)a -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231094/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231094/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#if 0 cat <<EOF >mistaken-paste #endif // thanks for @rsk0315_h4x #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #def...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231166/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231166/source.c" target datalayout = "e-m:e-p270: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.hwll = type { i64, ...
#include<stdio.h> #define N 200000 double count=0; void margesort(int,int); void marge(int,int,int); int S[N],Left[N/2+1],Right[N/2+1]; int main(){ int n,i; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&S[i]); margesort(0,n); printf("%0.f\n",count); return 0; } void margesort(int left,int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231209/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231209/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @count = dso_local local_un...
#include <stdio.h> #include <stdlib.h> #include <memory.h> int get_uint() { int n = 0; int c = getchar_unlocked(); if(c < 48 || 57 < c) return c; while(47 < c && c < 58) { n = 10 * n + (c & 0xf); c = getchar_unlocked(); } return n; } void put_ull(long long n) { if(!n) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231252/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231252/source.c" target datalayout = "e-m:e-p270: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> long cnt=0; void merge(int s[],int n,int left,int mid,int right){ int i,j,k; long L[n]; long R[n]; int n1 = mid - left; int n2 = right - mid; for(i = 0;i<n1;i++){ L[i] = s[left + i]; } for(i = 0;i<n2;i++){ R[i] = s[mid+i]; } L[n1]=2000000000; R[n2]=2000000000; i = 0; j = 0; for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231296/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231296/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @cnt = dso_local local_unna...
#include<stdio.h> #define INFTY 2000000000 #define MAX 200000 long long merge(int S[], int left, int mid, int right){ int n1 , n2; int i , j , k; long long c = 0; n1 = mid - left; n2 = right - mid; int L[MAX/2+2] , R[MAX/2+2]; for( i = 0; i < n1; i++ ){ L[i] = S[left + i]; } for( i = 0; i < n2; i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231339/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231339/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
# include <stdio.h> void swap(int *array, int a, int b) { int temp = array[a]; array[a] = array[b]; array[b] = temp; } int partition(int *array, int left, int right, int pivot) { int pivValue = array[pivot]; swap(array, pivot, right); //put pivot value on the end int storePos = left; int i=0; for(i=left; i < righ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23139/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23139/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> #include <stdlib.h> #include <math.h> long get_long(char *line, int size) { if(!fgets(line, size, stdin)) return 0; long num; sscanf(line, "%ld", &num); return num; } #define BUF_SIZE 15 long get_digit(long num) { long ans = 0; while(num) { ans++; num /= 10; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231432/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231432/source.c" target datalayout = "e-m:e-p270: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() { long n, a, b, i, result; scanf("%ld", &n); result = n; for(a = 1; a*a <= n; a++) { if(n%a == 0) { b = n/a; i = 0; while(b > 0) { b /= 10; i++; } if(i < n) { result = i; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231490/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231490/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> void f(int *a,int *b){ int i,j; scanf("%d:%d-%d:%d",&i,a,&j,b); *a+=60*i; *b+=60*j;//printf("%d %d\n",*a,*b); } int main(){ int n,m,i,k,s,t,d[110][2],h[110]={}; int a[110]={}; int b[110]={}; scanf("%d",&n); for(i=0;i<n;i++)f(&d[i][0],&d[i][1]); scanf("%d",&m); while(m--){ sca...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231555/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231555/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4] = {0}; int b[4] = {0}; int i,j,k; int counthit = 0; int countblow = 0; i = 0; while(scanf("%d",&a[i]) != EOF){ for(j = 1;j < 4;j++){ scanf("%d",&a[j]); } for(j = 0;j < 4;j++){ scanf("%d",&b[j]); } for(j = 0;j < 4;j++){ if(a[j] == b[j]){ counthit++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231605/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231605/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4],b[4],hit,blow,i,k; while(0<=scanf("%d %d %d %d",&a[0],&a[1],&a[2],&a[3]) & 0<=scanf("%d %d %d %d",&b[0],&b[1],&b[2],&b[3])){ hit=0; blow=0; for(i=0;i<=3;i++){ if(a[i]==b[i]){ ++hit; } for(k=0;k<=3;k++){ if(a[i]==b[k]){ ++blow; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231649/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231649/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { int i,n,val; scanf("%d",&n); char str[n]; scanf("%s",&str); int len=strlen(str),count[3]={0}; for(i=0;i<len;i++) { count[str[i]-48]++; } int equal; equal=n/3; int count0,count1,count2; count0=count[0]-equal; count1=count[1]-equal; count2=count[2]-equal; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2317/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2317/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(){ int a1,a2,a3,a4; int b1,b2,b3,b4; int i; int hit,blow; while(scanf("%d %d %d %d ",&a1,&a2,&a3,&a4)!=EOF){ scanf("%d %d %d %d ",&b1,&b2,&b3,&b4); hit=0;blow=0; if(a1==b1)hit++; if(a2==b2)hit++; if(a3==b3)hit++; if(a4==b4)hit++; if(a1==b2)blow++; if(a1==b3)blow++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231757/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231757/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int a, int b){ if(a>b) return gcd(b,a); if(!a) return b; return gcd(b%a,a); } int main(){ int x,y,a,b,lcm; scanf("%d %d %d %d",&x,&y,&a,&b); lcm = x*y/gcd(x,y); int ans = b/lcm - a/lcm; if(a%lcm==0) ans++; printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23180/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23180/source.c" target datalayout = "e-m:e-p270:32:32-p271: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){ long long L,R,i,j; int min=2020; scanf("%lld %lld",&L,&R); if(R-L>=2019){ printf("0\n"); return 0; } for(i=L;i<=R;i++){ for(j=i+1;j<=R;j++){ if(min>(i*j)%2019) min=(i*j)%2019; } } printf("%d\n",min); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231843/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231843/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main(){ int l, r; scanf("%d%d", &l, &r); int ser=2019; int agr, boon, cannon; if(r-l>2019) printf("0"); else{ for(int i=l; i<=r-1; i++){ for(int j=i+1; j<=r; j++){ agr = i%2019; boon = j%2019; cannon = (agr*boon)%2019; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231900/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231900/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, cal, min = 2018; int L, R; scanf("%d %d", &L, &R); if(R-L>=2019) { min=0; } else { for(i = L; i < R; i++){ for(j = i+1; j <= R; j++){ cal = (i%2019)*(j%2019)% 2019; if(cal < min){ min = cal; } } } }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231944/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231944/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ long long int L,R; scanf("%lld %lld",&L,&R); if(R-L>3000){ printf("0\n"); }else{ //L=L%2019; //R=R%2019; long long int min=2018; for(long long int i=L;i<R;i++){ for(long long int j=L+1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231988/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231988/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd_recurse(int a, int b) { int temp; temp = a % b; if (temp == 0) { return(b); } else { return(gcd_recurse(b, temp)); } } int main() { long long int x,y,a,b; long long int ans=0; long long int min,i,l; int flag=0,flag1=0; scanf("%lld%lld%lld%lld",&x,&y,&a,&b); min=(x*y)/gcd_re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23203/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23203/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#pragma warning(disable:4996) #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <float.h> #pragma region 定義 #define i_cin(X) scanf("%d", &X) #define i_cin2(X,Y) scanf("%d %d",&X,&Y) #define i_cin4(X,Y,Z,W) scanf("%d %d %d %d",&X,&Y,&Z,&W) #define i_cin3(X,Y,Z) scanf("%d %d %d",&X,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232073/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232073/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r) for(int i=0;i<r;i++) int main() { int N; scanf("%d", &N); char S[N]; scanf("%s", &S); int rgb[3] = {0}; rep(i,N) rgb[S[i] == 'R' ? 0 : (S[i] == 'G' ? 1 : 2)]++; long count = (long)rgb[0] * rgb[1] * rgb[2]; for (int i = 0; i < N - 2; i++) { for (int j = 1; i + j * 2 < N;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232116/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232116/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 readB(char S[4001], int i, int j, int N) { int k; k = j + (j - i); if(0 <= k && k < N) { if(S[k] == 'B') return (1); } return (0); } int readR(char S[4001], int i, int j, int N) { int k; k = j + (j - i); if(0 <= k && k < N) { if(S[k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232167/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232167/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n,i,a; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&a); if(360%(180-a)==0)printf("YES\n"); else printf("NO\n"); } // scanf("%d",&n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23221/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> struct t{ int p,s; //??£?§£??° int lank; }; int main(void){ struct t team[100]; int lank[100]; int ti=1,li=1,j,k; scanf("%d,%d",&team[0].p,&team[0].s); team[0].lank=1; lank[0]=team[0].s; //printf("%d %d %d\n",team[0].p,team[0].s,team[0].lank); while(scanf("%d,%d",&team[ti].p,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232260/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232260/source.c" target datalayout = "e-m:e-p270: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.t = type { i32, i32...
// AOJ 0633: Plush Toys // 2017.12.5 bal4u@uu #include <stdio.h> #include <string.h> int p[100002]; int f[22][100002], c[22]; int dp[1050000]; char buf[15], *bp; int getInt() { int n = 0; while (*bp >= '0') n = (n<<3) + (n<<1) + (*bp++ & 0xf); return n; } int main() { int n, m, i, j, k, v, x, lim; fgets(bp=bu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232318/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232318/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @bp = dso_local local_unnam...
#include <stdio.h> int K, T, a[112]; int max; int main() { scanf("%d%d", &K, &T); for (int i = 0; i < T; ++i) { scanf("%d", &a[i]); } if (T == 1) { printf("%d\n", a[0] - 1); } else { for (int i = 0; i < T; ++i) { if (i == 0) { max = a[i]; } else if (max < a[i]) { max = a[i]; } } if (max - (K - max) -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232361/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232361/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef unsigned long long ll; int num[100000]={0}; char ch[100000]; int main(){ int N,sum=0,Q,K,i,l,r; scanf("%d%d",&N,&Q); scanf("%s",ch); num[0] =0; for(i=1;i<N;i++){ if(*(ch+i)=='C'&&*(ch+i-1)=='A'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232404/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232404/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @num = dso_local local_unna...
#include <stdio.h> int main(void) { int N, Q, i; scanf("%d%d", &N, &Q); char str[N + 1]; int sum[N], l[Q], r[Q]; scanf("%s", str); sum[0] = 0, sum[1] = 0; for (i = 1; i < N; i++) { sum[i + 1] = sum[i]; if(str[i - 1] == 'A' && str[i] == 'C'){ sum[i + 1]++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232448/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232448/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,q; scanf("%d %d\n",&n,&q); char s[n]; int l[2][q]; scanf("%s",s); int i=0; int h[n]; h[0]=0; for(i=0;i<q;i++){ scanf("%d %d\n",&l[0][i],&l[1][i]); } for(i=0;i<n-1;i++){ if(s[i]=='A'&&s[i+1]=='C') h[i+1] = 1+h[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232491/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232491/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, Q; char S[1000000] = {0}; int C[1000000] = {0}; scanf("%d %d\n", &N, &Q); scanf("%s\n", S); for (int i = 0; i < N - 1; i++) { int x = (S[i] == 'A' && S[i+1] == 'C'); C[i + 1] = C[i] + x; } // for (int i = 0; i < N - 1; i++) { // printf("%d,", C[i+1]); // } // pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232534/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232534/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[400][400]; int N, i, j, k, x, y, left, right, front, back; int n[201], d[201]; while (1) { scanf("%d", &N); if (N == 0) return 0; for (i = 1; i < N; i++) scanf("%d%d", &n[i], &d[i]); for (i = 0; i < 400; i++) for (j = 0; j < 400; j++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232578/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232578/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/** Queen Chess */ /* include */ #include <stdio.h> #include <stdlib.h> /* define */ #define MAX 8 #define BLACK 1 //queen exist #define WHITE 0 //queen non-exist #define TRUE 1 #define FALSE -1 /* prototype */ int search(int); void printing(); /* global */ //X????????????Y????¨???????JUDGE????????????ULLR(Upper ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232635/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232635/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @top = dso_local local_unna...
#include<stdio.h> #define N 8 #define FREE -1 #define NFREE 1 #define EXIST -10 void initialize(void); void printQ(void); void putqueen(int); int row[N],col[N],dpos[2*N-1],dneg[2*N-1],X[N][N]; int main(){ int i,k,r,c; initialize(); scanf("%d",&k); for(i = 0;i < k;i++){ scanf("%d%d",&r,&c); X[r][c]=EX...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232679/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232679/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define N 8 #define TRUE 3 #define FALSE 2 #define FREE -1 #define NOT_FREE 1 int X[N][N]; int row[N],col[N],dpos[2*N-1],dneg[2*N-1]; void syokika(){ int i; for(i=0;i<N;i++){ row[i]=FREE; col[i]=FREE; } for(i=0;i<2*N-1;i++){ dpos[i]=FREE; dneg[i]=FREE; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232729/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232729/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @row = dso_local local_unna...
#include<stdio.h> #include<stdlib.h> int a[100010][2]; int b[100010]; int n,v; int cmp(const void *aa,const void *bb) { int *a=(int *)aa,*b=(int *)bb; if (a[0]<b[0]) return -1; else if (a[0]>b[0]) return 1; else if (a[1]>b[1]) return -1; else if (a[1]<b[1]) return 1; return 0; } int cal(int a[][2],int n) { int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23278/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23278/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @b = dso_local local_unnamed_...
#include <stdio.h> #define N 8 #define UFOKERU -5 #define NOT_UFOKERU 5 #define true 1 #define false 0 int row[N], col[N], dpos[2 * N - 1], dneg[2 * N - 1]; int X[N][N]; void init() { int i; for (i = 0; i < N; i++) { row[i] = UFOKERU, col[i] = UFOKERU; } for (i = 0; i < 2 * N - 1; i++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232822/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232822/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @row = dso_local local_unna...
#include<stdio.h> #define N 8 #define notfree 1 #define free 0 int queen[N],col[N],dpos[N*2-1],dneg[N*2-1],h[N]; void setQueen(int i){ int j; if(i == N) { for(i=0;i<N;i++){ for(j=0;j<N;j++){ if(j == queen[i])printf("Q"); else printf("."); } printf("\n"); } return; } if(h[i] ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232866/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232866/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @queen = dso_local local_un...
#include<stdio.h> #define N 8 #define T 1 #define F 0 #define FREE -1 #define NOT_FREE -2 int row[N],col[N],dpos[2*N-1],dneg[2*N-1]; int X[N][N]; void initialize() { int i; for(i=0;i<N;i++) { row[i] = FREE; col[i] = FREE; } for(i=0;i<2*N-1;i++) { dpos[i] = FREE; dneg[i] = FR...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @row = dso_local local_unna...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /* * File: main.c * Author: kundaikwangwari * * Created on August 1, 2019, 8:38 AM */ #include <stdio.h> #include <stdlib.h> ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_232952/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_232952/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @Board = dso_local local_un...
#include <stdio.h> #define N 8 #define FREE -1 #define NOT_FREE -2 #define TRUE -3 #define FALSE -4 int row[N], col[N], dpos[2*N-1], dneg[2*N-1], x[N][N]; //row: x = i //col: x = j //dpos: x = i + j //dneg: x = i - j + (N - 1) void putQueen(int); void printBoard(void); int main() { int k, i, j, r, c; for ( i=0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233016/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233016/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dneg = dso_local local_unn...
#include<stdio.h> #include<stdbool.h> #define N 8 #define FREE -1 #define NOT_FREE 1 int row[N],col[N],dpos[2*N-1],dneg[2*N-1]; bool X[N][N]; void initialize(){ int i; for(i=0;i<N;i++){row[i]=FREE,col[i]=FREE;} for(i=0;i<2*N-1;i++){dpos[i]=FREE;dneg[i]=FREE;} } void printBoard(){ int i,j; for(i=0;i<N;i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233074/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233074/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @row = dso_local local_unna...
#include<stdio.h> #define N 8 int queen[N][N],row[N],col[N],dpos[2*N-1],dneg[2*N-1]; void print(); void move(int ); int main(){ int n,r,c; int i,j; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d%d",&r,&c); queen[r][c] = 1; } move(0); return 0; } void move(int i){ int j,p,q; if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233131/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233131/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #define N 8 #define FREE -1 #define NOT_FREE 1 int row[N],col[N],dpos[2*N-1],dneg[2*N-1],T[N][N]; void tofree(){ int i,j; for(i=0;i<N;i++)row[i]=col[i]=FREE; for(i=0;i<2*N-1;i++)dpos[i]=dneg[i]=FREE; } void printBoard(){ int i,j; for(i=0;i<N;i++){ for(j=0;j<N;j++){ if(T[i][j]==1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233175/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233175/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @col = dso_local local_unna...
#include<stdio.h> int whriswrng(int *p,int m){ int a=p[0]+p[1]; int b=p[1]+p[2]; int c=p[2]+p[3]; if(p[0]!=p[1]){ if(a!=p[2]){ if(b!=p[0]){ return 0; } else{ if(b!=c){ return 2; } else{ return 0; } } } else{ return 1; } } else{ if(a==p[2]){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233225/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233225/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,R,L1,L2; scanf("%d %d %d %d",&A,&B,&C,&D); L1=A; if(B<A) {L1=B;} L2=C; if(D<C) {L2=D;} R=L1+L2; printf("%d\n",R); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233269/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233269/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int a,b,c,d,i,j; while(~scanf("%d %d %d %d",&a,&b,&c,&d)) { if(a>b) { i=b; } if(a<=b) { i=a; } if(c>d) { j=d; } if(c<=d) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233326/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233326/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> void print(int *a,int n) { int i; for(i=0;i<n;i++) printf("%d ",a[i]); printf("\n"); } int main() { int max,a[505][505],i,j,cnt,n,m,q,x,y; scanf("%d %d %d",&n,&m,&q); for(i=1;i<=n;i++) { cnt=0; max=0; for(j=1;j<=m;j++) { scanf("%d",&a[i][j]); if(a[i][j]==1) cnt++; els...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23337/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 chck(char *s,int l){ int i; for(i=0;i<l/2;i++){ if(*(s+i)!=*(s+l-i-1)) return 0; } return 1; } int main(void){ char s[1000]; int k,i,l,c=0; scanf("%s",s); scanf("%d",&k); l=strlen(s); if(!(l%k)){ for(i=0;i<l;i+=l/k){ c+=chck(&s[i],l/k); } if(c==k)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23342/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23342/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int a, b, c, d; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); if (a >= b) { a = b; } if (c >= d) { c = d; } printf("%d\n", a + c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233470/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233470/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(int a,int b){ if(a<b){ return a; }else return b; } int main(void){ int busfare[2],trainfare[2],ans; scanf("%d",&busfare[0]); scanf("%d",&busfare[1]); scanf("%d",&trainfare[0]); scanf("%d",&trainfare[1]); ans=min(busfare[0],busfare[1])+min(trainfare[0],trainfare[1]); printf("%d\n",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233513/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233513/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, c, d, e, f; scanf("%d %d %d %d",&a, &b, &c, &d); if (a >= b){ e = b; } else { e = a; } if (c >= d){ f = d; } else { f = c; } printf("%d\n", e + f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233557/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233557/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[501][501]; int d[501]={0}; int maxe(int a,int b) { if(a>=b) return a; else return b; } int find_max(int n) { int i,max; max=d[0]; for(i=1;i<n;i++) { if(d[i]>max) max=d[i]; } return max; } int main() { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23360/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23360/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @d = dso_local local_unnamed_...
#include <stdio.h> int main() { int a[100]; int n,k,i,j; for(;;){ scanf("%d%d",&n,&k); if(n==0 && k==0) break; for(i=0;i<k;i++){ scanf("%d",&a[i]); } while(n--){ for(i=0;i<k;i++){ scanf("%d",&j); a[i] -= j; } } for(i=0;i<k;i++){ if(a[i] < 0) break; } i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233650/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233650/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { int N, M, cmp, i, j, key = 0; char U[ 260 ][ 15 ], T[ 260 ][ 15 ]; scanf( "%d", &N ); for( i = 0; i < N; i++ ){ scanf( "%s", &U[ i ] ); } scanf( "%d", &M ); for( i = 0; i < M; i++ ){ scanf( "%s", &T[ i ] ); for( j = 0; j < N; j++ ){ c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233700/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233700/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[6]; scanf("%s",str); str[4] = '\0'; if(str[0] == str[1] || str[1] == str[2]|| str[2] ==str[3]) { printf("Bad\n"); } else printf("Good\n"); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233744/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233744/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main(){ char key[5]; fgets(key,5,stdin); int i,j; char f = 1; for(i = 0; i <= 3;i++){ if(key[i] == key[i+1]){ f = 0; } } if(f){ printf("Good\n"); }else{ printf("Bad\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233788/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233788/source.c" target datalayout = "e-m:e-p270: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() { int i,c=0; char s[5]; scanf("%s",s); for(i=0;i<3;i++) if(s[i]==s[i+1]) c++; if(c) printf("Bad\n"); else printf("Good\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233838/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233838/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char chr[4] = {0}; int success = 1; scanf("%s", chr); for (int i=0; i<3; i++) { if (chr[i] == chr[i+1]) { success = 0; } } if (success == 0) { printf("%s", "Bad"); } else { printf("%s", "Good"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233924/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233924/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex4-4 takayanagi.y.aa Yuta Takayanagi */ #include<stdio.h> int main(void){ int number, bit1, bit2, i; scanf( "%d" , &number); bit1 = number % 10; number = (number - bit1) / 10; for(i=0; i < 3; i++){ bit2 = number % 10; number = (number - bit2) / 10; if(bit1==b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_233975/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_233975/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ char a[5]; scanf(" %s", a); if(a[0] == a[1] || a[1] == a[2] || a[2] == a[3]){ puts("Bad"); } else { puts("Good"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_234017/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_234017/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 S; scanf("%d",&S); if(S%10==(S%100-S%10)/10) printf("Bad"); else if((S%100-S%10)/10==(S%1000-S%100)/100) printf("Bad"); else if((S%1000-S%100)/100==(S-S%1000)/1000) printf("Bad"); else printf("Good"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_234060/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_234060/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int compare_int(const void *a, const void *b) { // return *(int*)a - *(int*)b; return *(long long*)a - *(long long*)b; } // qsort(A, b, sizeof(int), compare_int); long long factorial(long long n) { if (n > 0) { return n *...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_234110/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_234110/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ char s[5]; scanf("%s",s); if(s[0]==s[1]){ puts("Bad"); }else if(s[1]==s[2]){ puts("Bad"); }else if(s[2]==s[3]){ puts("Bad"); }else puts("Good"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_234161/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_234161/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* submission # - User: herp_sy https://atcoder.jp/contests/ */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <stdbool.h> #define _CRT_SECURE_NO_WARNINGS #define TLong long long #define TBMod 1000000007 int main(int argc, char const *argv[]) { TLong x; TLong t = 1; scanf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_234211/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_234211/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...