Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(){ int time[200001],arr[200001],n,i,count = 1; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&arr[i]); time[i] = 0; } time[0] = 1; for(i=0;i<n;i++){ if(time[arr[i]]==1){ time[arr[i]] = 0; time[i+1] = 1; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15586/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15586/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,m,l,i,r,t; double sum=0; int iti[100][100]; int ni[100][100]; scanf("%d %d %d",&n,&m,&l); for(i=0;i<n;i++){ for(r=0;r<m;r++){ scanf("%d",&iti[i][r]); } } for(i=0;i<m;i++){ for(r=0;r<l;r++){ scanf("%d",&ni[i][r]); } } for(i=0;i<n;i++){ for(r=0;r<l;r++){ for(t=0;t<m;t++){ sum+=(dou...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155902/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[100][100], b[100][100]; int main() { int i, j, k, l ,m, n; scanf("%d%d%d", &l, &m, &n); for(i=0; i<l; i++) { for(j=0; j<m; j++) { scanf("%d", &a[i][j]); } } for(i=0; i<m; i++) { for(j=0; j<n; j++) { scanf("%d", &b[i][j]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_155946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_155946/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200010],i,B[200010],n,first; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&A[i]); B[A[i]]=0;} for(i=n;i>=1;i--){ if(B[A[i]]==0){ first=A[i]; B[A[i]]=1;} } printf("%d",first); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15599/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15599/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, m, l, i, j, k; int a[101][101] = {0}; int b[101][101] = {0}; long c[101][101] = {0}; scanf("%d%d%d", &n, &m, &l); for(i=0; i<n; i++){ for(j=0; j<m; j++){ scanf("%d", &a[i][j]); } } for(i=0; i<m; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156031/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156031/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k; int n, m, l; int A[100][100] = { 0 }; int B[100][100] = { 0 }; long int C[100][100] = { 0 }; scanf("%d %d %d", &n, &m, &l); // input A for(i=0; i<n; i++) { for(j=0; j<m; j++) { scanf("%d", &A[i][j]); } } // input B for(i=0; i<m; i++) { for(j=0; j<l; j+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156075/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156075/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int n,m,l,i,j,k=0; int a[100][100],b[100][100]={{0}}; long c[100][100]={{0}}; scanf("%d %d %d",&n,&m,&l); for(i=0;i<n;i++){ for(j=0;j<m;j++){ scanf("%d",&a[i][j]); } } for(i=0;i<m;i++){ for(j=0;j<l;j++){ scanf("%d",&b[i][j]); } } for(i=0;i<n;i++){ for(j=0;j<...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156125/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156125/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int n,m,l; scanf("%d %d %d\n",&n,&m,&l); int A[n][m]; int b[m][l]; long int c[n][l]; for(int i=0; i<n; i++){ for(int j=0; j<m; j++){ scanf("%d ",&A[i][j]); } } for(int j=0; j<m; j++){ for(int k=0; k<l; k++){ scanf("%d ",&b[j][k]); } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156169/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156169/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mat1[101][101]; int mat2[101][101]; double mat3[101][101]; int na,mb,lc; int f,g,h; scanf("%d %d %d", &na, &mb, &lc); for(f=0; f<na; f++) { for(g=0; g<mb; g++){ scanf("%d", &mat1[f][g]); } } for(f=0; f<mb; f++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156211/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156211/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 matrixa[100][100], matrixb[100][100], matrixans[100][100]; int n, m, l; int i, j, k; scanf("%d%d%d", &n, &m, &l); for(i = 0; i < n; i++){ for(j = 0; j < l; j++){ matrixans[i][j] = 0; } } for(i = 0; i < n; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156262/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156262/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main (void) { int A[100][100],B[100][100],n,m,l; long int C[100][100]; int i,j,k; for(i = 0 ; i < 100 ; i ++ ) { for(j = 0 ; j < 100 ; j ++ ) { A[i][j] = 0; B[i][j] = 0; C[i][j] = 0; } } scanf("%d %d %d",&n,&m,&l); for(i = 0 ; i < n ; i++) { for(j ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156312/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156312/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, n, m, l; long t; scanf("%d %d %d",&n,&m,&l); int a[n][m],b[m][l]; //行列A入力 for(i=0;i<n;i++){ for(j=0;j<m;j++){ scanf("%d",&a[i][j]); } } //行列B入力 for(i=0;i<m;i++){ for(j=0;j<l;j++){ scanf("%d",&b[i][j]); } } for(i=0;i<n;i++){ for(j=0;j<l;j++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156363/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156363/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101][101]; long long B[101][101]; long long C[101][101]; int i,j; for(i=0;i<101;i++){ for(j=0;j<101;j++){ A[i][j]=0; B[i][j]=0; C[i][j]=0; } } int n,m,l; scanf("%d %d %d\n",&n,&m,&l); for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156406/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156406/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { // your code goes here int a,b,ans=0,i; int arr[10]={6,2,5,5,4,5,6,3,7,6}; scanf("%d%d",&a,&b); for(i=a;i<=b;i++) { int num=i; while(num) { int d=num%10; ans+=arr[d]; num=(num-d)/10; } } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15645/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15645/source.c" target datalayout = "e-m:e-p270: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.arr = private u...
#include <stdio.h> #define N 100000 int min(long long a, int b) { return a < b ? a : b; } int main() { int n, a, b, x, x_; long long ans; scanf("%d%d%d", &n, &a, &b); ans = 0; x_ = -1; while (n--) { scanf("%d", &x); if (x_ != -1) ans += min((long long) (x - x_) * a, b); x_ = x; } printf("%lld\n", ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156493/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156493/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d,n; scanf("%d%d",&d,&n); if(n==100) n++; if(d==0) printf("%d",n); else if(d==1) printf("%d",100*n); else printf("%d",10000*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156536/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x1,y1,x2,y2,m,n,i,sum; scanf("%I64d%I64d%I64d%I64d",&x1,&y1,&x2,&y2); if(x1>x2) m=x1-x2; else if(x1<=x2) m=x2-x1; if(y1>y2) n=y1-y2; else if(y1<=y2) n=y2-y1; if(m>n) { sum=m; } else { sum...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15658/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15658/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 d, n, i; scanf("%d %d", &d, &n); if(n == 100) { ++n; } for(i = 0; i < d; ++i){ n *= 100; } printf("%d\n", n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156622/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <string.h> #include <time.h> typedef long long int ll; #define mod 1000000007 #define rep(i, n) for(int i = 0; i < (int)(n); i++) #define m0(x) memset(x,0,sizeof(x)) //組み合わせ(nとrが少ないとき) int combination_low(ll n,ll r){ const ll N = 500; ll C[N][N]; memset(C, 0, sizeof...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156680/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156680/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a==0){ if(b==100) printf("101"); else if(b<100)printf("%d \n",b); } else if(b<100) printf("%d \n ",(int)pow(100,a) * b); else if(b==100) printf("%d \n",(int)pow(100,a) * (b+1)); return 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156723/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156723/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d,n; int i; int a=1; scanf("%d%d",&d,&n); for(i=0;i<d;i++) a=a*100; if(n==100) printf("%d",a*101); else printf("%d",a*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156767/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156767/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x1, y1, x2, y2, count = 0; long diffx, diffy; scanf("%ld %ld", &x1, &y1); scanf("%ld %ld", &x2, &y2); diffx = x2 - x1; diffy = y2 - y1; if (diffx < 0) diffx *= -1; if (diffy < 0) diffy *= -1; if (diffx > diffy) count = diffx; else count = diffy; /* whil...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15681/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15681/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { char cup[3] = {1, 0, 0}; char a, b; int i; while (scanf("%c,%c", &a, &b) != EOF){ a -= 'A'; b -= 'A'; cup[a] += cup[b]; cup[b] = cup[a] - cup[b]; cup[a] -= cup[b]; } for (i = 0; i < 3; i++){ if (cup[i] == 1) printf("%c\n", 'A' + i); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156868/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156868/source.c" target datalayout = "e-m:e-p270: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.cup = private...
#include<stdio.h> int main(void){ int cup[3]={1,0,0}; char trade[2]; int tmp; while(scanf("%c,%c",&trade[0],&trade[1])!=EOF){ tmp = cup[trade[0]-65]; cup[trade[0]-65] = cup[trade[1]-65]; cup[trade[1]-65] = tmp; } int k,ans; for(k=1;k<=3;k++){ if(cup[k-1]==1){ ans = 64 + k; pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156918/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156918/source.c" target datalayout = "e-m:e-p270: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.cup = private...
#include<stdio.h> void swap(int* a,int* b){ int buf = *a; *a = *b; *b = buf; } int main(){ int cup[3]={1,0,0}; char str[10]; int i; char a,b; while(~scanf("%s",str)){ sscanf(str,"%c,%c",&a,&b); swap(&cup[a-'A'],&cup[b-'A']); } for(i=0;i<3;i++){ if(cup[i]==1){ printf("%c\n",i+'A'); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_156983/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_156983/source.c" target datalayout = "e-m:e-p270: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.cup = private...
#include <stdio.h> int main(void) { char t1,t2,ball='A'; while (scanf("%c,%c\n",&t1,&t2)!=EOF) { if (ball==t1) { ball = t2; } else if (ball==t2) { ball = t1; } } printf("%c\n",ball); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157054/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157054/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> void run(void){ int n; scanf("%d",&n); double *dp=(double *)calloc(n+1,sizeof(double)); dp[0]=1; for(int i=0;i<n;i++){ double p; scanf("%lf",&p); for(int j=i+1;j>0;j--) dp[j]=(1-p)*dp[j]+p*dp[j-1]; dp[0]*=1-p; } double ans=0; for(int i=n;i>n-i;i--) a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157098/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157098/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch; scanf("%c",&ch); if(ch=='A'){ printf("T\n"); }else if(ch=='T'){ printf("A\n"); }else if(ch=='C'){ printf("G\n"); }else if(ch=='G'){ printf("C\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157148/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157148/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b[1]; scanf("%c",&b[0]); if(b[0] =='A') printf("T\n"); if(b[0] =='C') printf("G\n"); if(b[0] =='G') printf("C\n"); if(b[0] =='T') printf("A\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157199/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157199/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c,ans; scanf("%c",&c); switch(c){ case 'A': ans='T'; break; case 'C': ans='G'; break; case 'G': ans='C'; break; case 'T': ans='A'; break; default: break; } printf("%c",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157241/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157241/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c,s=0; scanf("%lld",&n); while(n--) { scanf("%lld%lld%lld",&a,&b,&c); s=(a+b+c)/2; printf("%lld\n",s); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1573/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1573/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a,b,total=0; int segments[]={6,2,5,5,4,5,6,3,7,6}; int j; scanf("%d%d",&a,&b); for (int i=a; i<=b; i++) { a=i; while (a>=10) { j=a%10; a=a/10; total+=segments[j]; } total+=segments[a]; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15735/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15735/source.c" target datalayout = "e-m:e-p270: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.segments = priv...
#include <stdio.h> int main(){ char b=0; scanf("%c",&b); if(b=='A'){ printf("T"); } if(b=='T'){ printf("A"); } if(b=='C'){ printf("G"); } if(b=='G'){ printf("C"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157393/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157393/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 b; scanf("%c", &b); switch (b) { case 'A': printf("T\n"); break; case 'T': printf("A\n"); break; case 'C': printf("G\n"); break; case 'G': printf("C\n"); break; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157436/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,num,sum,res,result=0; scanf("%d %d",&a,&b); for (i=a;i<=b;i++){ num=i; while(num>0){ sum=num%10; switch(sum){ case 0: res=6; break; case 1: res=2; break; case 2: res=5; break; case 3: res=5; break; case 4: res=4; break; case 5: res=5; break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15748/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { char x; scanf("%c", &x); if (x == 'A'){ printf("T\n"); } else if(x == 'T'){ printf("A\n"); } else if (x == 'C'){ printf("G\n"); } else { printf("C\n"); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157522/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157522/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_MAX 200000 int main(int argc, char **argv) { int n, k; scanf("%i%i", &n, &k); int a[N_MAX + 1]; for(int i = 1; i <= n; ++i) { scanf("%i", &a[i]); } int s = 1, t = 1000000000; while(s <= t) { int m = (s + t) / 2; int c = 0; for(int i = 1; i <= n; ++i) { c += (a[i] - 1) / m;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157573/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157573/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s[101], t[101]; scanf("%s", s); scanf("%s", t); int i, j, s_count = 0, t_count = 0; char s_min = 'z' + 1, t_max = 'a' - 1; for (i = 0; s[i] != 0; i++) { if (s[i] < s_min) { s_count = 1; s_min = s[i]; } else if (s[i] == s_min) s_count++; } for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157616/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157616/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { long int x1,x2,y1,y2,d; scanf ("%ld %ld %ld %ld",&x1,&y1,&x2,&y2); if (x1>x2) d = x1-x2; else d = x2-x1; if (y1>y2) { if (d<y1-y2) d = y1-y2; } else if (d<y2-y1) d = y2-y1; printf ("%ld",d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15766/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15766/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <stddef.h> #include <string.h> int cmpf1(const void * v1, const void * v2) { return (int)(*((unsigned char *)v1)) - (int)(*((unsigned char *)v2)); } int cmpf2(const void * v1, const void * v2) { return (int)(*((unsigned char *)v2)) - (int)(*((unsigned char *)v1)); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157702/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count=0, a[100005]; scanf("%d%d",&n,&k); for(int i=0;i<n;i++){ scanf("%d",&a[i]); } n=n-k; count++; if(n>0){ while(1){ n=n-k+1; count++; if(n<=0) break; } } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157760/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157760/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdint.h> // int64_t #define max(a,b) ((a) > (b) ? (a) : (b)) #define min(a,b) ((a) > (b) ? (b) : (a)) int get_str(char *str, int size) { char format[100]; if (size == 0) return 0; snprintf(format, sizeof(format), "%%%ds", size);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157803/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157803/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> typedef enum {false, true} bool; int main(void) { char c, temp = '\n'; int ctr = 0; bool flag = true; scanf("%c", &c); while(c != '\n') { if(c != temp) { if(flag) { temp = c; } el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157847/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157847/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define max(a, b) ((a) > (b) ? (a) : (b)) #define min(a, b) ((a) < (b) ? (a) : (b)) int main(){ int d,n,t[200],a[200],b[200],c[200],dp[200][200],i,j,k,maxc=0,minc=100,ans=0; scanf("%d%d",&d,&n); for (i=0; i<d; i++) { scanf("%d",&t[i]); } for (i=0; i<n; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157890/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157890/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int i, j, c[4][4] = {}; for (i = 1; i <= 3; i++) { for (j = 1; j <= 3; j++) scanf("%d", &(c[i][j])); } int flag = 1; if (c[1][1] + c[2][2] != c[1][2] + c[2][1]) flag = 0; if (c[1][2] + c[2][3] != c[1][3] + c[2][2]) flag = 0; if (c[2][1] + c[3][2] != c[2][2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157933/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157933/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #include<limits.h> int max(int a, int b){ return a >= b ? a : b; } int min(int a, int b){ return b >= a ? a : b; } int sei(int a){ return a>0 ? a : 0; } int factorial(int n) { if (n > 0) return n*factorial(n - 1); else return 1; } int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157984/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157984/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <string.h> #include <time.h> // #define int long long; int main() { int i, j, d1, d2, d3, d4; int c[3][3]; for(i=0; i<3; i++){ for(j=0; j<3; j++){ scanf("%d", &c[i][j]); } } d1=c[0][1]-c[0][0]; d2=c[0][2]-c[0][1]; d3=c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158033/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158033/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_PRIME (10000) int prime[MAX_PRIME + 1]; void make_prime(void) { int i; int j; int n; int c; for (i = 2; i * i <= MAX_PRIME; i++){ if (prime[i] == 0){ for (j = i * 2; j <= MAX_PRIME; j += i){ prime[j] = 1; } } } }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158077/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158077/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @prime = dso_local local_un...
#include <stdio.h> enum { BOUND = 10000 * 1010, MAXP = 1000 }; char notPrime[BOUND]; int conv[BOUND]; int countPower(int x, int n) { int res = 0; while(n % x == 0) { n /= x; res++; } return res; } void init() { int i, j; for(i = 1; i < BOUND; i++) conv[i] = 1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15812/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15812/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @conv = dso_local local_unnam...
#include<stdio.h> int main(){ int n,s[30010],i,j,k,a[15],b[1010],sum,ans=0,d[110]; char c; scanf("%d\n",&n); for(i=0;i<n;i++){ scanf("%c",&c); s[i]=c-'0'; } for(i=0;i<10;i++){ a[i]=0; } for(i=0;i<1000;i++){ b[i]=0; } for(i=0;i<100;i++){ d[i]=0; } for(i=0;i<n;i++){ if(ans=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158163/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,max; scanf("%lld",&n); max=(n*(n-1))/2; printf("%lld",max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158213/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158213/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; long long int ans = 0; scanf("%d",&N); for (int i = 1; i<N ; i++) { ans = ans + i; } printf("%lld\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158257/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158257/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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 <stdio.h> #include <string.h> #include <stdlib.h> #define eps 1e-8 #define oo 1000000000 #define pi 3.14159265359 #define zero(a) (abb(a)<=eps) #define lowbit(a) ((a)&(-(a))) #define abb(a) ((a)>0?(a):(-(a))) #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15830/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15830/source.c" target datalayout = "e-m:e-p270: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.case1 = type { i64, i...
#include <stdio.h> #include <string.h> #define MIN(A,B) (A)<(B)?(A):(B) #define MAX(A,B) (A)>(B)?(A):(B) #define N 200000 int main(){ long long int d; int n, a, b, c=0, i; int H[N]={0}; scanf("%d", &n); d=(long long int)n*(n-1)/2; printf("%lld\n", d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158343/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158343/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> long power(long m, long n); int main(void) { long n,kmax,i,ans[60]={0},k=0; scanf("%ld",&n); for ( i = 0; 1; i++) { if(power(2,2*i)>=abs(n)) break; } kmax=2*(i+1); if(n==0) ans[0]=0; else { i=0; while(n!=0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158394/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158394/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &n); int ans[1000]; int i = 0; if (n == 0) { printf("0\n"); return 0; } while (n != 0) { if (n % 2 == 0) ans[i] = 0; else { ans[i] = 1; n--; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158437/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158437/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> typedef long long int int64; typedef struct sushi{ int t,d; } node; int cmpSushi(const void *a,const void *b){ return -(((node *)a)->d-((node *)b)->d); } void run(void){ int n,k; scanf("%d%d",&n,&k); node *a=(node *)calloc(n,sizeof(node)); int i; for(i=0;i<n;i++) s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158480/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158480/source.c" target datalayout = "e-m:e-p270: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.sushi = type { i32,...
#include <stdio.h> int main(void){ long a,b,c; scanf("%ld %ld %ld", &a, &b, &c); long left; long right; right = c - a - b; if (right < 0) { printf("No\n"); return 0; } right = right*right; left = 4*a; left *= b; if (right > left) { printf("Yes\n"); } else { printf("No\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158530/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158530/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> typedef long long ll; ll a,b,c; int main(){ scanf("%lld%lld%lld",&a,&b,&c); ll x = 2*a*b; ll y = a*a+b*b+c*c; ll z = 2*c*(b+a); if(x < (y - z) && c-a-b > 0){ printf("Yes\n"); }else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158581/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158581/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <math.h> #define P 1000000007 int comp(const void *a, const void *b){return *(int*)a-*(int*)b;} int compw(const void *a, const void *b){return (*(int*)a>*(int*)b)-(*(int*)a<*(int*)b);} uint...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158624/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158624/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rep(i,n) for(int i=0;i<n;i++) int gcd(int a, int b){ int r=1; while(r!=0){ r=a%b; a=b; b=r; } return a; } typedef long long ll; void revStr(char* str){ int size = strlen(str); int i,j; ch...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { char *a = malloc(105*sizeof(char)), *b = malloc(105*sizeof(char)); scanf("%s %s", a, b); int x = strlen(a), y = strlen(b); if (x>y) puts("GREATER"); else if (x<y) puts("LESS"); else { int z = strcmp(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158718/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158718/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { double a,b; scanf("%lf",&a); scanf("%lf",&b); if(a>b) printf("GREATER\n"); else if(a<b) printf("LESS\n"); else printf("EQUAL\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158761/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158761/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[128], b[128]; scanf("%s %s", a, b); char *pa = a; char *pb = b; if (strlen(a) == strlen(b)) { while (*pa != '\0') { if (*pa > *pb) { puts("GREATER"); return 0; } else if (*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158811/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[102], b[102]; int i; scanf("%s", a); scanf("%s", b); if(strlen(a) > strlen(b)){ printf("GREATER\n"); return 0; } if(strlen(b) > strlen(a)){ printf("LESS\n"); return 0; } for(i = 0; a[i] != '\0'; i++){ if(a[i] + '0' > b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158862/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158862/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main(){ int a,b,c=0; double x=0,y=0,rad; while(1){ scanf("%d,%d",&a,&b); if(a==0&&b==0){ printf("%d\n%d\n",(int)y,(int)x); return 0; } rad=4*atan(1)*(90-c)/180; x+=a*sin(rad); y+=a*cos(rad); c+=b; } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158912/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158912/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, const char * argv[]) { int d,a; double x=0,y=0,rada; scanf("%d,%d",&d,&a); if(d==0&&a==0){ printf("%d\n",d); printf("%d\n",a); return 0; } rada=a*3.141592/180.0; y+=d; //printf("x:%lf y:%lf\n",x,y); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158956/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158956/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<stddef.h> #include<stdint.h> #define min(x, y) ((x<y) ? x : y) #define max(x, y) ((x<y) ? y : x) #define floop(x, y) for(long long int i = x; i < y; i++) #define floop2(x, y) for(long long int j = x; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15902/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
# include<stdio.h> # include<math.h> int main(){ int h,v,X,Y; double x,y,t,r,e; x=0,y=0,t=0,r=0; e = 2*M_PI / 360; while(1){ scanf("%d,%d",&h,&v); if(h==0 && v==0)break; x = x + (h*cos((90-r) * e)); y = y + (h*sin((90-r) * e)); r = r + v; } X = floor(x); Y = ceil(y); printf("%d\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159063/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159063/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> double toRad(int deg) { return ((deg / 180.0) * M_PI); } int main(void) { int dir = 90; int rotate, dist; double x, y; x = y = 0; while (scanf("%d,%d", &dist, &rotate), !(dist == 0 && rotate == 0)){ x += dist * cos(toRad(dir)); y += dist * sin(toRad(dir)); dir = (dir...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159106/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159106/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y; int tmp; scanf ("%d %d", &x, &y); if(x < y) { tmp = x; x = y; y = tmp; } while (y != 0) { tmp = x % y; x = y; y = tmp; } printf ("%d\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ /* Max is the greatest common divisor of two natural numbers x and y*/ int i, x, y, c, Max; scanf("%d %d", &x, &y); while(1){ if (x % y == 0) break; c = x%y; x = y; y = c; } printf("%d\n", y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sort(int *x,int *y); int GCD(int x,int y); int main(void){ int x,y; scanf("%d %d",&x,&y); sort(&x,&y); printf("%d\n",GCD(x,y)); return 0; } void sort(int *x,int *y){ if(*x<*y){ int temp=*x; *x=*y; *y=temp; } } int GCD(int x,int y){ while(x!=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159287/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159287/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x = 0,y = 0,blank; scanf("%d%d",&x,&y); if(x >= y){ while(y != 0){ blank = y; y = x % y; x = blank; } printf("%d\n",x); } if(y >= x){ while(x != 0){ blank = x; x = y % x; y = blank; } printf("%d\n",y); } retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159337/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y; scanf("%d %d", &x, &y); while(y){ if(y > x){ int tmp = y; y = x; x = tmp; } if(y){ int tmp = y; y = x % y; x = tmp; } } printf("%d\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,r=1; int v; scanf("%d%d",&x,&y); if(y>x){ v=x; x=y; y=v; } while(r!=0){ r=x%y; x=y; if(r!=0){ y=r; } } printf("%d\n",y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159423/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int y; int a; scanf("%d %d", &x, &y); a = x % y; while (a != 0){ x = y; y = a; a = x % y; } printf("%d\n", y); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159467/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159467/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t, i, n, j, a; scanf("%d", &t); for (i = 0; i < t; i++) { scanf("%d", &n); n /= 2; if (n % 2) puts("NO"); else { puts("YES"); for (j = 0, a = 2; j < n; j++, a += 2) printf("%d ", a); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15951/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15951/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 x, y, n, tmp; scanf("%lld %lld", &x, &y); if(x > y){ tmp = x; x = y; y = tmp; } n = x%y; while(n != 0){ x = y; y = n; n = x%y; } printf("%lld\n", y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159553/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159553/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,tmp; scanf("%d %d", &x, &y); if(x < y) { tmp = x; x = y; y = tmp; } while (y != 0) { tmp = y; y = x % y; x = tmp; } printf("%d\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159597/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159597/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp; scanf("%d%d", &a, &b); if(a<b){ tmp = a; a = b; b = tmp; } c = a % b; while(c!=0){ a = b; b = c; c = a % b; } printf("%d\n", b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159647/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, r; scanf("%d%d",&a,&b); while (b != 0) { r = a % b; a = b; b = r; } printf("%d\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159690/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159690/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int x,int y) { if(y>x) return gcd(y,x); if(y==0) return(x); /* x>=y??????y!=0 */ return gcd(y,x%y); } int main() { int x,y,z; scanf("%d %d",&x,&y); z=gcd(x,y); printf("%d\n",z); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159740/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159740/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y, key1, key2; scanf("%d%d",&x,&y); if(x < y) { key1 = x; x = y; y = key1; } key2 = x % y; while(key2 != 0) { x = y; y = key2; key2 = x % y; } printf("%d\n",y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159799/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159799/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int max, int min) { int w = 1; while (w) { w = max % min; if (w) { max = min; min = w; } } printf("%d\n", min); } int main() { int x, y, z; scanf("%d %d", &x, &y); if (x > y) { gcd(x, y); } else if (x < y) { gcd(y, x); } else { printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159841/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159841/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t; scanf("%d%d",&a,&b); if(a<b){ t=a; a=b; b=t; } for(;;){ if(b==0)break; t=a%b; a=b; b=t; } printf("%d\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159885/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159885/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x; int y; int r; scanf("%d",&x); scanf("%d",&y); while(y != 0){ r = x % y; x = y; y = r; } printf("%d\n",x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159935/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159935/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x = 0; int y = 0; int amari = 0; int syou = 0; int i = 0; scanf("%d%d",&x,&y); if(x < y){ while(1){ amari = y % x; if(amari == 0){ syou = x; break; } else{ y = x; x = amari; } } } if(x > y){ while(1){ amari = x % y; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159986/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 calGreatestCommonDiv(int, int); int main(void){ int x, y, ans; scanf("%d %d\n", &x, &y); ans = x >= y ? calGreatestCommonDiv(x, y) : calGreatestCommonDiv(y, x); printf("%d\n", ans); return 0; } int calGreatestCommonDiv(int n, int m){ if(n%m == 0){ return m; }else{ return calGreat...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160027/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cal(int a,int b){ return b ? cal(b,a%b):a; } int main(){ int a,b; double h; scanf("%d %d",&a,&b); while(a<1&&a>pow(h,9.0)&&b<1&&b>pow(h,9.0)){ scanf("%d %d",&a,&b); } printf("%d\n",cal(a,b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160070/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r,tmp; scanf("%d ",&a); scanf("%d",&b); if(a<b){ tmp = a; a = b; b = tmp; } r=a%b; while(r!=0){ a=b; b=r; r=a%b; } printf("%d\n", b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160113/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> typedef unsigned int U32; typedef unsigned char U08; #define INPUT_NUM_MIN 1 /* 入力値の範囲下限 */ #define INPUT_NUM_MAX 1000000000 /* 入力値の範囲上限 */ void SwapNum_Void(U32 *u32_x, U32 *u32_y); U32 CalcGcd_U32(U32 u32_x, U32 u32_y); /***************************************************************...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//BISMILLAHIR RAHMANIR RAHIM #include <stdio.h> #include <math.h> int main() { int t,n,i,sum; scanf("%d",&t); while(t--){ scanf("%d",&n); n=n/2; sum=0; int sum2=0; if(n%2!=0){ printf("NO\n"); continue; } printf("YES\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16020/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16020/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 gcd(int a, int b){ int r=a%b; while(r!=0){ a=b; b=r; r=a%b; } return b; } int main(void){ int a, b; scanf("%d %d", &a, &b); printf("%d\n", gcd(a, b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160272/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160272/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main() { int x, y; scanf("%d %d", &x, &y); printf("%d\n", gcd(x, y)); return 0; } int gcd(int x, int y) { int r = x % y; if (r == 0) { return y; } else { return gcd(y, r); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160315/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j; scanf("%d %d",&x,&y); if(x<y){ j = x; x = y; y = j; } i = x%y; while(i!=0){ x = y; y = i; i = x%y; } printf("%d\n",y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160366/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,y,n = 1; scanf("%d%d",&x,&y); if(1 > x || x > 1000000000 || 1 > y || y > 1000000000) exit(1); if(x == y) printf("%d\n",x); else if(x > y){ x = x % y; while(1){ n = y % x; if(n == 0){ printf("%d\n",x); break; } y = x; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160409/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int num,num1,num2,tmp; scanf("%d%d",&num1,&num2); if(num1 < num2){ tmp = num1; num1 = num2; num2 = tmp; } num = num1%num2; while(num != 0){ num1 = num2; num2 = num; num = num1%num2; } printf("%d\n",num2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160452/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160452/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,tmp; scanf("%d%d",&x,&y); if(x<y){ tmp = x; x = y; y = tmp; } d = x % y; while(d!=0){ x = y; y = d; d = x % y; } printf("%d\n", y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160502/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160502/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y, z, gcd; scanf("%d%d", &x, &y); if (x < y) { z = y; y = x; x = z; } while(1) { z = x % y; if (z == 0) { printf("%d\n", y); break; } x = y; y = z; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160546/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160546/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...