Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
/* A0410.c Akabeko 20 2019/11/08 rte */ #include <stdio.h> #include <string.h> #define max(x,y) (((x)>(y))?(x):(y)) int m,n,n2,q[41],p[20]; int from[8000]; char to[8000]; int cntr; //割り切れる順列の数 int primes[]={2,3,5,7,11,13,17,19,23,29,31,37}; char gt_[20][12]; //20個(まで)の引数をゲーデル表記に変換 int gcd(int a, int b) { int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_118904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_118904/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @primes = dso_local local_u...
#include<stdio.h> #include<stdlib.h> int a[20004], b[20004]; int asc1(const void* x, const void* y) { if (a[*(int*)x] > a[*(int*)y])return 1; if (a[*(int*)x] < a[*(int*)y])return -1; if (b[*(int*)x] > b[*(int*)y])return 1; if (b[*(int*)x] < b[*(int*)y])return -1; return 0; } int asc2(const void* x, const void* y) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_118948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_118948/source.c" target datalayout = "e-m:e-p270: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 [2000...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define lli long long int #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(b)) lli solve(int j,int k,int s,int *x,lli ***dp,bool ***bl){ //printf("j = %3d k = %3d s = %3d x = %3d\n",j,k,s,x[j] ); if(bl[j][k][s]){ retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX_M 100 #define MAX_N 1000000 #define min(a,b) (a < b ? a : b) void insertionSort(int*,int,int,int*); void shellSort(int*,int); void print(int*,int*,int,int,int); int main(){ int n,A[MAX_N],i; scanf("%d",&n); for(i = 0 ; i < n ; i++){ scanf("%d",&A[i]); } shellSort(A,n); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119048/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119048/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 InsertionSort(int *, int ,int); int CreateG(int, int, int *); int main() { int i, j; int n; int *A; int m; int G[100]; int count = 0; // input scanf("%d", &n); A = (int *)malloc(n * sizeof(int)); for(i = 0; i < n; i++) { scanf("%d", &A[i]); } // shell sort ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119105/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119105/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void Insertion(int*, int, int); void Shell(int*, int); int cnt=0, m, *G; int main(){ int i, n, *A; scanf("%d",&n); A = (int *)malloc(sizeof(int) * n); for(i=0; i<n; i++) scanf("%d",&A[i]); Shell(A, n); printf("%d\n",m); for(i=0; i<m; i++){ pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119156/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119156/source.c" target datalayout = "e-m:e-p270: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> #include<math.h> #include<string.h> #include<stdlib.h> int main() { int a,b,c,d,e,f,g; scanf("%d",&a); while(~scanf("%d",&b)) { d=0; e=0; int op[b],ob[b]; for(c=0; c<b; c++) scanf("%d",&op[c]); for(c=0; c<b; c++) scanf("%d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1192/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1192/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t; scanf("%d",&t); while(t--) { int n; scanf("%d",&n); if(n%10==9) printf("%d\n",((n/10)+1)); else printf("%d\n",n/10); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11925/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11925/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { #ifndef ONLINE_JUDGE freopen("input.txt","r",stdin); freopen("output.txt","w",stdout); //freopen("error.txt","w",stderr); #endif long int t,n; scanf ("%ld\n",&t); for (int i=1;i<=t;i++) { scanf ("%ld\n",&n); if (n%10==9) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11930/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11930/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> void insertionSort(int A[], int n, int g); void shellSort(int A[], int n); int cnt; int main(void){ int n; scanf("%d", &n); int A[n], i; for(i=0; i<n; i++){ scanf(" %d", &A[i]); } shellSort(A, n); printf("%d\n", cnt); for(i=0; i<n; i++) printf("%d\n", A[i]); return 0; } void ins...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119343/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119343/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 insertionSort(int *, int, int); void shellSort(int *, int); int main() { int n; scanf("%d", &n); int *A = (int *)malloc(n * sizeof(int)); for (int i = 0; i < n; i++) scanf("%d", &A[i]); shellSort(A, n); return 0; } int insertionSort(int *a, int max,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119387/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119387/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; long long int n, j; scanf("%d", &t); int T[t]; for(int i=0; i<t; i++) scanf("%lld", &T[i]); for(int i=0; i<t; i++) { j=0; if(T[i]%10 == 9) j++; j=j+(T[i]/10); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11943/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11943/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 N,K; scanf("%d %d",&N,&K); if(N%K>0){ printf("%d",1); } else{ printf("%d",0); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119473/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119473/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k; scanf("%d%d",&n,&k); if(n % k){ printf("1"); } else { printf("0"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119516/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119516/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <ctype.h> #define max(a,b) a>=b?a:b #define min(a,b) a<b?a:b #define inf 1000000000 #include <math.h> #include <stdio.h> #include <string.h> #include <ctype.h> #define MOD 1000000007 #include <stdio.h> #include <stdlib.h> #include <ma...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11956/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11956/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,k; scanf("%d %d",&n,&k); if(n%k==0){ printf("%d\n",0); }else{ printf("%d\n",1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119602/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,K; scanf("%d %d",&N,&K); printf("%d\n",!!(N%K)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119646/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119646/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n,a[100],i,d[100]={},k,max; scanf("%d",&n); for(i=0;i<n;i++) {scanf("%d",&a[i]);} for(i=0;i<n;i++) {for(k=i+1;k<n;k++) {if(a[i]==a[k]&&a[i]!=-1) {a[k]=-1; d[i]++; } else { continue;} }if(a[i]!=-1) {d[i]++;} } max=d[0]; for(i=0;i<n;i+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11969/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11969/source.c" target datalayout = "e-m:e-p270:32:32-p271: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){ // Your code here! int N,K; scanf("%d %d",&N,&K); printf("%d\n",((N%K)!=0)); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119732/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119732/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include <stdbool.h> #define LL long long #define DB double #define INF 1145141919810364364 #define PI 3.14159265358979 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define FOR(i,a,n) for(i=a;i<n;i++) #define rep(i,n) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119776/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119776/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @fact = dso_local local_unn...
#include <stdio.h> int main() { int num[4] = { 0,-1,-1,-1 }; int N, M, s, c; scanf("%d %d", &N, &M); for (int i = 1;i <= M;i++) { scanf("%d %d", &s, &c); if (num[s] == -1 || num[s] == c) num[s] = c; else { printf("-1"); return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119826/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119826/source.c" target datalayout = "e-m:e-p270: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.num = private...
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); int i=0; while(1) { i++; a*=3; b*=2; if(a>b) break; } printf("%d",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11987/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11987/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int main() { int a,b; int x=0; scanf("%d%d",&a,&b); while(a<=b) { a*=3; b*=2; x++; } printf("%d",x); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11992/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11992/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #define ll long long int main(){ int n,k=1; scanf("%d",&n); ll a[n+1],b[n+1]; for(int i=1;i<=n;i++) scanf("%lld",&a[i]); ll c[n]; for(int i=1;i<n-1;i+=2){ c[k]=a[i]-a[i+1]; k++; } c[k]=a[n]; ll sum=0; for(int i=1;i<=k;i++) sum+=c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_119970/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_119970/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int n,a[200000],b[200000],i,j; scanf("%ld",&n); for(i=0;i<n;i++){ scanf("%ld",&a[i]); b[0]+=a[i]; } b[0]/=2; for(i=0;i<(n-1)/2;i++){ b[0]-=a[(1+2*i)%n]; } for(i=1;i<n;i++){ b[i]=a[i-1]-b[i-1]; } for(i=0;i<n;i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120011/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120011/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <limits.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 *)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120055/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120055/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int a,int b) {return a>b?a:b;} int run(int *u, int l, int k) { int s[100001] = {u[0]}, m = u[0], i; for(i = 1; i < l; i++) { s[i] = s[i - 1] + u[i]; if(!(i % 2) && i >= k*2) { m = max(m, s[i] - (i - k*2 - 1 >= 0 ? s[i - k*2 - 1] : 0)); } else if(i == l - 1) m = max(m, s[i] - (i ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(day) strcmp(s,day)==0 int main() { char s[4]; scanf("%s",s); if(cmp("SUN")) puts("7"); else if(cmp("MON")) puts("6"); else if(cmp("TUE")) puts("5"); else if(cmp("WED")) puts("4"); else if(cmp("THU")) puts("3"); else if(cmp("FRI")) puts("2"); else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h> #include <string.h> int main() { char *array[7]={"MON","TUE","WED","THU","FRI","SAT","SUN"}; char test[3]; int idx = 0; scanf("%s",&test); for (int i=0;i<7;i++){ if (strcmp(test,array[i])==0){ idx=i; break;} } if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120185/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120185/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[4], date[8][4]={"SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"}; scanf("%s",s); for(int i=0;i<7;i++){ if(date[i][0] == s[0] && date[i][1] ==s[1]){ printf("%d\n", 7-i); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120228/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// Ver19.03 #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define INF (1 << 29) * 2 #define LLINF 4545454545454545454 #define MOD 1000000007 #define ll long long #define ull unsigned long long #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) int upll(con...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120286/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120286/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { char S[3]; scanf("%s", S); if (!strcmp(S, "SUN")) { printf("7\n"); } else if (!strcmp(S, "MON")) { printf("6\n"); } else if (!strcmp(S, "TUE")) { printf("5\n"); } else if (!strcmp(S, "WED")) { printf("4\n"); } else if (!strcmp(S, "TH...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120336/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120336/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char const *argv[]) { int a, b, i = 0; scanf("%d %d", &a, &b); while(a <= b) { a *= 3; b *= 2; i++; } printf("%d", i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12038/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12038/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};} //pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define SWAP(type, x, y) do { type tmp =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120422/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120422/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n,a[1000],i,min=1000000,j; while(1){ scanf("%d",&n); min=1000000; if(n==0) break; for(i=0; i<n; i++){ scanf("%d",&a[i]); } for(j=0; j<n; j++){ for(i=0; i<n; i++){ if(i!=j){ int sa=a[i]-a[j]; if(sa<0){ sa=-sa; } i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120473/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120473/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,ntemp; scanf("%d", &n); ntemp = n; int cnt = 1; while (pow(10, cnt) <= n) { cnt++; } int mysum = 0; for (int i = cnt; i >= 1; i--) { //printf("%d %d %d\n", i, (int) p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120523/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120523/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cnt = 0, n = 0, s = 0; char N[20]; for (int i = 0; i < 20; i++) { scanf("%c", &N[i]); if (N[i] == '\n') { break; } cnt++; } for (int i = 0; i < cnt; i++) { int x = (int)(N[i] - '0'); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120567/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120567/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans,c=0; scanf("%d%d",&a,&b); if(a==b) printf("1"); else { while(a<=b){ a=a*3; b=b*2; c++; } printf("%d",c); // ans=b/a; // printf("%d",ans+1); } //printf("%d",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12061/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12061/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <math.h> #include <stdbool.h> int main(void){ int n,sn=0; scanf("%d",&n); int tmp=n; while(tmp!=0){ sn+=tmp%10; tmp/=10; } if(n%sn==0) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120653/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120653/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { long int n, a, b, c=0; scanf("%ld", &n); a=n; while(a){ b=a%10; c+=b; a=a/10; } if(n%c==0) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120697/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { long long int n,a,b; scanf("%lld%lld%lld",&n,&b,&a); int arr[n]; for (long long int i = 0; i < n; ++i) { scanf("%d",&arr[i]); } long long int initial=a,flag=0,dist=0; for (long long int i = 0; i < n; ++i) { if(arr[i]==0) { if(a>0) { a--; dist++; } else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12074/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12074/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,N1,sum = 0,i = 0,j; int S[11]; scanf("%d",&N); N1 = N; while(N > 0){ S[i] = N % 10; N = N / 10; i++; } for(j = 0;j < i;j++) sum = sum + S[j]; if(N1 % sum == 0) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120783/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120783/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, s, tmp; s = 0; scanf("%d", &n); tmp = n; for (; tmp >= 1; tmp /= 10) s += (tmp % 10); if ((n % s) == 0) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120833/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120833/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { long long n,m,k; scanf("%lld%lld%lld",&n,&m,&k); long long a[n+2],b[m+2]; a[0]=0; b[0]=0; scanf("%lld",&a[1]); for(int i=2;i<=n;i++){ long long tmp; scanf("%lld",&tmp); a[i]=a[i-1]+tmp; } scanf("%lld",&b[1]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120884/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120884/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ long long int n, m, k; scanf("%lld%lld%lld", &n, &m, &k); long long int a[200005], b[200005], i, j; for(i = 0; i < n; i++) scanf("%lld", &a[i+1]); for(i = 0; i < m; i++) scanf("%lld", &b[i+1]); a[0] = b[0] = 0; for(i = 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120941/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120941/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { int i,j,k,sw,e,e1,e2,i1,j1,c1,c2; char st1[201],st2[201],st3[201],st4[201]; while(1) { scanf("%s",st1); if(st1[0]=='.' && st1[1]=='\0') break; scanf("%s",st2); e2=0; c1=0; c2=0; for(i=0;i<=strlen(st1)-1;i++) { i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_120985/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_120985/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h> //#include <math.h> int main() { int n; scanf("%d", &n); char s[n+1]; scanf("%s", s); int e[n+1], w[n+1], ans = 300001; w[0] = 0; e[n] = 0; for (int i=1; i<n+1; i++) w[i] = (s[i-1] == 'W') ? w[i-1]+1 : w[i-1]; for (int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121027/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h> int main(void) { int n; char s[300001] = {}; scanf("%d %s", &n, s); size_t l = strlen(s); int e[300001] = {}; int w[300001] = {}; for (size_t i = 0; i < l; i++) { if (s[i] == 'E') { e[i + 1] = e[i] + 1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121070/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#pragma warning(disable:4996) #include <stdio.h> #include <stdlib.h> #include <string.h> #define _USE_MATH_DEFINES #include <math.h> #include <float.h> #pragma region 定義 typedef long long ll; typedef unsigned long long ull; #define _itoa(A,N) sprintf(A, "%d", N); int i_dsort(const void* a, const void* b); int i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121113/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX_DATA 100000 int temp[MAX_DATA]; /* 最小でも配列と同じサイズの領域が必要 */ void MergeSort(int x[ ], int left, int right); /* 配列 x[ ] の left から right の要素のマージソートを行う */ void MergeSort(int x[ ], int left, int right) { int mid, i, j, k; if (left >= right) /* 配列の要素がひとつなら */ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @temp = dso_local local_unn...
#include <stdio.h> int main(){ int all_len=0,first_len=0,last_len,len_bin=0,flag=0,ret,flag2=0; long answer=0,k; char s,t,first,last; while(1){ ret = scanf("%c",&s); if(flag == 0){ first = s; t = s; flag = 1; } if(ret == EOF || s == '\n'){ last = t; answer += ((lo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 is_shichigosan(long long x); int shichigosan(long long x, long long n){ if(x > n) return 0; int count = is_shichigosan(x) ? 1 : 0; count += shichigosan(x * 10 + 7, n); count += shichigosan(x * 10 + 5, n); count += shichigosan(x * 10 + 3, n); return count; } int is_shichigosan(long l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int long long int O357[4] = {0, 3, 5, 7}; int convert(int n){ int ans, i; for(ans = 0, i = 1; n > 0; n /= 4, i *= 10){ ans += i * O357[n % 4]; } return ans; } int is_753(int n){ int f3, f5, f7; for(f3 = 0, f5 = 0, f7 = 0; n > 0; n /= 10){ if(n % 10 == 3){ f3 = 1; } else if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121300/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121300/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @O357 = dso_local local_unn...
#include<stdio.h> int main(void) { char S[5]; int i=0; scanf("%s",S); if(S[0]==S[1]) i++; if(S[0]==S[2]) i++; if(S[0]==S[3]) i++; if(i!=1) { printf("No\n"); return 0; } else i=0; if(S[1]==S[0]) i++; if(S[1]==S[2]) i++; if(S[1]==S[3]) i++; if(i!=1) { pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121344/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121344/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[4]; scanf("%s", s); if(s[0] == s[1]){ int count = 0; if(s[0] == s[2]) count ++; if(s[0] == s[3]) count ++; if(count == 0 && s[2] == s[3]){ printf("Yes"); }else{ printf("No"); } }else{ int count1 = 0; int count2 = 0; if(s[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121395/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121395/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[26] = {0}, ans = 0; char s[5]; scanf("%s", s); for(int i = 0; i < 4; ++i){ a[s[i] - 65]++; } for(int i = 0; i < 26; ++i){ if(a[i]) ans++; } if(ans == 2) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121438/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121438/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { char s[5]; fgets(s, 5, stdin); int tbl[256] = {0}; int i; for (i = 0; i < 4; i++) { tbl[s[i]]++; } for (i = 0; i < 256; i++) { if (tbl[i] != 0 && tbl[i] != 2) { printf("No"); return 0; } } printf("Yes"); r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121496/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121496/source.c" target datalayout = "e-m:e-p270: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) { char S[5]; scanf("%s",S); if(S[0]==S[1]&&S[2]==S[3]&&S[0]!=S[2]){ printf("Yes"); }else if(S[0]==S[2]&&S[1]==S[3]&&S[0]!=S[1]){ printf("Yes"); }else if(S[0]==S[3]&&S[1]==S[2]&&S[0]!=S[1]){ printf("Yes"); }else{ printf("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121539/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121539/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ca[256] = {}; int cnt = 0; char ch; for (int i = 0; i < 4; i++) { ch = getchar(); if (!ca[ch]) { cnt++; ca[ch] = 1; } } if (cnt == 2) { printf("Yes\n"); } else { printf("No\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121582/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121582/source.c" target datalayout = "e-m:e-p270: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() { char x; int i,j,n[26]={},flag=0; for(i=0;i<4;i++){ scanf("%c",&x); n[x-65]++; } for(i=0;i<26;i++){ if(n[i]==2){ for(j=i+1;j<26;j++){ if(n[j]==2){ flag=1; break; } } } } if(flag==1) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121632/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121632/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { char a[5]; scanf("%s",a); int i,j,s,flag=0; for(i=0;i<4;i++) { s=0; for(j=i+1;j<4;j++) if(a[i]==a[j]) { s++; } if(s>1) { fl...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121683/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121683/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #define ll long long int #define lim 100010 #define INF 1e9 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define ABS(x) ((x)>0?(x):-(x)) int main(void){ char S[5]; scanf("%s",S); char a=S[0],b=S[1],c=S[2],d=S[3]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121726/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121726/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int b[1000001]; int max(int a,int b) { if (a>b) return a; return b; } int main() { int n; scanf("%d",&n); int tp,i; memset(b,0,sizeof(b)); for (i=1;i<=n;i++) { scanf("%d",&tp); int t=i-tp; if (t<=0) t=1; b[t]=max(i-1,b[i]); } int alive=0,nowend...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12177/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #define NMAX 1000000 int count[NMAX]; int max(int a, int b) { return a > b ? a : b; } int main() { int n, i, len, res; scanf("%d", &n); for (i = 0; i < n; ++i) { scanf("%d", &len); if (i > 0) { count[max(0, i - len)] += 1; count[i] -= 1; } } res = 0; for (i =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12182/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12182/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> long long int gcd(long long int x, long long int y){ long long int t; while(y!=0){ t = x % y; x = y; y = t; } return x; } int main(int argc, char *argv[]){ long long int a,b; while(scanf("%lld %lld",&a,&b) != EOF){ printf("%lld %lld\n",gcd(a,b),a*b/gcd(a,b)); } retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121863/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121863/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { long long a, b, gcd, lcm, t, x, y; while((scanf("%lld %lld", &a, &b))!=EOF){ x=a; y=b; if(a==0) gcd=b; else if(b==0) gcd=b; else{ while(b!=0){ t=b; b=a%b; a=t; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121906/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121906/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(a,b) (a>b?a:b) long long k[1000006]; int main(){ long long n; scanf("%lld",&n); for(int i=1;i<=n;i++)scanf("%lld",&k[i]); long long cnt = 0; long long left = 0; for(int i=n;i>=1;i--){ if(left!=0)cnt++, left--; left = max(k[i], left); } print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12195/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12195/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> void swap(long *a,long *b){ long tmp = *a; *a = *b; *b = tmp; } int main(void){ long a,b; while(scanf("%ld %ld",&a,&b)!= EOF){ if(a < b) swap(&a,&b); long r = a % b; long product = a * b; while(r != 0){ a = b; b = r; r = a % b; } printf("%ld %ld\n",b,product/b); } return ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_121993/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_121993/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 fora,forb; int tmp=1; int said,sais; int i; while(scanf("%d %d",&a,&b)!=EOF){ fora=a; forb=b; if(a<=b){ tmp=a; a=b; b=tmp; } tmp=a%b; while(tmp!=0){ a=b; b=tmp; tmp=a%b; } said=b; sais=(fora/b)*forb; printf("%d %d\n"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122035/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122035/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long int a, b, temp, sum, GCD, LCM; while(scanf("%lld %lld",&a,&b) !=EOF) { if(a<b) { temp = a; a = b; b = temp; } sum = a * b; while( b != 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122079/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122079/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y, q, r; long long int a,b,z; while(scanf("%lld %lld", &a, &b)!=EOF){ x = a; y = b; if(x < 0) x = -x; if(y < 0) y = -y; for(;;){ q = x/y; r = x - q*y; if(r == 0) break; x = y; y = r; } z=a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122121/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122121/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int gcd( long long int a , long long int b ){ long long int r; while((r = a % b)!=0){ a = b; b = r; } return b; } long long int lcm( long long int a , long long int b){ return a/gcd(a,b)*b; } int main(void){ long long int a , b; while(scanf("%lld %lld" , &a , &b)!=EOF){ prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122172/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122172/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,int); int lcm(int,int); int main(){ int x,y; while(scanf("%d %d",&x,&y)>0){ printf("%d %d\n",gcd(x,y),lcm(x,y)); } return 0; } int gcd(int x,int y){ if(y==0)return x; if(x==0)return y; if(x>y)return gcd(y,x%y); else return gcd(x,y%x); } int lcm(int x,int y){ return x/gcd(x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122215/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122215/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ int t; if (b>a){ t=a; a=b; b=t; } while(b!=0){ t=b; b=a%b; a=t; } return a; } int lcm(int a,int b){ int t,inc=a,dst; if (b>a){ t=a; a=b; b=t; inc=a; } for(;;){ if(a%b==0){ dst=a; break; } a+=inc; } return dst; } int main(){ int a,b; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122259/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122259/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 GCD(long long a,long long b) { long long temp; while(b!=0) { temp=a%b; a=b; b=temp; } return a; } int main() { long long a,b,gcd,lcm; while(scanf("%lld%lld",&a,&b)==2) { gcd=GCD(a,b); lcm=(a/gcd)*(b/gcd)*gcd; printf("%lld %lld\n",gcd,lcm); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122301/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122301/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[100]={},b[100]={},A[100]={},B[100]={},C[100]={},x,y; x=0; y=0; for(i=0;i<100;i++){ scanf("%d %d",&a[i],&b[i]); A[i]=a[i]; B[i]=b[i]; } for(i=0;i<100;i++){ if(a[i] == 0 && b[i] == 0){ y=i; break; } if(a[i] < b[i]){ x=a[i]; a[i]=b[i]; b[i]=x; } } i=0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122352/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122352/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Gcd(long long x,long long y); int main(void){ long long a,b,g,lcm; int i; while( scanf("%lld %lld",&a,&b) != EOF ){ g=Gcd(a,b); lcm=a*b/g; printf("%lld %lld\n",g,lcm); } return 0; } long long Gcd(long long x,long long y){ int i,j; long long tmp; if(y>=x){ tmp=x; x=y;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122396/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122396/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, i; while ((scanf("%ld%ld", &a, &b)) != EOF) { for (i = 1; i <= a; i++) { if (a%i) continue; if (!(b%(a/i))) { printf("%ld ", a/i); break; } } for (i = 1; i < 200000000; i++) if (!((a*i)%b)) { printf("%ld\n"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122446/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122446/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> char arr[50][51]; int n, m; int check(char c, int i, int j, int oldi, int oldj) { int res; if(j + 1 < m && (i != oldi || j + 1 != oldj)) { if(arr[i][j + 1] == c && arr[i][j + 1] != '1' && arr[i][j + 1] != '2') { arr[i][j + 1] = '1'; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12249/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12249/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @m = dso_local global i32 0, ...
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d %d %f\n",a/b,a%b,(double)a/b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122532/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122532/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a, b; scanf("%d", &a); scanf("%d", &b); printf("%d %d %f\n", a/b, a%b, (double)a/b ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122576/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122576/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d, r; double f; scanf("%d %d", &a, &b); d = a / b; r = a % b; f = (double) a / b; printf("%d %d %f\n", d, r, f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122626/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122626/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,flag,i; scanf("%d%d",&n,&m); flag = 0; while(n--) { if(flag==0||flag==2) { for(i=0;i<m;i++) printf("%c",'#'); printf("\n"); } else if(flag==1) { for(i=0;i<m-1;i++) printf("%c",'.'); printf("#\n"); } else if(flag==3) { printf("#"); for(i=0;i<m-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12267/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12267/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,d,r; double f; scanf("%d %d",&a,&b); d=a/b; r=a%b; f=(double)a/b; printf("%d %d %f",d,r,f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122712/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122712/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int r, d; double f; scanf("%d %d", &a, &b); d = a / b; r = a % b; f = a * 1.0 / b; printf("%d %d %lf\n", d, r, f); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122756/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122756/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int t; scanf("%d",&t); while(t--){ int n,x=0,y=0; scanf("%d",&n); long long int a[n],b[n]; for(int i=0;i<n;i++) scanf("%lld",&a[i]); for(int i=0;i<n;i++) scanf("%lld",&b[i]); if(a[0]==b[0]){ if(a[0]==1){ for(int i=1;i<n;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1228/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 i = 0, j = 0, m = 0, n = 0; scanf("%d %d", &n, &m); for (i = 0; i < n; ++i){ if (i % 2 == 0){ for (j = 0; j < m; ++j){ putchar('#'); } putchar('\n'); } else if (i % 4 == 1 ){ for (j = 0; j < m - 1; ++j){ putchar('.'...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12285/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12285/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 r=0; char s[20],a[]={"CODEFESTIVAL2016"}; scanf("%s",s); for(int i=0;i<16;i++)if(s[i]!=a[i])r++; printf("%d",r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122907/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122907/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { int i, c = 0; char s[17]; char t[17] = {"CODEFESTIVAL2016"}; scanf("%s", s); for (i = 0; i < 16; i++) { if (s[i] != t[i]) { s[i] = t[i]; c++; } } printf("%d\n", c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122950/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122950/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4]; int sum=0; for(int i=0;i<4;i++){ scanf("%d",&n[i]); } int flag1=0,flag2=0,flag3=0,flag4=0; for(int i=0;i<4;i++){ if(n[i]==1)flag1++; if(n[i]==7)flag2++; if(n[i]==9)flag3++; if(n[i]==4)flag4++; } if(flag1==1&&flag2==1&&flag3==1&&flag4==1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_122994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_122994/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4],i,j,hold; for(i=0;i<4;i++){ scanf("%d",&n[i]); } for(i=3;i>0;i--){ for(j=0;j<i;j++){ if(n[j]>n[j+1]){ hold = n[j]; n[j] = n[j+1]; n[j+1] = hold; } } } if(n[0]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123043/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123043/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <float.h> #include <inttypes.h> #include <limits.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <math.h> #ifdef __cplusplus #include <bits/stdc++.h> #endif #define getchar getchar_unlocked #define putchar pu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123087/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123087/source.c" target datalayout = "e-m:e-p270: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> int main() { int i,j,m,n; while(scanf("%d%d",&m,&n)==2) { for(i=1;i<=m;i++) { if((i%2)==1) { for(j=1;j<=n;j++) printf("#"); } else if((i%2)==0&&(i%4)!=0) { for(j=1;j<=n-1;j++) printf("."...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_12313/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_12313/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 main(void){ char S[1001],T[1001]; scanf("%s",S); scanf("%s",T); int count, i, j, S_len, T_len, min; S_len = strlen(S); T_len = strlen(T); min = T_len; for(i=0; i<=(S_len-T_len); i++){ count = 0; for(j=0; j<T_len; j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123180/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123180/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(){ char s[1001], t[1001]; scanf("%s %s", s, t); int max = 0; for(int i = 0; i < strlen(s) - strlen(t) + 1; ++i){ int cnt = 0; for(int j = 0; j < strlen(t); ++j){ if(s[i+j] == t[j]) cnt++; } if(max < cnt) max =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123223/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123223/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define true 1 #define false 0 #define MAX 1000000 typedef long long ll; typedef unsigned char Uchar; int main(void){ char a[1005],b[1005]; scanf("%s %s",a,b); int i,j; int n1=0,n2=0; int ans = MAX; for(i=0;i<strlen(a)-strle...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123274/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123274/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s_length, t_length, consist_char_num = 0, answer = 0; char s[1000]; char t[1000]; scanf("%s", s); scanf("%s", t); s_length = strlen(s); t_length = strlen(t); for (int i = 0; i<(s_length - t_length + 1); i++) { int cur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123324/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123324/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { char str[100]; scanf("%s", str); for(int i = 0; i < strlen(str); i++){ printf("%c", 'x'); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123382/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123382/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){ int i; char str[100]; scanf("%s",str); for(i=0;i<strlen(str);i++){ printf("x"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123425/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123425/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[100]; int i = 0; scanf("%s", s); while (s[i] != '\0') { printf("x"); i++; } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_123469/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_123469/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...