Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(){ int h,w,i,j; while(1){ scanf("%d %d",&h,&w); if(h==0&&w==0)return 0; for(i=0;i<h;i++){ for(j=0;j<w;j++){ if(i%2==0){ if(j%2==0)printf("#"); else if(j%2!=0) printf("."); }else...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225339/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225339/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> char c[256]; char s[1000]; int main(){ int n,i,nm=0; scanf("%d %s",&n,s); for(i=0;i<n;i++){ if(s[i]<'A')continue; if(s[i]<='Z'){s[i]-='A';goto chk;} if(s[i]<'a')continue; if(s[i]>'z')continue; s[i]-='a'; chk: if(c[s[i]])continue; c[s[i]]=1; nm++; } printf(nm==26?"YES\n":"NO\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22539/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22539/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 cnt[50]; int main() { int n; scanf("%d",&n); char a[n]; int i; scanf("%s",a); for(i=0;i<n;i++) { if(a[i]>='A' && a[i]<='Z') cnt[a[i]-'A']++; else if(a[i]>='a' && a[i]<='z') cnt[a[i]-'a']++; } //char ch; for(i=0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22544/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22544/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #define LL long long #define INF 1<<31-1 #define LLINF 1<<63-1 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define MOD 1000000007 #define NUM 100001 void swap(int* x,int* y){ int tmp=*x;*x=*y;*y...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225483/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225483/source.c" target datalayout = "e-m:e-p270: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.P = type { [11 x i8...
#include <stdio.h> int main(void) { char s[20]; scanf("%s",s); s[5]=' '; s[13]=' '; printf("%s",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225540/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225540/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[20]; scanf("%s",s); s[13]=' '; s[5]=' '; printf("%s\n",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225584/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225584/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[20]; scanf("%s", str); str[5] = ' '; str[13] = ' '; printf("%s\n", str); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225627/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225627/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ char s[19]; scanf("%s",s); s[5]=' ' ; s[13]=' '; printf("%s\n",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225670/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225670/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ char s[20]; scanf("%s",s); s[5]=' '; s[13]=' '; printf("%s\n",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225764/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225764/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[20]; int i; scanf("%s",a); a[5]=' '; a[13]=' '; printf("%s\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225814/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225814/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int main() { int i,j,n,m,ans; scanf("%d%d",&n,&m); int cor[n]; int inc[m]; for(i=0;i<n;i++) { scanf("%d",&cor[i]); } for(i=0;i<m;i++) { scanf("%d",&inc[i]); } qsort (cor, n, sizeof(int),...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22588/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 type[200000]; int from[200000]; int go[200000]; int out[100001]; int main(void) { int i,j,k; int n; int l,maxl; int ans; scanf("%d",&n); for (i=1;i<=n;i++) scanf("%d",&type[i]); memset(go,0,sizeof(go)); for (i=1;i<=n;i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22593/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22593/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 int main(void){ ll a,b,c,max=0; scanf("%lld%lld%lld",&a,&b,&c); if(a+b < c)max = a+2*b+1; else max = b+c; printf("%lld",max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_225980/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_225980/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b,c; int oishii; scanf("%d %d %d",&a,&b,&c); if(a+b<c){ oishii=a+b+1+b; }else{ oishii=b+c; } printf("%d",oishii); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226022/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226022/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c; scanf("%lld%lld%lld", &a, &b, &c); if(c<=a+b+1) { printf("%lld\n", b+c); } else { printf("%lld\n", a+2*b+1); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226066/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226066/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[35],i,j,n; a[1]=1;a[2]=2;a[3]=4; while(1){ scanf("%d",&n); if(n==0)break; for(i=4;i<=n;i++) a[i]=a[i-1]+a[i-2]+a[i-3]; printf("%d\n",a[n]/365/10+1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226123/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226123/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c,k=0,a; scanf("%d%d",&n,&c); int i; for(i=0;i<c;i++){ scanf("%d",&a); k+=a; } if(k%(n+1)!=0) k+=(n+1); printf("%d\n",k/(n+1)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226174/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226174/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,i,x=0; scanf("%d%d",&n,&k); for(i=0;i<k;i++){ scanf("%d",&a); x+=a; } a=x/(n+1); if(x%(n+1)==0)--a; printf("%d\n",a+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226217/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226217/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, n, w, ans; scanf("%d %d %d", &n, &h, &w); ans=(n-h+1)*(n-w+1); printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226275/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226275/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int m,n,mina,maxa,minb,i,v,flag; scanf("%d%d",&n,&m); int a[n],b[m]; scanf("%d",&a[0]); mina=maxa=a[0]; for(i=1;i<n;i++) { scanf("%d",&a[i]); if(a[i]<mina) mina=a[i]; if(a[i]>maxa) maxa=a[i]; } scanf("%d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22634/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22634/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main (void) { int n, i,count = 0; int p[n]; scanf("%d",&n); for(i = 0;i < n;i++) scanf("%d",&p[i]); for(i = 1; i < n-1; i++) { if(p[i-1]<p[i]) { if(p[i]<p[i+1]) count ++; } else if(p[i-1]>p[i]) { if(p[i]>p[i+1]) count ++; } } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226383/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226383/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int ii; ii check(ii x,ii n,ii arr[]) { if(x==0||x==n-1) { return 0; } ii num =0; if(arr[x] > arr[x-1]) { num++; } if(arr[x] > arr[x+1]) { num++; } if(num == 1) { return 1; } else { return 0; } } ii main() { ii n; scanf("%d",&n); ii arr[21]; for(ii i=0;i<n;i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226426/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226426/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c, inc, corr[200],incorr[200],min,max,min_incorr,max_corr,i,j,flag=0; scanf("%d%d",&c,&inc); for(i = 0;i < c;i++) { scanf("%d",&corr[i]); } for(j =0;j < inc;j++){ scanf("%d",&incorr[j]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22647/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void){ int n,i,j; int p[n]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&p[i]); } j=0; for(i=0;i<n-2;i++){ if(p[i]<=p[i+1] && p[i+1]<p[i+2]){ j=j+1; } else if(p[i]>p[i+1] && p[i+1]>=p[i+2]){ j=j+1; } } printf("%d",j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226512/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226512/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1) int upll(const vo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226556/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226556/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int i, j, n, l[600000], p[600000], k, x, a, b, w, t[6000][2]; int main() { scanf("%d%d", &n, &k); for(i=0; i<n; i++) { scanf("%d", &x); l[i]=x; t[x][0]++; if(t[x][0]>k) { print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2266/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2266/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(void) { int n; scanf("%d", &n); int p[20]; int count = 0; for (int i = 0; i < n; i++) { scanf("%d", &p[i]); } for (int i = 0; i < n-2; i++) { if ((p[i + 1] > p[i] && p[i + 1] < p[i + 2]) || (p[i + 1]<p[i] && p[i + 1]>p[i + 2])) { count++; } } printf("%d",count); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226642/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226642/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 secsmall(int x, int y, int z) //is y second smallest { if((y < x || y < z) && (y > x || y > z)) return 1; else return 0; } int main() { int n; scanf("%d", &n); int arr[25]; for(int i=0; i<n; i++) { scanf("%d", &arr[i]); } int count=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226686/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226686/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int A,B,C,D; scanf("%d%d%d%d",&A,&B,&C,&D); if(A+B>C+D) { printf("Left"); } else if (A+B==C+D){ printf("Balanced"); } else { printf("Right"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226729/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226729/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,c,d; scanf("%d %d %d %d",&a,&b,&c,&d); if((a+b) > (c+d)) printf("Left"); else if((a+b) < (c+d)) printf("Right"); else printf("Balanced"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226772/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226772/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5]; int sumA,sumB,i=0; while(i<4){ scanf("%d",&a[i]); i++; } sumA = a[0]+a[1]; sumB = a[2]+a[3]; if(sumA > sumB) printf("Left\n"); else if(sumA < sumB) printf("Right\n"); else printf("Balanced"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226815/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226815/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b,c,d,left,right; scanf("%d %d %d %d",&a,&b,&c,&d); left=a+b; right=c+d; if(left==right) printf("Balanced\n"); else if(left>right) printf("Left\n"); else if(right>left) printf("Right\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226866/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226866/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h> #include <limits.h> #define inf (INT_MAX-1) #define INF 9223372036854775807 #define sq(n) ((n)*(n)) #define rep(i,n) for(i=0;i<n;i++) #define rev(i,n) for(i=n-1;i>=0;i--) #define sort(a,n) qsort(a,n,sizeof(TYPE),cmp) #defin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mod = dso_local local_unna...
#include<stdio.h> int main() { int a,b,c,d,x,y; while(scanf("%d %d %d %d",&a,&b,&c,&d)!=EOF) { x=a+b; y=c+d; if(x==y) printf("Balanced\n"); if(x>y) printf("Left\n"); if(x<y) printf("Right\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226952/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226952/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 X[]={1,0,-1,0}; int Y[]={0,1,0,-1}; int main(){ char d[300][300]={}; int n,i,j,k,c=0,t,r,x[100010],y[100010],ny,nx; scanf("%d",&n); for(i=0;i<n;i++){ for(j=0;j<n;j++)scanf(" %c",&d[i+1][j+1]); } for(i=0;i<n;i++){ for(j=0;j<n;j++){ if(d[i+1][j+1]=='x')continue; d[y[t...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_226996/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_226996/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @X = dso_local local_unname...
#include<stdio.h> int main () { int a,b,c,d,e,i,j,x,y; scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); i=a/b; j=a%b; if(j>0) { i=i+1; } x=a/d; y=a%d; if(y>0) { x=x+1; } i=i*c; x=x*e; if(i<x) { printf("%d\n",i); } if(i>x) { printf("%d\n",x); } if(i==x) { printf("%d\n",i); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227045/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227045/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,c; scanf("%d %d",&a,&b); if(a>b){ c=a-b; printf("%d\n",c); } else { c=b-a; printf("%d\n",c); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227089/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227089/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b,c; scanf("%d",&a); scanf("%d",&b); if(a<=b){ c=b-a; printf("%d\n",c); } else if(a>b){ c=a-b; printf("%d\n",c); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227131/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227131/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <string.h> #include <math.h> #include <limits.h> #define Max(a, b) ((a) > (b) ? (a) : (b)) #define Min(a, b) ((a) > (b) ? (b) : (a)) #define abs(x) ((x) > 0 ? (x) : -(x)) #define MOD (ll)1000000007 //10^9 + 7 #define endl printf("\n") typedef long lon...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227175/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227175/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if((a%2!=0) && (b%2!=0)) { printf("Odd\n"); } else{ printf("Even\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227225/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227225/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char buf[1000]; fgets(buf, sizeof(buf), stdin); sscanf(buf, "%d %d\n", &n, &m); if (n % 2 == 1 && m % 2 == 1) printf("Odd"); else printf("Even"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227269/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227269/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include<stdio.h> int main(void){ int a,b; scanf("%d",&a); scanf("%d",&b); if(a*b%2==0){ puts("Even"); }else{ puts("Odd"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227311/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227311/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0, b = 0; scanf("%d", &a); scanf("%d", &b); if((a * b) % 2 == 0) printf("Even\n"); else printf("Odd\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227355/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227355/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if((a*b)%2==0) { printf("Even\n"); } else { printf("Odd\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227399/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227399/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 firstinput; int nextinput; scanf("%d %d",&firstinput,&nextinput); if(firstinput % 2 == 0|| nextinput % 2 == 0){ printf("Even\n"); }else{ printf("Odd\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227441/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227441/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b; scanf("%d %d",&a,&b); if(a*b%2 == 0) printf("Even\n"); else printf("Odd"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227485/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227485/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); if ((a * b) % 2 == 0) { printf("Even"); } else { printf("Odd"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227528/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227528/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include "stdio.h" int main(){ int a, b; scanf("%d %d", &a, &b); if((a*b) %2 == 0){ printf("Even"); } else { printf("Odd"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227571/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227571/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); int temp = a*b; if(temp%2==0){ printf("Even"); }else{ printf("Odd"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227621/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227621/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); switch(a * b % 2){ case 0: printf("Even\n"); break; case 1: printf("Odd\n"); break; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227665/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227665/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,z,a,b,n; scanf("%d %d",&a,&b); if ((a*b)%2) printf("Odd"); else printf("Even"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227715/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227715/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans; char str[12]; // 10000 10000\n fgets(str, sizeof(str), stdin); sscanf(str, "%d %d", &a, &b); if ( ((a*b) % 2) == 1 ) printf("Odd"); else printf("Even"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227759/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227759/source.c" target datalayout = "e-m:e-p270: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> #include <stdlib.h> int a,b; int main(void){ scanf("%d %d", &a, &b); if(a%2 == 1 && b%2 == 1) printf("Odd"); else printf("Even"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227801/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227801/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b; scanf("%d %d\n",&a,&b); if(a*b%2){puts("Odd"); } else{ puts("Even"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227845/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227845/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b; scanf("%d %d",&a,&b); if(a*b%2==0) printf("Even\n"); else printf("Odd\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227889/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227889/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a*b%2==0)printf("Even\n"); else printf("Odd\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227931/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227931/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ float xa,ya,xb,yb,xc,yc,xd,yd; double a1,a2; double s,l,t,u; while(scanf("%f",&xa) != EOF){ scanf("%f%f%f%f%f%f%f",&ya,&xb,&yb,&xc,&yc,&xd,&yd); if(xa == xb && yd == yc){ printf("YES\n"); continue; } if(xd == xc && yb == ya){ printf("YES\n"); continue; } if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227982/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227982/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { float xa, ya, xb, yb, xc, yc, xd, yd; while (scanf("%f %f %f %f %f %f %f %f", &xa, &ya, &xb, &yb, &xc, &yc, &xd, &yd) != EOF) { if ((xb - xa)*(xd - xc) + (yb - ya)*(yd - yc) == 0) puts("YES"); else puts("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228039/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228039/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W,N; int i,j,k; scanf("%d %d",&H,&W); scanf("%d",&N); int a[N]; for(i=0;i<N;i++) scanf("%d",&a[i]); k=0; int tmp[300]; for(i=0;i<H;i++){ for(j=0;j<W;j++){ tmp[j]=k+1; if(--a[k]==0)k++;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228082/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int i; scanf("%d",&n); int a[n]; for(i=0;i<n;i++) { scanf("%d",&a[i]); } int min,max; min=a[0]; max=a[0]; for(i=1;i<n;i++) { if(a[i]<min) { min=a[i]; } if(max<a[i]) { max=a[i]; } } printf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228132/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228132/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,min = 1000,max = 0; scanf("%d",&n); int a[n]; for(int i = 0;i < n;i++){ scanf("%d",&a[i]); if(min > a[i]){ min = a[i]; } if(max < a[i]){ max = a[i]; } } printf("%d",max - min); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228176/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228176/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int descending_compare(const void *a, const void *b){ if (*(int*)a > *(int*)b){ return -1; }else if (*(int*)a == *(int*)b){ return 0; }else{ return 1; } } int ascending_compare(const void *a, const voi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228219/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228219/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int n,i,max,min; int house[200]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&house[i]); } min=10000; max=-1; for(i=0;i<n;i++){ if(house[i]<min){ min=house[i]; } } for(i=0;i<n;i++){ if(house[i]>max){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228262/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228262/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0; int n; scanf("%d", &n); int min = 1000; int max = 0; for (i = 0; i < n; i++) { int h = 0; scanf("%d", &h); if (max < h) max = h; if (min > h) min = h; } int c = max - min; printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228305/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228305/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, i, f, s, x=0, r; scanf("%d",&n); for(i=1;i<=n;i=i+2){ s=0; r=sqrt(i); for(f=1;f<=r;f++) if(i%f==0) s++; if((s==4)&&(i!=r*r)){ x++; } } printf("%d\n",x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228349/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228349/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int n,i,j,ans=0; scanf("%d",&n); for(i=1;i<=n;i+=2){ int cnt=0; for(j=1;j<=i;j++){ if(i%j==0) cnt++; } if(cnt==8) ans++; } printf("%d",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228392/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228392/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,j,m; int count=0; for(i=1;i<=N;i += 2){ m = 0; for(j=1;j<=N; j++){ if(i%j == 0){ m++; } } if(m == 8){ count++; } } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228435/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228435/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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.02 #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #define INF 1 << 29 #define LLINF 4545454545454545454 #define MOD 1000000007 #define ll long long #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) int upll(const void *a, const void *b) { return *...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228479/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228479/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,tem,res=0; scanf("%d",&num); for(int i=1;i<=num;i++) { tem=0; if(i%2==1) { for(int j=1;j<=i;j++) { if(i%j==0) { tem++; } } if(tem==8) res++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228521/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228521/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,can,ans; scanf("%d",&n); if(n<105){ printf("0"); return 0; }else{ for(int i=105;i<=n;++i){//調べられる数 if(i%2!=0){//奇数 for(int j=1;j<=i;++j){//調べる if(i%j==0){ can+=1; continue; } } } if(can...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228572/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228572/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); if(a>=195) printf("5\n"); else if(a>=189) printf("4\n"); else if(a>=165) printf("3\n"); else if(a>=135) printf("2\n"); else if(a>=105) printf("1\n"); else printf("0"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228622/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 o[51],e[51],s[101]; int i=0,j=0; scanf("%s%s",o,e); while(1){ s[j]=o[i]; j++; if(o[i]=='\0') break; s[j]=e[i]; if(e[i]=='\0') break; j++; i++; } s[j]='\0'; printf("%s\n",s)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228666/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str1[51]; char str2[51]; char str[102]; int k = 0; int j = 0; scanf("%s", str1); scanf("%s", str2); int y = strlen(str1); int x = strlen(str2); if(y == x){ for(int i = 0; i < y; ++i){ str[k] = str1[i]; k+=2; } k = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228716/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228716/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 o[55], e[55]; int i; scanf ("%s %s", o, e); for (i = 0; o[i] != '\0'; i++) { if (o[i] == '\0' && e[i] == '\0') break; else if (e[i] == '\0') printf ("%c", o[i]); else printf ("%c%c", o[i], e[i]); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228767/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228767/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,x,i,r,a[100005],y,p,q,sum; scanf("%d",&t); while(t--) { p=0; q=0; sum=0; y=0; scanf("%d%d",&n,&x); for(i=0;i<n;i++) { scanf("%d",&a[i]); sum=sum+a[i]%x; if(a[i]%x!=0) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22881/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22881/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 on[100]; char en[100]; int i; scanf("%s %s", on, en); for (i = 0; on[i] != '\0' && en[i] != '\0'; i++){ printf("%c", on[i]); printf("%c", en[i]); } if (on[i] != '\0'){ printf("%c", on[i]); } printf("\n"); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228860/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//set many funcs #include<stdio.h> #include<string.h> #include<stdlib.h> #define inf 1145141919 #define llinf 1145141919810364364 #define mod 1000000007 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<b){return a;}return b;} int round(int a,int b){if((a%b)*2 >= b){return (a/b)+1;}return a/b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228918/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228918/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdlib.h> int main() { int a; char s[11]; scanf("%d%s", &a, s); if(a>=3200){ printf("%s",s); }else{ printf("red"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228961/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228961/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[16]; if (scanf("%d",&a) != 1) return 1; if (scanf("%15s", s) != 1) return 1; puts(a >= 3200 ? s : "red"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229003/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229003/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[10]; scanf("%d",&a); if(a>=3200){ scanf("%s",s); printf("%s",s); } else{ printf("red"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229047/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229047/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main(){ int a; char s[100]; scanf("%d",&a); scanf("%s",s); if(a>=3200 && a<5000){ printf("%s",s); } else{ printf("red"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229090/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229090/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000]; int a; scanf("%d",&a); scanf("%s",b); if(a<3200){ printf("red\n"); } else{ printf("%s\n",b); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229133/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[11]; scanf("%d%s",&a,s); if(a<3200) printf("red\n"); else printf("%s\n",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229177/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 32767 int main(void) { int tab[100][101],i,j,n,m,ss,fs,t,c,index,min; long int profit=0; scanf("%d%d",&n,&m); for(i=0;i<m;i++) for(j=1;j<=n;j++) tab[i][j]=MAX; for(i=0;i<m;i++) { scanf("%d%d%d%d",&ss,&fs,&t,&c); for(j=ss;j<=fs;j++) tab[i][j] = t; ta...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22922/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22922/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void) { int a; scanf("%d", &a); char s[10]; scanf("%s", s); if (a < 3200) { printf("red"); } else { printf("%s", s); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229263/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229263/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[10]; scanf("%d",&a); scanf("%s",s); if(a<3200) printf("red"); else printf("%s",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229306/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229306/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(){ int dots, n, x; scanf("%d", &n ); dots = 1; x = 2; while( dots < n ) { dots += x; x++; } if( n == dots ) puts("YES"); else puts("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22935/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22935/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> #include<ctype.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define IN...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229393/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229393/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> // ルンルン数をスタックにpush void lunlunPush(unsigned long long num, unsigned long long* stack) { static int i = 0; // 桁が変わるごとにスタックをリセット if (num == 0) { i = 0; return; } stack[i] = num; i++; return; } // N桁の数のルンルン数をスタックに入れながら数え上げる int lunlunCount(int N, int start,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229436/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @lunlunPush.i = internal un...
#include <stdio.h> #define MAX (1000200) int v[MAX]; int main(void) { int i, j, k; int m, n; for (i = 1; i <= MAX; i *= 2){ for (j = 1; i * j <= MAX; j *= 3){ for (k = 1; i * j * k <= MAX; k *= 5){ v[i * j * k] = 1; } } } for (i = 1; i <= MAX; i++){ v[i + 1] += v[i]; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229487/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229487/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @v = dso_local local_unname...
#include <stdio.h> int solve(int arr[2]) { if(arr[0] == arr[1]) return arr[0] * 2; else if(arr[0] > arr[1]) return arr[0] * 2 - 1; else return arr[1] * 2 - 1; } int main() { int n; int arr[100][2]; scanf("%d", &n); for(int i = 0; i < n; i++){ scanf("%d%d", &arr[i][0], &arr[i][1]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22953/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22953/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部定数 #define D_SEGT_CNT 131072 // セグメントツリーデータ数 #define D_VAL_MAX 100000 // 最大値 // 内部変数 static int si1SegT[D_SEGT_CNT * 2]; // セグメントツリー(素数リスト) // 内部変数 - テスト用 #ifdef D_TEST st...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229573/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229573/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @si1SegT = internal unnamed...
#include<stdio.h> #include<stdlib.h> typedef struct splaNodee{ int t; int color; int vertex; int rad; } node; int cmp(const node *a,const node *b){ return a->t>=b->t; } typedef struct binaryHeap{ node *h; int heapSize; int (*cmp)(const node *,const node *); } heap; heap* newHeap(int maxSize,int (*cm...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229623/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229623/source.c" target datalayout = "e-m:e-p270: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.binaryHeap = type {...
#include<stdio.h> #include<string.h> //#include<stack> //#include<queue> //#include<algorithm> //using namespace std; long long i,t,n,flag,x,y,sum=0,ans=0; char a; //priority_queue<long long,vector<long long>,greater<long long> >s; int main(){ scanf("%lld",&t); scanf("%c",&a); while(t--){ x=0,y=0,ans=0; while...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22971/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22971/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @sum = dso_local local_unname...
#include<stdio.h> void call(int n); int cas, loop; int main(){ int n; cas = 0; loop = 1; scanf("%d", &n); call(n); } void call(int n){ int i = 1; int x; while(loop){ switch(cas){ case 0: // CHECK_NUM x = i; if(x%3==0){ printf(" %d", i); cas = 2; break; } cas = 1; break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229753/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229753/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @cas = dso_local local_unna...
#include<stdio.h> int main(void) { int i=1; int n,x,y; scanf("%d",&n); do{ x=i; y=x; if(x%3==0) printf(" %d",y); else do{ if(x%10==3){ printf(" %d",y); break; } }while(x/=10); }while(++i<=n); printf("\n"); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229803/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229803/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> void call(int n); int main(){ int n; scanf("%d", &n); call(n); return 0; } void call(int n){ int i = 1, x; do{ x = i; if (x % 3 == 0) printf(" %d", i); else { do { if (x % 10 == 3) { printf(" %d", i); break; } x /= 10; } while (x); } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229854/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229854/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n,i,x; scanf("%d",&n); for(i=1;i<=n;i++){ x=i; if(x%3==0){ printf(" %d",i); }else{ while(x!=0){ if(x%10==3){ printf(" %d",i); break; } x/=10; }}} printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229904/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n; int x; scanf("%d", &n); for(i=1; i<=n; i++){ x = i; if(x%3 == 0){ printf(" %d", i); } else if(x%10 == 3){ printf(" %d", i); } else { //printf("C%d\n", x); x /= 10; //printf("%d\n", x); while(x){ if(x%10 == 3){ printf(" %d", i); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229948/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x; int number; scanf( "%d", &n ); for( number = 1; number <= n; number++ ) { x = number; if( x % 3 == 0 ) { printf( " %d", number ); }else { while( x != 0 ) { if( x % 10 == 3 ) { printf( " %d", number ); break; } x = x...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229991/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229991/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...