Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main() { int n,v,i,j,nit,current,flag; int a[55],cnt=0; for(i=0;i<55;i++) a[i]=-1; scanf("%d%d",&n,&v); // printf("%d\n",v); for(i=0;i<n;i++) { flag=1; scanf("%d",&nit); for(j=0;j<nit;j++) { scanf("%d",&current); //...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_42602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_42602/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(){ long int n,v; scanf("%ld%ld",&n,&v); long int k[n],s[n][50]; int i,j; for(i=0;i<n;i++){ scanf("%ld",&k[i]); for(j=0;j<k[i];j++){ scanf("%ld",&s[i][j]); } } int a[n],p=0; for(i=0;i<n;i++){ for(j=0;j<k[i];j++){ if(s[i][j]<v){ a[p]=i; p++; break; } } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_42646/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_42646/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int i; int A,B; scanf("%d %d",&A,&B); if(A>B) { A=1; for(i=1;i<=B;i++) A=A*i; printf("%d",A); } else { B=1; for(i=1;i<=A;i++) B=B*i; printf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_42697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_42697/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ar[1000000]; int a[1000000]; int cnt[100000]; int main() { int n,l,r; scanf("%d%d%d",&n,&l,&r); for(int i=1;i<=n;i++) { scanf("%d",&a[i]); if(l<=i&&i<=r) { cnt[a[i]]++; } } for(int i=1;i<=n;i++) { scanf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4274/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4274/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 n, k, m, i, con1, a[100100], ans = 0, p = 1; scanf("%d%d", &n, &k); while (k > 0) { k--; scanf("%d", &m); con1 = 0; for (i = 1; i <= m; i++) { scanf("%d", &a[i]); if (a[i] == 1) con1 = 1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_42790/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_42790/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<string.h> int main() { int len, z, o, i; char str[200005]; scanf("%d", &len); scanf("%s", str); //len=strlen(str); o=0; z=0; for(i=0; i<len; i++) { if(str[i]=='0') z++; else o++; } if(o<z) printf("%d\n", len-2*o);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_42833/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_42833/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> int main() { int length = 0; int ones = 0; int zeroes = 0; char str[200000]; scanf("%d" , &length); scanf("%s" , str); int counter = 0; for(counter = 0; counter < length; counter ++){ if(str[counter] == '1'){ o...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_42877/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_42877/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> char a[200010]; int main() { int n,i,b=0,c=0; scanf("%d",&n); scanf("%s",a); for(i=0;i<n;i++) { if(a[i]=='1') b++; else c++; } if(b>=c) printf("%d\n",b-c); else printf("%d\n",c-b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_42970/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_42970/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 partition(int number[],int i,int j) { int key; key=number[i]; while(i<j) { while(i<j&&number[j]>key) j--; if(i<j) { number[i]=number[j]; i++; } while(i<j&&number[i]<key) i++; if(i<j){ number[j]=numbe...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43012/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43012/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> void quicksort(int x[],int first,int last){ int pivot,j,temp,i; if(first<last){ pivot=first; i=first; j=last; while(i<j){ while(x[i]<=x[pivot]&&i<last) i++; while(x[j]>x[pivot]) j--; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43056/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43056/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { long long int a,b,x,y,z; scanf("%lld%lld%lld%lld%lld",&a,&b,&x,&y,&z); long long int yellow = 2*x + y - a; long long int blue = y + 3*z - b; long long int ans = (yellow<0?0:yellow) + (blue<0?0:blue); printf("%lld\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43106/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43106/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { long long ans=0,a,b,x,y,z,m,n; scanf("%I64d%I64d%I64d%I64d%I64d",&a,&b,&x,&y,&z); m=2*x+y-a; n=y+3*z-b; if(m>0) ans+=m; if(n>0) ans+=n; printf("%I64d",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43164/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43164/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#define MOD 998244353 #include <stdio.h> long long p[1000001] = { 0 }; int main() { int n; long long f = 1;; long long ans = 0; long long buf = 0; scanf("%d", &n); p[n] = 1; for (int i = n - 1; i >= 0; i--) { p[i] = p[i + 1] * (i + 1); p[i] %= MOD; } for (int i = 1; i <= n; i++) { f *= i; f %= ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @p = dso_local local_unnamed_...
#include <stdio.h> int main(void) { long long int i, n, x[1000], y[1000], a[1000], b[1000], p = 0, q = 0; scanf("%I64d", &n); for (i = 0; i < n; i++) { scanf("%I64d %I64d", &x[i], &y[i]); p += x[i]; q += y[i]; } for (i = 0; i < n; i++) { scanf("%I64d %I64d", ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main() { int r; int b; int y; int s; scanf("%d %d %d", &y, &b, &r); s = y > b ? (y > r ? y : r) : (b > r ? b: r); if (s == y) { if(b >= r) { printf("%d", (3 * r) - 3); } else { printf("%d", (3 * b)); } } else if (s ==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43294/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 y,b,r,uy,ub,ur; scanf("%d %d %d",&y,&b,&r); if(y<b && y<r) { if((r-y)==1) { uy=y-1; ub=y; ur=y+1; } else { uy=y; ub=y+1; ur=y+2; } } else if(y==b && y==r) { uy=y-2; u...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43337/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; int i,max=0,curr=0,exit,enter; scanf("%d", &n); for(i=0; i < n; i++) { scanf("%d%d",&exit,&enter); curr -= exit; curr += enter; if(curr > max) { max = curr; } } printf("%d\n",max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> struct time { char t[6]; int hour; int min; }; int main() { struct time t1,t2,t3; scanf("%s%s",t1.t,t2.t); t1.hour=(t1.t[0]-48)*10+(t1.t[1]-48); t1.min=(t1.t[3]-48)*10+(t1.t[4]-48); t2.hour=(t2.t[0]-48)*10+(t2.t[1]-48); t2.min=(t2.t[3]-48)*10+(t2.t[4...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43423/source.c" target datalayout = "e-m:e-p270: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.time = type { [6 x i8...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #define N 505 int main() { int i,j,k;int a,b,a1,b1; while(scanf("%d:%d %d:%d",&a,&b,&a1,&b1)!=EOF){ int shi=0,fen; fen=b-b1; if(fen<0){ fen=fen+60;shi=-1; } shi=shi+a-a1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43474/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { char s[10],t[10]; char p[10]; scanf("%s %s",&s,&t); int hs,ms,ht,mt; hs = s[0]*10+s[1]; ms = s[3]*10+s[4]; ht = t[0]*10+t[1]; mt = t[3]*10+t[4]; int hp,mp; if(ms >= mt) { mp = ms-mt; hp = hs-ht; } else { mp ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43517/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
/* Codeforces Good Bye 2016. Problem B, by Abreto. */ #include <stdio.h> #define GODIE fine=0;break int main(void) { int i = 0, n = 0; int ti = 0; char diri[8] = {0}; int depth = 0; int fine = 1; scanf("%d", &n); while(n--) { scanf("%d %s", &ti, diri); if( 0 == depth ) /* when at North Pole *...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43560/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43560/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int n, k, i; int a = 240; int ans = 0; scanf("%d %d", &n, &k); for (i = 1; i <= n; i++) { if (a - i * 5 >= k) { ans++; a -= i * 5; } } printf("%d\n", ans); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43603/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43603/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, t, i, count = 0, k = 0; char s[6]; scanf("%d", &n); for(i = 1; i <= n; i++) { scanf("%d", &t); scanf("%s", s); if(count == 0 && s[0] != 'S') { k = 1; } else if(count == 20000 && s[0] != 'N') { k = 1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43647/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,i,m,sum=1200; scanf("%d %d",&n,&m); for (i=1;i<=n;i++) { sum+=5*i; if (sum+m>1440) { i--; break; } } if (i>n) { i--; } printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43690/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43690/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 n,k,i,flag=0; int min=0; scanf("%d%d",&n,&k); for(i = 0; i < n; i++){ min = min + 5 * (i + 1); if((min + k) > 240) break; } printf("%d",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43733/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43733/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main() { int n,k,m=240,i,j,p=0,t=0,ou,c=0; while(scanf("%d%d",&n,&k)!=EOF) { ou = m - k; for(i=1;i<=n;i++) { p += i*5; if(p>ou) { break; } c++; } printf("%d\n",c); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43784/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43784/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(){ double ax,ay,bx,bz,cx,cy; scanf("%lf%lf%lf%lf%lf%lf",&ax,&ay,&bx,&bz,&cx,&cy); if(ax==bx){ if(ay>bz){ if(cx>ax){ printf("LEFT\n"); goto aaa; }else if(cx<ax){ printf("RIGHT\n"); goto aaa; }else{ printf("TOWARDS\n"); goto aaa...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43827/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43827/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 q; scanf("%d",&q); while(q--) { int l,r,d; scanf("%d %d %d",&l,&r,&d); if(d<l) { printf("%d\n",d); continue; } printf("%d\n",((r/d)+1)*d ); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43870/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43870/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int n,k; while(scanf("%d %d",&n,&k)==2){ int ara[n],i=0; for(;i<n;i++) {scanf("%d",&ara[i]);}///inputs ///operations if(k==0)printf("1\n"); else{ int candy=0,c=0,given=0; for(i=0;i<n;i++){ candy+=ara[i]; if(k-given>=8){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_43957/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_43957/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int n,k,t; scanf("%d%d%d",&n,&k,&t); if(n<t) printf("%d",k-(t-n)); else if(k>t) printf("%d",t); else if(k<=t)printf("%d",k); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_440/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_440/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr cons...
#include<stdio.h> int main() { int n,a[210],b[210],i,j,q,w,e,r,p; while(scanf("%d",&n)!=EOF) { p=0; for(i=0;i<n;i++) scanf("%d %d",&a[i],&b[i]); for(i=0;i<n;i++) { q=0;w=0;e=0;r=0; for(j=0;j<n;j++) { if(a[i]>a[j]&&b[i]==b[j]) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4405/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a,b,count=0,n,max,min,flag=0; scanf("%d %d",&a,&b); while(a!=0 && b!=0) { // printf("hi %d %d %d\n",a,b,count); if(b>a) { max=b; min=a; } else { max=a; min=b; } n=max-min; if(a==min) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44107/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44107/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, i, j, k, l, c = 0; scanf("%d %d", &n, &m); while(n-2 >= 0 && m-1 >= 0 || (n-1 >= 0 && m-2 >= 0)) { if(n > m) { n -= 2; m -= 1; c++; } else { if(n-1 >= 0 && m-2 >=0 ) { n -= 1; m -= 2; c++; } } } printf("%d\n", c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44165/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44165/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> long long min(long long a, long long b) { if (a < b) return a; else return b; } long long max(long long a, long long b) { if (a < b) return b; else return a; } int main ( int argc, char * a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44215/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44215/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t; scanf("%d", &t); while (t--) { int r, g, b, tmp; scanf("%d%d%d", &r, &g, &b); if (r < g) tmp = r, r = g, g = tmp; if (r < b) tmp = r, r = b, b = tmp; if (g < b) tmp = g, g = b, b = tmp; printf(r <= g + b + 1 ? "Yes\n" : "No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44259/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44259/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <stdio.h> #define N 100000 int main() { static int aa[N]; int n, i, max, min, cnt; scanf("%d", &n); max = 0, min = INT_MAX; for (i = 0; i < n; i++) { scanf("%d", &aa[i]); if (max < aa[i]) max = aa[i]; if (min > aa[i]) min = aa[i]; } cnt = 0; for (i = 0; i < n; i++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44309/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44309/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.aa = internal global [1...
#include<stdio.h> int main() { int d,l,v1,v2; scanf("%d %d %d %d",&d,&l,&v1,&v2); float ans= (float)(l-d)/(float)(v1+v2); printf("%f",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4436/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a[100001]; int b[100001]; int main() { long long int n,m,i,j,t,r,s,w,f; scanf("%lld %lld",&n,&m); int ara[1000000][2]; w=0; f=0; for (i=0;i<m;i++){ for (j=0;j<2;j++){ scanf("%lld",&ara[i][j]); } r=ara[i][0]; s=ara[i][1]; //printf("%d %d\n",a[r-1],b[s-1]); if (a[r-1]==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44402/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44402/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct linkedList{ int item; int flag; struct linkedList* next; }node; node* head,*tail; void insert(int data){ node* p=(node*)malloc(sizeof(node)); p->item=data; p->flag=0; p->next=NULL; if(head==NULL){ head=p; tail=p; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44453/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44453/source.c" target datalayout = "e-m:e-p270: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.linkedList = type { i...
#include<stdio.h> typedef long long ll; ll S(ll x){return x<0?-x:x;} int main() { ll k,a,b,c; scanf("%I64d%I64d%I64d",&k,&a,&b); c=a/k*k;while(c<a)c+=k;a=c; c=b/k*k;while(c>b)c-=k;b=c; printf("%I64d\n",b/k-a/k+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44497/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44497/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ans; int d,n,i,a; ans=0; scanf("%d",&d); scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a); if(i!=n-1) ans=ans+d-a; } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44598/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44598/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> int dd[101][101],n,d,a[101],ok,del[101],pro[101],res=0; int main() { scanf("%d%d",&n,&d); int i,j; int newline; // scanf("%d",&newline); for(i=0;i<n;i++){ scanf("%d",&a[i]); del[i]=0; } // printf("%d",n); for(i=0;i<n;i++) for(j=0;j<n;j++){ dd[i][j]= abs(a[i]-a[j]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44640/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44640/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @res = dso_local local_unname...
#include<stdio.h> #include<stdlib.h> #include<string.h> int main(){ int arr[101],i,sum=0,max=0,sub=0,temp; memset(arr,0,sizeof(arr)); for(i=0;i<5;i++){ scanf("%d",&temp); arr[temp]++; if(temp>max) max=temp; sum+=temp; } long x; for(i=1;i<=max;i++){ if(arr[i]>1){ x=arr[i]>3?3:arr[i]; if(x*i>sub)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44691/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44691/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,a,arr[105]={0},i,x,cnt=0; scanf("%d %d",&n,&a); for(i=1;i<=n;i++) scanf("%lld",&arr[i]); for(i=0; i<=n; i++){ if(((a-i)>=1)&&((a+i)<=n)){ if(i==0) cnt+=arr[a-i]; else if((arr[a-i]+arr[a+i]==2)||(arr[a-i]+arr[a+i]==0)) cnt+=arr[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44734/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44734/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main() { int a,b,c,d,e,t[101]={0},sum=0,i,max=0,num; scanf("%d %d %d %d %d",&a,&b,&c,&d,&e); sum=a+b+c+d+e; t[a]+=1; t[b]+=1; t[c]+=1; t[d]+=1; t[e]+=1; for(i=100;i>=1;i--) { if(t[i]>=3) { num=3*i; if(num>=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44792/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44792/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> int main(){ long n,a,i,length,maxlength; scanf("%ld",&n); int *array=malloc(n*sizeof(long)); for(i=0;i<n;i++){ scanf("%ld",&a); array[i]=a; } maxlength=1; length=1; for(i=1;i<n;i++){ if(array[i]>array[i-1]){ length++; if(length>maxlength)maxlength=length; } e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44835/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44835/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 MAX 100002 int main() { int n,i,a[MAX],p=0,b=0,m=1; scanf("%d ",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); if(a[i]>b) { p++; if(p>m) m=p; } else { p=1; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44879/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44879/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <math.h> #include <stdio.h> long long fast_input() { static long long j; static char c; j = 0; c = getchar(); while (c < '0' || c > '9') c = getchar(); while (c >= '0' && c <= '9') { j = (j << 3) + (j << 1) + (c - '0'); c = getchar(); } return j; } int main() { static long long a00, a01, a10, a1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44936/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44936/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @fast_input.j = internal unna...
#include<stdio.h> #include<stdlib.h> int main() { long long int n,b,d,sum=0,i,ans=0; scanf("%lld%lld%lld",&n,&b,&d); for(i=0;i<n;i++) { long long int j; scanf("%lld",&j); if(!(j>b)) { sum+=j; if(sum>d) { ans++; sum=0; } } } printf("%lld",ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_44994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_44994/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { float d,L,u,v; scanf("%f%f%f%f",&d,&L,&u,&v); float t; t=(L-d)/(u+v); printf("%f",t); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4508/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> #include <ctype.h> int main() { char str[101], sub[201]; int i, j=0; scanf("%s", str); for(i=0; i<101; i++) { char c; if(str[i] == '\0') { sub[j] = '\0'; break; } c = tolower(str[i]); if(!(c == 'a' || c == 'i' || c == 'u' || c == 'e' || c == 'o' || c == 'y') ) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45137/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45137/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 i,x,n,t,j,k; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&x); k=2*x; printf("%d\n",k); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45195/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45195/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,i; scanf("%d",&n); long long sh[n],w,h; long long mheight; for(i=0;i<n;++i) scanf("%I64d",&sh[i]); mheight=sh[0]; scanf("%d",&m); for(i=0;i<m;++i){ scanf("%I64d %I64d",&w,&h); if(sh[w-1]<=mheight){ printf("%I64d",mheight);mheight+=h; } else { printf("%I64d"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45238/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45238/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> char list[200005] = { 0 }; int list2[200005] = { 0 }; int GetNum(int len, int k) { return len / (1 + k); } int main() { int tt = 1; int len; scanf("%d", &tt); while (tt--) { int n, k; scanf("%d%d", &n, &k); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45289/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45289/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @list = dso_local global [200...
#include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> typedef float fl; typedef char ch; typedef long long ll; #define rep(i,a,n) for(i=a;i<n;i++) #define rev(i,n,a) for(i=n;i>=a;i--) #define repr(i,a,b) for(i=a;i<b;i++) #define s(n) scanf("%d",&n); #define s2(n,m) scanf("%d%d",&n,&m); #define s3...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45331/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45331/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t; scanf("%d", &t); while(t--) { int n; scanf("%d", &n); int a[n], ebuto=0, obute=0; for(int i=0; i<n; i++) { scanf("%d", &a[i]); if(i%2==0 && a[i]%2!=0) ebuto++; if(i%2!=0 && ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45425/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45425/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 MAXN 100 char name[MAXN][101]; int N, ok; int neigh_num[26]; int neigh[26][26]; int in_deg[26]; void add_edge(int a, int b) { if(a == 0) return; if(b == 0){ ok = 0; return; } a -= 'a'; b -= 'a'; neigh[a][neigh_num[a]] = b; neigh_num[a]++; in_deg[b]++; } int fifo_...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45519/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45519/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ok = dso_local local_unnamed...
#include <stdio.h> int IsPrime( int n ) { int r, i; for (i = 2; i <= n / 2; i++) { r = n / i; if ((float)n / i == r) return 0; } return 1; } int main() { int n, i = 1; scanf("%i", &n); while (IsPrime(n * i + 1)) i++; printf("%i", i); retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4557/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4557/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> #include<stdlib.h> #include<math.h> int main() { int n,i,maxi=0,sumr=0,suml=0,dif; scanf("%d",&n); struct lr { int l,r; }; struct lr arr[100000]; for(i=0;i<n;i++) { scanf("%d %d",&(arr[i].l),&(arr[i].r)); suml+=arr[i].l; su...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45634/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45634/source.c" target datalayout = "e-m:e-p270: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.lr = type { i32, i32 ...
#include<stdio.h> #include<string.h> char s[100001]; int main(){ int t; scanf("%d", &t); while(t--){ int a, b, p, i, len; scanf("%d %d %d %s", &a, &b, &p, s); len=strlen(s); for(i=len-2;i>-1;--i){ if(s[i]=='A' && p<a) break; if(s[i]=='B' && p<b) break; if(s[i]=='A') p-=a; if(s[i]=='B') p-=b; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45685/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45685/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> char vec[1001]; int main() { int n, x = 0, y = 0; int temp = 0; scanf("%d", &n); scanf("%s", vec); for (int i = 0; i < n; i++) { if (vec[i] == 'L') x--; if (vec[i] == 'R') x++; if (vec[i] == 'D') y--; if (vec[i] == 'U') y++; } if (x < 0) x *= -1; if (y < 0) y *= -1; printf("%d"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45728/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45728/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<string.h> int main() { char s[105]; int r,l,u,d,n,i,ans,ans1,total; while(~scanf("%d",&n)) { getchar(); scanf("%s",s); r=0,l=0,u=0,d=0; for(i=0;i<n;i++) { if(s[i]=='R') r++; else if(s[i]=='L') ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45779/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45779/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,max; scanf("%d",&n); int arr[n][n]; for(i=0;i<n;i++) arr[i][0]= arr[0][i] = 1; max = 1; //1 for(i=1;i<n;i++) { for(j=1;j<n;j++) //i,j { arr[i][j] = arr[i-1][j] + arr[i][j-1]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45829/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45829/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d",&n); if(n==1) printf("3"); else if(n==2) printf("4"); else if(n%2==1) printf("1"); else printf("%d",n-2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4588/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> #include <math.h> int isPrime(int x){ int i,b; b=sqrt(x); for(i=2;i<b;i++) if(x%i==0) return 0; return 1; } int main(void){ int i=1, n; scanf("%d",&n); while(isPrime(n*i+1))i++; printf("%d\n",i ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4593/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4593/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { long long int n, k, c; scanf("%I64d %I64d", &n, &k); c = n / k; if (c % 2 == 0) { printf("NO\n"); } else { printf("YES\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_45980/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_45980/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int main(void) { char c1, c2; int n1 = 1, n2 = 1; scanf("%c %c", &c1, &c2); switch (c1){ case '0': n1 = 2; break; case '1': n1 = 7; break; case '2': n1 = 2; break; case '3': n1 = 3; br...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46044/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46044/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 fun(int n1) { switch(n1) { case 0: return 2; case 1: return 7; case 2: return 2; case 3: return 3; case 4: return 3; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46088/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46088/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> int main() { long long int n,m; scanf("%lld %lld",&n,&m); long long int k; if(m>=n) { printf("%lld",n); return 0; } k = (-1 + sqrt(1 + 8*(n-m)))/2; if(k*(k+1) < 2*(n-m)) k++; printf("%lld",k+m); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46130/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46130/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { const int t = 4; const int c = 6; const int o = 8; const int d = 12; const int ico = 20; char buf[13]; int n; unsigned long long result = 0; scanf("%d", &n); for(int i = 0; i < n; i++) { scanf("%s", buf); if(buf[0] == 'T') result += t; else if(buf[0] == 'C') result...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46174/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46174/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<string.h> int main() { int face = 0; char T[12] = "Tetrahedron"; int t = 4; char C[6] = "Cube"; int c = 6; char O[12] = "Octahedron"; int o = 8; char D[14] = "Dodecahedron"; int d = 12; char I[14] = "Icosahedron"; int i = 20; //printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46217/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46217/source.c" target datalayout = "e-m:e-p270: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.T = private unn...
#include <stdio.h> #include<math.h> int main(){ int n,h,i; double x; scanf("%d %d",&n,&h); for (i=1;i<n;i++){ x=(double)sqrt(i)/(double)sqrt(n)*(double)h; printf("%.12f ",x); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46268/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46268/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> int main(){ int t; scanf("%d",&t); while(t--){ int n,m,k; scanf("%d%d%d",&n,&m,&k); int count=0,a=1,b=1; while(a<n){ a = a + 1; count += b; } while(b<m){ b = b+1; count+=a; } if(count == k) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46310/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46310/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int t; scanf("%d", &t); for (int i = 0; i < t; i++) { int n, m, k; scanf("%d %d %d", &n, &m, &k); int x = 1, y = 1; int res = (m - y) * x; y += m - y; res += (n - x) * y; if (res == k) printf("YES\n"); else printf("NO\n"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46354/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46354/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t,r,b,d; scanf("%d", &t); while(t--) { scanf("%d%d%d",&r,&b,&d); int m = (r>b ? b : r); int _r = (r>b ? r%b : b%r); int _q = (r>b ? r/b : b/r); if(_q-1>d){ printf("NO\n"); continue; } if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46398/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46398/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include <limits.h> #include <stdbool.h> int main() { int a,b,c,n,m,i,j,z; char str1[2000][30]; char str2[2000][30]; scanf("%d %d",&n,&m); for(i=0;i<(n+m);i++){ scanf("%s %s",str1[i],str2[i]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46440/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46440/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> int main() { int a[1000],i=1,n,j=0; scanf("%d",&n); do { if(i==1) a[j++]=1; else if(i==2) a[j++]=2; else { a[j]=a[j-1]+a[j-2]; j++; } i++; }while(a[j-1]<=n); j=0; for(i=1;i<=n;i++) { if(a[j]==i) { printf("O"); j++; } else printf("o");...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46484/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46484/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 argc, char const *argv[]) { int n; scanf("%d\n", &n); int a = 1; int b = 1; int i; char o[n+1]; o[n] = '\0'; for(i = 0; i < n; i++) { if(i + 1 == b) { a = (b += a) - a; o[i] = 'O'; } else { o[i] = 'o'; } } printf("%s\n", o); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46527/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46527/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<limits.h> #include<math.h> _Bool isPerfectSquare(int x) { int s = sqrt(x); return (s*s == x); } _Bool isFibonacci(int n) { return isPerfectSquare(5*n*n + 4) || isPerfectSquare(5*n*n - 4); } int main(){ int n; scanf("%d",&n); for(int i =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46570/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46570/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 digit(long long int a, long long int b){ if(b-a>=5) return 0; long long int i; int temp=1; for(i=a+1;i<=b;i++){ temp*= (i%10); temp%=10; } return temp; } int main(){ long long int a, b; scanf("%I64d",&a); scanf("%I64d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46613/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46613/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> int cmpfunc(const void* a, const void* b) { return (*(int*)a - *(int*)b); } int main(void) { int T, amount, min, max, money; int sum, spend; sum = spend = 0; int i; scanf("%d", &T); while (T--) { int temp[100] = { temp[99] = 0 }; scanf("%d%d%d%d", ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46657/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46657/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, c,e, k, s= 1,q,w; scanf("%d", &n); s = (n - 1)/2; q=(n+1)/2; for (k = 1; k <= q; k++) { for (c = 1; c <= s; c++) printf("*"); for (c = 1; c <= 2*k-1; c++) printf("D"); for (c = 1; c <= s; c++) printf("*"); s--; printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46707/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46707/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <stdbool.h> #include <math.h> #define MAX 10000010 int main() { int cases, i, j, n, count; //cases = readInt(); scanf("%d", &n); int star = (n - 1) / 2; int d = 1; int middle = n / 2; for (i = 0; i <= middle ; ++i) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46750/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46750/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,i,j; scanf("%d",&n); for(i=0;i<=n/2;i++){ for(j=0;j<(n/2)-i && j>=0;j++){ printf("*"); } for(j=0;j<(2*i + 1) && j<n;j++){ printf("D"); } for(j=0;j<(n/2)-i && j>=0;j++){ printf("*"); } printf("\n"); } for(i=n/2-1;i>=0;i--){ for(j=0;j<(n/2)-i && j>=0;j++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46800/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46800/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,i,a[1000][3],j,k=0,m; scanf("%d\n",&n); for(i=0;i<n;i++) { m=0; for(j=0;j<3;j++) { scanf("%d",&a[i][j]); m+=a[i][j]; } if(m>=2) k++; } printf("%d\n",k); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46844/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46844/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 l, r; scanf("%i %i", &l, &r); if (l == r) { printf("%i\n", l); } else { puts("2"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46888/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46888/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> char s[4]; int main() { int m; scanf("%d",&m); int n = m % 2; int k = m / 2; int flag = 0; while(k --) { if(k%2 == 0) { printf("aa"); flag = 1; } else { printf("bb"); flag = 2; } } if(n == 1) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46938/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46938/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(){ long int n,i; scanf("%ld",&n); int contA = 0; int contB = 0; for(i = 1; i <= n; i++){ if(contA<2){ printf("a"); contA++; } else if(contB<2 && contA==2){ printf("b"); contB++; } else { printf("a"); contA = 1; contB = 0; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_46989/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_46989/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
/***************************************************************** > File Name: cf448a.c > Author: Chen Ran<crccw@moonux.org> > Created Time: Thu 17 Jul 2014 10:02:05 PM CST ****************************************************************/ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47030/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47030/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(){ int a1, a2, a3, b1, b2, b3, n, count; scanf("%d %d %d %d %d %d %d", &a1, &a2, &a3, &b1, &b2, &b3, &n); count = (a1 + a2 + a3) / 5; if ((a1 + a2 + a3) % 5 != 0) count++; count += (b1 + b2 + b3) / 10; if ((b1 + b2 + b3) %...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47074/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47074/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> float ceilDiv(int a, int b) { float x = a, y = b; return ceil(x / y); } int main(void) { int a1, a2, a3, b1, b2, b3, n, N; scanf("%d", &a1); scanf("%d", &a2); scanf("%d", &a3); scanf("%d", &b1); scanf("%d", &b2); scan...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47131/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47131/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 find(int a, int b){ int mark[3] = {0, 0, 0}; int i; mark[a]++; mark[b]++; for(i=0; i<3; i++) if(mark[i] != 1) return i; } int main(){ int x[3], y[3]; int i, j; int share; for(i=0; i<3; i++) scanf("%d%d", &x[i], &y[i]); if(x[0] == x[1] && x[1] == x[2]){ printf("1"); return 0; } i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47175/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47175/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { long long unsigned int x,ans=1,i,one=0,tone=0,zero=0,m[108]; scanf("%I64d",&x); for(i=0;i<x;i++) { scanf("%I64d",&m[i]); if(m[i]==1) one++; } for(i=0;i<x&&tone<one;i++) { if(m[i]==0 && tone>0) zero++; else if(m[i]==1) { if(tone>0&&zero>0) ans*=zero+1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47218/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47218/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 x,i,j,ct; scanf("%d",&x); j = 5; ct = 0; while(x!=0) { i = x/j; ct+=i; x = x%j; j--; } printf("%d\n",ct); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47261/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47261/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 i,n,a,c,d; scanf("%d",&a); n=a/5; c=n*5; if(c<a) d=n+1; else d=n; printf("%d\n",d); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47311/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47311/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(void){ int q; scanf("%d", &q); while(q--){ int a, b, c, ret = 0; scanf("%d %d %d", &a, &b, &c); if(a > 0) ret++; if(b > 0) ret++; if(c > 0) ret++; if(a > b && a > c){ if(a > 1 && b > 1){ ret+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47355/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47355/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<stdint.h> #include<stdlib.h> int main() { char c; int na,ma,nb,mb,out,out1=0,x,y,x1,y1,i,j; scanf("%d%d",&na,&ma); int r1[na][ma]; for(i=0;i<na;i++) { scanf("%c",&c); for(j=0;j<ma;j++) { scanf("%c",&c); if(c=='0') r1[i][j]=0; else if(c=='1') r1[i][j]=1; } } sca...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47405/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 t; scanf("%d", &t); while(t--) { long long int d, n, flag = 0, i = 0, c, ans; scanf("%lld %lld", &n, &d); if(d <= n) { printf("YES\n"); continue; } c = (n - 1) / 2; while(c - i >= 0 && c + i <= n) { ans = c - i; if(ans + (long long in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_47456/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_47456/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 () { long long n, k, t; scanf("%lld %lld %lld", &n, &k, &t); if(t <= k) printf("%lld", t); else if(t <= n) printf("%lld", k); else if(t > n) printf("%lld", k - ( t - n )); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_475/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_475/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr cons...
#include<stdio.h> #include<string.h> int main() { char cur,pre; char s[200005]; int i,flag=0,flag1=0; scanf("%s",s); pre='A'; int len=strlen(s); for(i=0;i<len;i++) { cur=s[i]; if((cur==pre) && flag==1) { s[i-1]='A'; } else if( (cur==pre) && flag && flag1) { s[i-1]='A'; } else if( (cur==pre...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_4755/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_4755/source.c" target datalayout = "e-m:e-p270:32:32-p271: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...