Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main() { int r,c,a; scanf("%d%d",&r,&c); if(r>=2 && r<=100 && c>=2 && c<=100) { a=(r-1)*(c-1); printf("%d\n",a); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200126/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <limits.h> typedef long long ll; typedef unsigned int uint; #define si(x) scanf("%d", &x) #define sl(x) scanf("%ld", &x) #define sll(x) scanf("%lld", &x) #define sc(x) scanf("%c", &x) #define ss(x) scanf("%s", x) #define f(i, a, b) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20017/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20017/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 H,W; scanf("%d%d",&H,&W); int a[H+1][W+1]; int i,j; for(i=1;i<=H;i++){ for(j=1;j<=W;j++){ scanf("%d", &a[i][j]); a[i][j]=a[i][j]%2; } } int ans[H*W][4]; int k=0; for(i=1;i<=H;i++){ if(i%2==1){ for(j=1;j<=W;j++){ if(a[i][j]==1){ if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200212/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200212/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #define POS(i,j) ((i)*w+(j)) void assign(int *way,int a,int b,int c,int d){ way[0]=a; way[1]=b; way[2]=c; way[3]=d; return; } void run(void){ int h,w; scanf("%d%d",&h,&w); int *a=(int *)malloc(sizeof(int)*h*w); int i,j; for(i=0;i<h*w;i++) scanf("%d",a+i); in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200256/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_int(const void *a, const void *b){ if(*(int*)a > *(int*)b) return 1; return -1; } int main(){ int n; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } int zero_count=0; for(int i=0;i<n;i++){ i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200306/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200306/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l,n,p,i,j,k, max = 0; long long ans = 0; char s[2000]; int w[26]; scanf("%s", s); scanf("%d", &k); for (i = 0; i < 26; i++) { scanf("%d", &w[i]); } for (i = 0; i < 26; i++) { if (w[i]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20035/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20035/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
// abc134c: Exception Handling #include <stdio.h> #define upto(i,s,e,d) for(int i=(s);i<=(e);i+=(d)) #define downto(i,s,e,d) for(int i=(s);i>=(e);i-=(d)) #define in(n) scanf("%d",n) #define out(d) printf("%d\n",d) int search(int k, int *a, int n){ int l=0,r=n,m; while(l<r){ m=(l+r)/2; if(a[m]<k) r=m; else l=m+1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200407/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200407/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define pi acos(-1) int main(void) { double a, b, x; double s, ans; scanf("%lf%lf%lf", &a, &b, &x); s = x / a; if (s >= a * b / 2) ans = atan2((a * b - s) * 2 / a, a); else ans = atan2(b, 2 * s / b); printf("%.10f\n", ans * 360 / 2...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200450/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200450/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { double a,b,x; double theta,tangent; scanf("%lf%lf%lf",&a,&b,&x); if(x>=((a*a*b)/2)){ tangent = (2*b/a - 2*x/a/a/a); theta = atan(tangent)*(180/M_PI); } else{ tangent = (2*x/a/b/b); theta = 90 - atan(tangent)*(180/M_PI); } printf("%lf",theta); ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200494/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200494/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ double a,b,x,v,h,w; scanf("%lf %lf %lf",&a,&b,&x); v=a*a*b; if(x/v>=0.5){ h=(1-x/v)*b*2.0; printf("%.10lf",atan(h/a)*180/M_PI); }else{ w=2.0*x*a/v; printf("%.10lf",atan(b/w)*180/M_PI); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200537/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 g[9][9]; int i , j; for(i=0;i<8;i++){ scanf("%s" , g[i]); } printf("%d\n", 90); for(i=0;i<8;i++){ for(j=7;j>=0;j--){ printf("%c" , g[j][i]); } printf("\n"); } printf("%d\n", 180); for(i=7;i>=0;i--){ for(j=7;j>=0;j--){ printf("%c" , g[i][j]); } printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200588/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> char t1[1510]; char t2[1510]; int main(){ int n; int a=0,b=0; int i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s %s",&t1,&t2); if(strcmp(t1,t2)==0) a++,b++; if(strcmp(t1,t2)>0) a+=3; if(strcmp(t1,t2)<0) b+=3; } printf("%d %d\n",a,b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200652/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200652/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 Tarou[101]; char Hanako[101]; int n; int Tscore=0,Hscore=0; scanf( "%d", &n ); while( n-- ) { scanf( "%s", Tarou ); scanf( "%s", Hanako ); if( 0 == strcmp( Tarou, Hanako ) ) { Tscore+=1; Hscore+=1; } else if( 0 < strcmp( Tarou, Han...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200696/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200696/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #define MAX 101 int main(void) { int n, v, t = 0, h = 0; char tc[MAX], hc[MAX]; for(scanf("%d", &n); n--; v || (t++, h++)) { scanf("%s %s", tc, hc); v = strcmp(tc, hc); v && (*(v > 0 ? &t : &h) += 3); } printf("%d %d\n", t, h); retu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200739/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200739/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void) { int n, i; char t[101], h[101]; int t_p = 0, h_p = 0; int v; //??????????????¨. scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%s %s", t, h); v = strcmp(t, h); if (v > 0) t_p += 3; else if (v < 0) h_p += 3; else { t_p++; h_p+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200782/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { int n, i; int Tp = 0, Hp = 0; scanf("%d", &n); for(i=0; i<n; i++){ char Tw[1001] = {0}; char Hw[1001] = {0}; scanf("%s%s", Tw, Hw); if(strcmp(Tw, Hw)==0){ Tp++; Hp++; } else if(strcmp(T...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200825/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 T[100 + 1]; char H[100 + 1]; int n,tc,hc,i,j; scanf("%d",&n); tc = hc = 0; for (i = 0; i < n; i++) { scanf("%100s",T); scanf("%100s",H); j = 0; while (T[j] != '\0' && H[j] != '\0' && T[j] == H[j]) j++; if (T[j] == '\0' && H[j] == '\0') { tc++; hc++; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200883/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200883/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, const char * argv[]) { char a[101],b[101]; int n,i; int x=0,y=0; scanf("%d",&n); for(i=0; i<n; i++){ scanf("%s %s", a, b); if(strcmp(a,b) == 0) x++, y++; if(strcmp(a,b) > 0) x+=3; if(strcmp(a,b) < 0) y+=3; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_200926/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_200926/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p, c, n, i, a[301], k = -1; long long x; for(i = 0; i < 301; i++) a[i] = 0; scanf("%d%d", &p, &n); i = 1; while(n--){ scanf("%ld", &x); c = x % p; if(a[c] != 0 && k == -1) { k = i; } else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20097/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20097/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 n,taro=0,hanako=0,i; char t[101] = { 0 }, h[101] = {0}; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%s %s", t, h); if (strcmp(t, h) > 0) { taro += 3; } else if (strcmp(t, h) < 0) { hanako += 3; } else { taro++; hanako++; } } p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201019/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201019/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(){ int n, i, taro = 0, hana = 0; char s1[101], s2[101]; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%s %s", s1, s2); if ( strcmp(s1, s2) == 0 ) {taro++; hana++;} else if ( strcmp(s1, s2) > 0 ) taro += 3; else if ( strcmp(s1, s2) < 0 ) ha...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201062/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201062/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int i, j, n, taro_p = 0, hanako_p = 0; char taro[101], hanako[101]; scanf("%d", &n); for (i = 0; i < n; i++){ scanf("%s %s", taro, hanako); for (j = 0;; j++){ if (taro[j] > hanako[j]){ taro_p += 3; break; } else if (taro[j] < hanako[j]){ hanako_p += 3...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201105/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201105/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(void){ int p1=0,p2=0,i,n; char word1[101],word2[101]; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%s %s",&word1,&word2); if(strcmp(word1,word2)==0){ p1++; p2++; } if(strcmp(word1,word2)>0){ p1+=3; } if(strcmp(word1,word2)<0){ p2+=3; } } printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201149/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201149/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int i,n,k; scanf("%d%d",&n,&k); for(i=1;i<n-k;i++) printf("%d ",i); for(i=n;i>=n-k;i--) (i!=n-k)?printf("%d ",i):printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2012/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2012/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <inttypes.h> int H, W; char S[512][512]; int group[512][512]; int count[512 * 512][2]; void dfs(int y, int x, int mikisinn) { static const int d[4][2] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}}; int i; if (group[y][x] == mikisinn) return; group[y][x] = mikisinn; for (i = 0; i < 4; i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @group = dso_local local_un...
#include <stdio.h> int main(void) { int i,k,n,longest=0,emc=0; scanf("%d",&k); scanf("%d",&n); int a[n]; for(i=0;i<n;i++){ scanf("%d",&a[i]); if(i>=1&&a[i]-a[i-1]>longest) longest=a[i]-a[i-1]; } if((a[0]+(k-a[n-1]))>longest) longest=a[0]+(k-a[n-1]); emc=k-longest; printf("%d",emc);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201321/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #define BUFSIZE 1000000 int dis[BUFSIZE]={0}; int N,K; int cal(int start_pos){ if(start_pos == N + 1) return 0; if(start_pos == 1 ){ if(dis[N-1] - dis[0] > K - (dis[1] - dis[0])) return K - (dis[1] - dis[0]); else return ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201365/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dis = dso_local global [10...
#include <stdio.h> int main() { int kk, nn, max = -1; scanf("%d %d", &kk, &nn); int aa[nn], sa[nn]; for(int ii = 0;ii < nn;ii++) { scanf("%d", &aa[ii]); } for(int ii = 0;ii < (nn - 1);ii++) { sa[ii] = aa[ii + 1] - aa[ii]; } sa[nn - 1] = kk + aa[0] - aa[nn - 1]; for(int ii = 0;ii < nn;ii++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201408/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define MOD1 1000000007 #define MOD2 998244353 #define LIMIT1 200002 #define LIMIT2 500002 #define INF (1<<29)*2 typedef long long ll; typedef long double ld; typedef unsigned long long ull; #define ffor(i, a, b, c) for(i=a;i<=b;i+=c) #define...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201459/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201459/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dx = dso_local local_unnam...
#include <stdio.h> int main() { long long int k; int n; scanf("%lld%d", &k, &n); long long int array[n]; for(int i =0;i<n;i++) scanf("%lld", &array[i]); long long int differences[n]; long long int i; for( i = 0;i<n-1;i++) { differences[i] = array[i+1]- array[i]; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201501/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201501/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int a, int b) { if (a>b) return a; else return b; } int min(int a, int b) { if (a<b) return a; else return b; } int compare_int(const void *a, const void *b) { return *(int*)b - *(int*)a; } int main() { int k, n; scanf("%d %d", &k, &n); int a[n]; for(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201545/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201545/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ long k; int n; scanf("%ld %d",&k,&n); long a[n]; for(int i = 0;i < n;i++)scanf("%ld",&a[i]); long dif[n]; for(int i = 0;i < n-1;i++)dif[i] = a[i+1] - a[i]; dif[n-1] = a[0] + k - a[n-1]; long maxdif = 0; for(int i = 0;i < n;i++)maxdif = (maxdif>d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201589/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201589/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); float c=((float)a+(float)b)/3; float A=(float)a/3; float B=(float)b/3; if(c-(int)c== 0){ printf("Possible"); } else if(A-(int)A== 0){ printf("Possible"); } else if(B-(int)B== 0){ printf("Possible"); } else{ printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201631/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201631/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf(a % 3 == 0 || b % 3 == 0 || (a + b) % 3 == 0 ? "Possible\n" : "Impossible\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201682/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201682/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum; scanf("%d %d",&a,&b); sum=a+b; if(a%3==0){ printf("Possible\n"); } else if(b%3==0){ printf("Possible\n"); } else if(sum%3==0){ printf("Possible\n"); } else{ printf("Impossible\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201732/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201732/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%3==0||b%3==0||(a+b)%3==0){ printf("Possible"); } else{ printf("Impossible"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201790/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201790/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%3==0||b%3==0||(a+b)%3==0) puts("Possible"); else puts("Impossible"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201833/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201833/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a, b, sum; while(scanf("%d%d", &a, &b) == 2) { sum = a + b; if(sum % 3 == 0 || a % 3 == 0 || b % 3 == 0) { printf("Possible\n"); } else { printf("Impossible\n"); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201877/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201877/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int t; scanf("%d", &t); while (t--) { float n; scanf("%f", &n); int ar[100005]; long long sum = 0; for (int i = 0; i < n; i++) { scanf("%d", &ar[i]); sum = sum + ar[i]; } float max = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20192/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20192/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); if(a<0&&b<=0){ printf("%d\n",c*(b-a)); }else if(a<0&&b>0){ printf("%d\n",(-a)*c+d+b*e); }else{ printf("%d\n",(b-a)*e); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_201970/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_201970/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,e; scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); printf("%d\n",a<0 ? -a*c+d+b*e :(b-a)*e); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202012/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202012/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 student; while (scanf("%d", &student) != EOF){ printf("3C%02d\n", (student % 39 == 0) ? 39 : student % 39); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202056/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202056/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 candy; int n; while (scanf("%d", &candy) != EOF){ n = ((candy - 1) % 39) + 1; printf("3C%02d\n", n); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202106/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202106/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,m; struct element{ char name[101]; int cost; } *product; struct recipe{ char name[101]; int num_of_prod; char zairyo[100][101]; } *menu; void minimum_cost(int number); int main(void){ int i,j; char final[101]; while(scanf("%d",&n) && n){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202207/source.c" target datalayout = "e-m:e-p270: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.element = type { [1...
#include <stdio.h> int main(){ int densen[5]; for(int i=0; i<5; i++){ scanf("%d", &densen[i]); } int k; scanf("%d", &k); //全探索 int hasConnection = 0; //0でAllOK、1で通信できない for(int i=0; i<5; i++){ for(int j=0; j<5; j++){ if((densen[i] - densen[j]) > k) hasConnection = 1; } } if(ha...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a, b, c, d, e, k, ch=0; scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &k); int A[10]={a, b, c, d, e, k}; for(int i=0;i<5;i++){ for(int j=0;j<5;j++){ if((i!=j) && (A[i]>A[j]) && (A[i]-A[j] >= (k+1) )){ ch+=1; }else if((i!=j) && (A[i]<A[j]) && (A[j]-A[i]>=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,c,d,e,k; scanf("%d%d%d%d%d%d",&a,&b,&c,&d,&e,&k); if( e - a > k){ printf(":(\n"); }else{ printf("Yay!"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202337/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[6]; int k; for (int i=0; i<5; i++) { scanf("%d",&A[i]); } scanf("%d",&k); if(A[4]-A[0]>k){ printf(":(\n"); } else{ printf("Yay!\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, c, d, e, k; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); scanf("%d", &e); scanf("%d", &k); if ((e - a) <= k) printf("Yay!"); else printf(":("); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202423/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, e, k; scanf("%d%d%d%d%d%d", &a, &b, &c, &d, &e, &k); if (e - a > k) printf(":(\n"); else printf("Yay!\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202474/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int x[6]; int i,j; int n=0; for(i=0;i<6;i++){ scanf("%d",&x[i]); } for(j=4;j>0;j--){ if(x[j]-x[0]>x[5]) n++; } for(j=4;j>1;j--){ if(x[j]-x[1]>x[5]) n++; } for(j=4;j>2;j--){ if(x[j]-x[2]>x[5]) n++; } for (j=4;j>3;j--){ if(x[j]-x[3]>...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202524/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202524/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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], k; int i, j, tmp; for ( i = 0; i < 5; i++ ) { scanf("%d", &a[i]); } scanf("%d", &k); if ( a[4] - a[0] > k ) { printf(":(\n"); } else { printf("Yay!\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202568/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202568/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,e,k; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&e); scanf("%d",&k); int way[5]; way[0]=a; way[1]=b; way[2]=c; way[3]=d; way[4]=e; for(int i = 0;i < 5;i++){ for(int j = i;j < 5;j++)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202610/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202610/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(void){ int A,B,C,a,b,c,d,e,k,i,j,cou,v[1000000]; char S[100000]; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); scanf("%d",&e); scanf("%d",&k); if(e-a>k){ printf(":("); }else{ printf("Yay!"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202654/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202654/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 P[8][8],H,W,C,i,j,mv[5]={0,-1,0,1,0}; int ch(int p[8][8],int h,int w,int c,int nc) { int i,nh,nw,res=0; if(nc==-1)res++; if(p[h][w]==c) { p[h][w]=nc; for(i=0;i<4;i++) { nh=h+mv[i],nw=w+mv[i+1]; if(0<=nh&&0<=nw&&nh<H&&nw<W&&p[nh][nw]==c) { res+=ch(p,nh,nw,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202704/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mv = dso_local local_unnam...
#include<stdio.h> int main(){ int a,b,i,s,M[]={2,3,1,3,2,3,2,3,3,2,3,2,3}; char d[][10]={"Monday","Tuesday","Wednesday","Thursday", "Friday","Saturday","Sunday"}; while(scanf("%d %d",&a,&b),a||b){ for(i=s=0;i<a;i++)s+=M[i]; s+=b; printf("%s\n",d[s%7]); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202755/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202755/source.c" target datalayout = "e-m:e-p270: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.M = private u...
#include<stdio.h> int main(void){ int d, m, n, i; while ( 1 ){ scanf("%d %d", &m, &d); if ( m == 0) break; else if ( m == 1) d = d; else if ( m == 2 ) d = d + 31; else if ( m == 3 ) d = d + 31 + 29; else if ( m == 4 ) d = d + 31 + 29 + 31; else if ( m == 5 ) d = d + 31 +...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202799/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202799/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data[12] = {31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int month, day, i, result; while(1){ scanf("%d %d",&month,&day); if(month == 0 || day == 0){ break; } result = 0; for(i = 0; i < month-1; i++){ result += data[i]; } result ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202849/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202849/source.c" target datalayout = "e-m:e-p270: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.data = privat...
#include<stdio.h> int main(){ int mon,day,t,i; while(1){ scanf("%d%d",&mon,&day); if(!mon&&!day)break; t=0; for(i=1;i<mon;i++){ if(i==2)t+=29; else if(i==4||i==6||i==9||i==11)t+=30; else t+=31; } t+=day; switch(t%7){ case 0: printf("Wednesday\n"); break; case 1: printf("Thursday\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202913/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202913/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 month, day, days, nodiem[] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }, i; while ( scanf( "%d %d", &month, &day ) && month != 0 && day != 0 ) { days = 0; for ( i = 0; i < month - 1; i++ ) { days += nodiem[i]; } days += day; switch ( days % 7 ) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_202964/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_202964/source.c" target datalayout = "e-m:e-p270: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.nodiem = priv...
#include <stdio.h> #include <stdlib.h> int main(void) { int h,w; scanf("%d %d", &h, &w); long a[h][w],b[h][w]; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { scanf("%ld", &a[i][j]); } } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { scanf("%ld", &b[i][j]);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203006/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203006/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t, r, f, y; scanf("%lld", &t); while(t--) { scanf("%lld %lld", &a, &b); r=0; f=0; y=0; if(a==b) { printf("0\n"); y=1; } else if(a<b) { while(a<=b) { if(a*8<=b){ a=a*8; } else if(a*4<=b){ a=a*4; } el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20305/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20305/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(void){ long A,B; scanf("%ld%ld",&A,&B); long base; int i; if(A<B){ base=A; A=B; B=base; } long r; r=A%B; while(r!=0){ A=B; B=r; r=A%B; } long gcm=B; int count=1; if(gcm...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203093/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203093/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,h1,h2,k1,k2,H,K; scanf("%d%d%d%d%d%d%d%d",&h1,&h2,&k1,&k2,&a,&b,&c,&d); H=a*h1+h1/10*c+b*h2+h2/20*d; K=a*k1+k1/10*c+b*k2+k2/20*d; if(H>K) { printf("hiroshi\n"); } else if(H<K) { printf("kenjiro\n"); } else { printf("even\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203150/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203150/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h1,h2,k1,k2,a,b,c,d,x,y,x1,x2,y1,y2; scanf("%d %d",&h1,&h2); scanf("%d %d",&k1,&k2); scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); scanf("%d",&d); x1=h1*a; x2=k1*a; y1=h2*b; y2=k2*b; h1=h1/10*c+x1; h2=h2/20*d+y1; k1=k1/10*c+x2; k2=k2/20*d+y2; x=h1+h2; y=k1+k2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203194/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203194/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n,m,d[100],p,pp,s,a,b,c,i,j; while(scanf("%d",&n),n){ for(j=0;j<n;j++){ s=0; a=b=c=1; scanf("%d",&m); for(i=0;i<10;i++){ scanf("%d",&p); s+=p*a;//printf("!%d %d %d %d %d",s,i,a,b,c); if(p==10){ if(i<9){ b++; c++; } } a=b; b=c; c=1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203244/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203244/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 judge_triangle(int side1, int side2, int side3); int main(void) { int i, j, number;/*submitすると、"code.c: In function ‘main’: code.c:10:5: error: ‘for’ loop initial declarations are only allowed in C99 mode code.c:10:5: note: use option -std=c99 or -std=gnu99 to compile your code code.c:13:1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203288/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203288/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, n, a, b, c, temp; scanf("%d", &n); for(i=0; i<n; i++) { scanf("%d%d%d", &a, &b, &c); if(a > c) { temp = c; c = a; a = temp; } if(b > c) { temp = c; c = b; b = tem...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203345/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203345/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> //#define DEBUG #define MAX 20 #ifdef DEBUG #define DBGPRINTF(...) printf(__VA_ARGS__) #else #define DBGPRINTF(...) #endif int main( int argc, char *argv[] ) { int i, j, tmp, m[3], loopcount = 0, datanum, flag; char s[MAX]; scanf( "%d", &datanum ); if ( datanum...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203389/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203389/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int i; int a , b , c; scanf("%d" ,&N); for( i = 1 ; i <= N ; i++){ scanf("%d %d %d" , &a ,&b ,&c); if((a * a) + (b * b) == (c * c)){ printf("YES\n"); } else if ((a * a) - (c * c) == (b * b)){ printf("YES\n"); } else if((b * b) - (c * c) ==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203431/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203431/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],t,i,j,k,max,m; scanf("%d",&t); for(i=1;i<=t;i++) { for(j=0;j<3;j++) { scanf("%d",&a[j]); } if(a[0]>a[1]&&a[0]>a[2]) max=a[0]; else if(a[1]>a[2]&&a[1]>a[0]) { k=a[0]; a[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203482/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203482/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c,i; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d %d %d",&a,&b,&c); if(a*a+b*b==c*c){ printf("YES\n"); continue; } if(b*b+c*c==a*a){ printf("YES\n"); continue; } if(c*c+a*a==b*b){ printf("YES\n"); continue; } printf("NO\n"); } return 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203532/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203532/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int a,b,c,n; scanf("%d",&n); while(n>0){ scanf("%d %d %d",&a,&b,&c); if(a>=b && a>=c){ if(a*a==b*b+c*c)printf("YES\n"); else printf("NO\n"); } else if(b>=a &&b>=c){ if(b*b==a*a+c*c)printf("YES\n"); else printf("NO\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203576/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203576/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cnt, a, b, c, max; int i = 0; scanf("%d",&cnt); for (i; i < cnt; i++) { scanf("%d %d %d",&a,&b,&c); max = a; if(b > max) max = b; if(c > max) max = c; if (max == a) { if (a*a == b*b+c*c) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203619/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203619/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// Aizu Vol0 0003: Is it a Right Triangle? // 2017.7.28 #include <stdio.h> #include <ctype.h> #include <stdlib.h> int main() { int a, b, c, k; int i, n; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d%d", &c, &k); if (k > c) a = c, c = k; else a = k; scanf("%d", &k); if (k > c) b = a, a = c, c ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203662/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203662/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n; scanf("%d",&n); while(n>0){ scanf("%d %d %d",&a,&b,&c); if((a*a+b*b==c*c) || (c*c+b*b==a*a) || (a*a+c*c==b*b)) printf("YES\n"); else printf("NO\n"); n--; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203712/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203712/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pita(); int main(){ int num,length[2],longest,i,temp,unko; scanf("%d",&num); for (;num>0;num--){ longest=0; for(i=0;i<3;i++){ scanf("%d",&temp); if (temp>longest){ if (longest>0) length[i-1]=longest; longest=temp; }else{ length[i-1]=temp; } } unko=pita((d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203778/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203778/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, one, two, three; scanf("%d", &n); while(n!=0){ scanf("%d %d %d", &one, &two, &three); if((one*one)+(two*two)==(three*three)){ printf("YES\n"); }else if((one*one)+(three*three)==(two*two)){ printf("YES\n"); }else if((two*two)+(three*three)==(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203842/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203842/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,x; scanf("%d",&x); for(i=0;i<x;i++){ scanf("%d%d%d",&a,&b,&c); if(a==b || a==c || b==c){ printf("NO\n"); } else if(a*a==b*b+c*c){ printf("YES\n"); } else if(b*b==a*a+c*c){ printf("YES\n"); } else if(c*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203886/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203886/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 TRI (3) int isRightAngle(int a[]); int main() { int i, j, n, a[TRI]; scanf("%d", &n); for (i = 0; i < n; ++i) { for (j = 0; j < TRI; ++j) { scanf("%d", (a + j)); } if (!isRightAngle(a)) { puts("YES"); } else { puts("NO"); } } return 0; } int isRightAngle(i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203936/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203936/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 judge(int a, int b, int c) { return a == b + c || b == c + a || c == a + b; } int main() { int num; int a, b, c; scanf(" %d", &num); while (num--) { scanf(" %d %d %d", &a, &b, &c); printf("%s\n", judge(a * a, b * b, c * c) ? "YES" : "NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_203987/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_203987/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x[1000]={},y[1000]={},z[1000]={}; N=0; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d %d %d",&x[i],&y[i],&z[i]); } for(i=0;i<N;i++){ if(x[i]*x[i] == y[i]*y[i]+z[i]*z[i]){ printf("YES\n"); } else if(y[i]*y[i] == x[i]*x[i]+z[i]*z[i]){ printf("YES\n"); } else if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204029/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204029/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b,c; scanf("%d",&N); while(N>0){ scanf("%d %d %d",&a,&b,&c); if(a*a==b*b+c*c || b*b==c*c+a*a || c*c==a*a+b*b){ printf("YES\n"); } else{ printf("NO\n"); } N--; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204087/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204087/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a[1000],q,i,n,k,s; scanf("%d",&n); for(i=1;i<=n;i++) {s=0; scanf("%d",&t); for(k=1;k<=t;k++) scanf("%d",&a[k]); q=a[1]; for(k=1;k<=t;k++) {if(a[k]<=q) q=a[k]; } for(k=1;k<=t;k++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_20413/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_20413/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 sort(int data[], int length) { int i, j; int tmp; for (i = length; i > 0; i--) { for (j = 0; j < i - 1; j++) { if (data[j] > data[j + 1]) { tmp = data[j]; data[j] = data[j + 1]; data[j + 1] = tmp; } } } } int main(void) { int n; int data...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204180/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204180/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 kazu,a,b,c,z,i,kotae[1000]; scanf("%d",&kazu); for(z=1;z<=kazu;z++){ scanf("%d%d%d",&a,&b,&c); kotae[z]=0; if(a*a==b*b+c*c){ kotae[z]=1; goto a; } if(a*a+b*b==c*c){ kotae[z]=1; goto a; } if(a*a+c*c==b*b){ kotae[z]=1; goto a; } a:; } for(z=1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204230/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204230/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #include<stdlib.h> #include<string.h> #define max(x,y)(x>y?x:y) #define min(x,y)(x>y?y:x) typedef long long int ll; typedef unsigned long long int ull;; int asc_cmp(const void* X,const void* Y){int x=*(int*)X,y=*(int*)Y;if(x<y)return -1;else if(x==y)return 0;else return 1;} int desc_c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204274/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204274/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str.1 = private unnamed_a...
#if 0 cat <<EOF >mistaken-paste #endif // thx Ebi-chan! // #pragma GCC optimize("unroll-loops") // #pragma GCC optimize("O3") #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204317/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204317/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct.hwll = type { i64, ...
#include <stdio.h> #define Mod 1000000007 int main() { char S[100001]; scanf("%s", S); int i, j, k, l, tmp; long long dp[2][13] = {}; for (l = 0; S[l] != 0; l++); for (i = l - 1, tmp = 1, dp[1-i%2][0] = 1; i >= 0; i--, tmp = tmp * 10 % 13) { if (S[i] != '?') { k = S[i] - '0'; for (j = 0; j < 13; j++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204360/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204360/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mod 1000000007 int main(){ long long dp[16]={0},ndp[16]={0},l,i,j,k; char *s=malloc(sizeof(char)*131072); dp[0]=1; scanf("%s",s); l=strlen(s); for(i=0;i<l;i++){ for(j=0;j<13;j++){ for(k=0;k<=9;k++){ if(s[i]=='?' || s[i]==('0'...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204410/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204410/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,t,i=0; scanf("%d%d",&n,&d); while(t<n){ i++; t=(2*d+1)*i; } printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204454/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204454/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex4_1 potter0723sw */ #include <stdio.h> #include <math.h> int main(void) { float num,d;//小数点以下も考えたいのでfloat型 int answer; scanf("%f %f",&num ,&d); answer = ceil(num/(d * 2 + 1)); //監視員が見れるのは自分がいる木と周囲d本だから2d+1本見れる。 //監視範囲が被ってもいいことを考慮し小数以下切り上げ printf("%d\n", answer); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204498/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204498/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex4_1 riverstone*/ #include<stdio.h> #include<math.h> //math.h を include する。 int main(void){ double apple,range; scanf("%lf %lf",&apple,&range); //りんごの個数と監視の幅を入力 //1人の監視員は(監視の幅)×2+1のりんごを監視できるので、りんごの数をそれで割り切り上げる int watchmen = ceil(apple / (range*2 + 1)); printf("%d",watchmen); //監視員の人...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204540/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204540/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,k,c=1; scanf("%d%d",&n,&d); k=2*d+1; while(k<n){ k+=2*d+1; c++; } printf("%d",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204591/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204591/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 tree, range, watch, watcher; scanf("%d %d", &tree, &range); watch = 2*range+1; watcher = (int)((double)tree / (double)watch + 0.99999); printf("%d", watcher); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204634/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204634/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// AtCoder ABC134: B - Golden Apple // 2019.8.26 bal4u #include <stdio.h> int main() { int N, D; scanf("%d%d", &N, &D); printf("%d\n", (N-1)/(2*D+1)+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204678/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204678/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,D,i,j; scanf("%d",&N); scanf("%d",&D); i=2*D+1; j=N/i; if(N%i>0) { j=j+1; } printf("%d",j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204720/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204720/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, d; scanf("%d %d", &n, &d); int min = (n + 2*d)/(2*d+1); printf("%d", min); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204764/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204764/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void) { int left, right, n, d, ans =1; scanf("%d%d",&n, &d); left = 1; right = left + 2*d; while(right < n){ left = right +1 ; right = left + 2 *d; ans++; } printf("%d", ans); return EXIT_SUCCESS; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204807/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204807/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,D,a; scanf("%d",&N); scanf("%d",&D); a=N/(1+2*D); if(N%(1+2*D)>0) a++; printf("%d",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_204858/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_204858/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...