Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int main(void) { int x,a; scanf("%d",&x); a=x*x*x; printf("%d\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109181/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109181/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109224/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109224/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&i); printf("%d\n",i*i*i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109268/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109268/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109310/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109310/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 inp, ans; scanf("%d", &inp); ans = inp * inp * inp; printf("%d\n", ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109369/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109369/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d\n", a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109411/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109411/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109477/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109477/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d\n",a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109527/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109527/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109570/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109570/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num; scanf("%d", &num); printf("%d\n", num*num*num); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109613/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109613/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109664/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109664/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n; scanf("%d", &n); printf("%d\n",n*n*n); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109707/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109707/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cube(int x){ int y = 0; y = pow(x, 3); return y; } int main(void){ int num = 0; scanf("%d", &num); printf("%d\n", cube(num)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109758/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109758/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109808/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109808/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d; scanf("%d", &d); printf("%d\n", d*d*d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109866/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109866/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); x=x*x*x; printf("%d\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c; scanf("%d",&c); c = c * c * c; printf("%d\n",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109952/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109952/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int x; scanf("%d", &x); x = x * x * x; printf("%d\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109996/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109996/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110044/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110044/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a; scanf("%d", &a); printf("%d\n", a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110088/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110088/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d\n",a * a * a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110130/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110130/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#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_110174/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110174/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> #include<string.h> #define ll long long #define INF 1<<31-1 #define LNF 9223372036854775807 #define PI 3.14159265358979 #define MIN(x,y) ((x)<(y)?(x):(y)) #define MAX(x,y) ((x)<(y)?(y):(x)) #define FOR(i,a,n) for(i=a;i<n;i++) #define MOD 1000000007 //#define MOD 998244353 #define N...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110231/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110231/source.c" target datalayout = "e-m:e-p270: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.qwe = type { i64, i...
#include <stdio.h> #include <math.h> int main(void){ int N; scanf("%d", &N); int a[10]; for(int i=0; i<N; i++){ scanf("%d", a+i); } int num=0; // にている列の数 int odd=0, even=0; // a内の偶数、奇数の数 int extra=1; // 似ている列のうち積が奇数のもの num = (int) pow(3.0, N); for(int i=0; i<N; i++){ if(a[i]%2==0){ even++; } el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110275/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110275/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w[50000][3]; int main(){ int n,m,i,j,l,p[10000],c[10000],r=0; scanf("%d %d",&n,&m); while(scanf("%d %d %d",&w[r][0],&w[r][1],&w[r][2]), w[r][0]||w[r][1]||w[r][2])r++; scanf("%d",&l);//printf("%d\n",r); while(l--){ for(i=0;i<m;i++)scanf("%d",&c[i]); for(i=0;i<n;i++)p[i]=0; fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110318/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110318/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* AOJ 0076 * * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0076 * */ #include <stdio.h> #include <math.h> double f(double* ux, double* uy){ double vx, vy; vx = -*uy; vy = *ux; *ux += (vx / sqrt(vx*vx + vy * vy)); *uy += (vy / sqrt(vx*vx + vy * vy)); } int main(){ int n; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110369/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110369/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 y,z,d=0,k,i,j,n,a[110],b[110],c[210],x=0,l=0; while(1){ scanf("%d\n",&n); if(n==0){ break; } z=n,y=n; for(i=1;i<=n*2;i++){ c[i]=0; } for(i=0;i<n;i++){ scanf("%d\n",&a[i]); c[a[i]]++; } for(i=0;i<n;i++){ for(j=i+1;j<n;j++){ if(a[i]>a[j]){ k=a[i]; a[i]=a[j]; a[j]=k; } } } for(i=1;i<=n*2;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110477/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110477/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdbool.h> bool _input[100] = {}, _state[100] = {}; static int count_moves(int N, int rem) { // we start go left -> right, making sure cells have expected contents int ret = 0; bool cur_cell = (rem == 0); for(int i = 0 ; i < N ; ++i, cur_cell = !cur_cell) { if(_state[i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11052/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11052/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @_input = dso_local local_unn...
#include <stdio.h> int main(void){ int a,b,c; scanf("%d %d %d", &a, &b, &c); if (c >= a && c <= b) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110563/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110563/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdio.h> int main() { int a,b,c; while(~scanf("%d%d%d",&a,&b,&c)) { if(c>=a&&c<=b) printf("Yes\n"); else printf("No\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110606/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110606/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d %d",&a,&b,&c); if(c>=a&&c<=b) printf("Yes"); else printf("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110657/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110657/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a<=c){ if(c<=b){ printf("Yes\n"); return 0; } } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110707/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110707/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d%d",&a,&b,&c); if(a<=c && c<=b){ printf("Yes\n");} else{ printf("No\n");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110750/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110750/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d%d%d",&a,&b,&c); if(a <= c && c <= b){printf("Yes\n");}else{printf("No\n");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110794/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110794/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int in(void){ int i;scanf("%d",&i); return i; } long long llin(void){ long long i;scanf("%lld",&i); return i; } void chin(char s[]){ scanf("%s",s); } void print(int a){ printf("%d\n",a); } void llprint(long long a){ printf("%lld\n",a);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110844/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110844/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d %d",&A,&B,&C); if (C >= A&&C <= B) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110888/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110888/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a, b, c; scanf("%d %d %d", &a, &b, &c); if(c>=a&&c<=b) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110930/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110930/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define MAX(a,b) ((a)>(b)?(a):(b)) typedef struct point{ int x,y,r; } point; double distance(point a,point b){ double dx=a.x-b.x; double dy=a.y-b.y; double l=sqrt(dx*dx+dy*dy); return MAX(0,l-a.r-b.r); } void run(void){ point s,t; scanf("%d%d%d%d",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110974/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110974/source.c" target datalayout = "e-m:e-p270: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.point = type { i32,...
#include <stdio.h> #include <string.h> int main(){ char keitai[10][6],r[2000]; int tes,temp,s; size_t i,cnt; strcpy( keitai[1], "5.,!? " ); strcpy( keitai[2], "3abc" ); strcpy( keitai[3], "3def" ); strcpy( keitai[4], "3ghi" ); strcpy( keitai[5], "3jkl" ); strcpy( keitai[6], "3mno" ); strcpy( k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111023/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111023/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define MAX(x,y) ((x)>(y)?(x):(y)) #define MAX3(x,y,z) ((x)>(MAX(y,z)) ? (x):(MAX(y,z))) int main(){ int a, b, c, k, sum1=0, sum2=0; scanf("%d%d%d%d", &a, &b, &c, &k); sum1 = MAX3(a,b,c); sum2 = (a+b+c) - sum1; while(k>0){ sum1 *= 2; k--; } printf("%d", sum1+sum2); return 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111081/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111081/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, K; scanf("%d %d %d", &A, &B, &C); scanf("%d", &K); for (int i = 0; i < K ; i++) { if (A > B && A > C) { A *= 2; } else if (B > C) { B *= 2; } else { C *= 2; } } int sum = A + B + C...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111124/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111124/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <math.h> #include <stdio.h> int main() { int a, b, c, k, max; scanf("%d%d%d%d", &a, &b, &c, &k); max = a; if (max < b) max = b; if (max < c) max = c; printf("%d\n", a + b + c - max + (max * (int) pow(2, k))); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111168/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111168/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,i; scanf("%d %d %d",&a,&b,&c); scanf("%d",&k); for(i=0;i<k;i++){ if((a>b)&&(a>c))a=a*2; else if((b>a)&&(b>c))b=b*2; else if((c>a)&&(c>b))c=c*2; else a=a*2; } printf("%d",a+b+c); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111210/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111210/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k,sum=0,max=0,i; scanf("%d %d %d",&a,&b,&c); scanf("%d",&k); sum=a+b+c; max=a; if(max<b) max=b; if(max<c) max=c; sum-=max; for(i=0;i<k;i++) max*=2; printf("%d\n",sum+max); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111254/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111254/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j, v[3], k, ans = 0; scanf("%d %d %d %d", &v[0], &v[1], &v[2], &k); for(i = 0; i < k; i++){ int max = 0; for(j = 0; j < 3; j++){ if(v[j]>v[max]){ max = j; } } v[max] *= 2; } int sum = 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111298/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111298/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int n,m,k,s; scanf("%d %d", &n, &m); s = m; int max = s; int i[10000][2] = {}; for(k = 0; k < n; k++) { scanf("%d %d", &i[k][0], &i[k][1]); s += i[k][0]; s -= i[k][1]; if ( s < 0 ) { max = 0; break; } if ( max < s) ma...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111348/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111348/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(int x, int y){return x > y ? y : x;} int main(void){ int i, j, k; int h, w; int c[10][10]; int a[10], tmp; scanf("%d%d", &h, &w); for(i = 0; i < 10; i++){ for(j = 0; j < 10; j++){ scanf("%d", &c[i][j]); } } for(i = 0; i < 10; i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111391/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111391/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H_MAX 200 #define W_MAX 200 #define INF 9999 #define N 10 int main(void){ int h,w; int i,j,k; int c[N][N]; int a; int mp; scanf("%d %d",&h,&w); for( i=0; i<N; i++) for( j=0; j<N; j++){ scanf("%d",&c[i][j]); } for( k=0; k<N; k++){ for( j=0; j<N; j++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111434/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111434/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int max(int a, int b) { if (a >= b) return a; return b; } int main() { int a, b, c, d, e; int n, m; scanf("%d %d %d %d %d", &a, &b, &c, &d, &e); if (b % d) n = b / d + 1; else n = b / d; if (c % e) m = c /e + 1; else m = c / e; printf("%d\n", a - max(n, m)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111485/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111485/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,L,daya,dayb; scanf("%d",&L); scanf("%d",&A); scanf("%d",&B); scanf("%d",&C); scanf("%d",&D); if (A%C == 0){ daya = (A/C); }else{ daya = (A/C)+1; } if (B%D == 0){ dayb = (B/D); }else{ dayb = (B/D+1); } if(daya >= dayb){ printf("%d\n",L-daya); }els...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111528/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111528/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 L, A, B, C, D; scanf("%d%d%d%d%d", &L, &A, &B, &C, &D); if (A%C == 0)A = A / C; else A = A / C + 1; if (B%D == 0)B = B / D; else B = B / D + 1; printf("%d\n", L - (A > B ? A : B)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111571/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111571/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 day, jp_p, mt_p; int jp_d, mt_d; int jp, mt; scanf("%d %d %d %d %d", &day, &jp_p, &mt_p, &jp_d, &mt_d); if (jp_p % jp_d != 0){ jp = 1 + (jp_p / jp_d); } else { jp = jp_p / jp_d; } if (mt_p % mt_d != 0){ mt = 1 + (mt_p / mt_d); } else { mt = mt_p / mt_d; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111636/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111636/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,i; while(scanf("%d",&n) != -1){ i=0; for(a=0;a <= 9;a++){ for(b=0;b <= 9;b++){ for(c=0;c <= 9;c++){ for(d=0;d <= 9;d++){ if(a+b+c+d == n) i++; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111687/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111687/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int t, n[10005], m[10005], i, j, x; scanf("%d", &t); for(i=0; i<t; i++) scanf("%d%d", &n[i], &m[i]); for(i=0; i<t; i++) { x= (n[i]*m[i]+1)/2; printf("%d\n", x); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11173/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11173/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; int a, b, c, d; int count; while (scanf("%d", &n) != EOF){ count = 0; for (a = 0; a <= 9; a++){ for (b = 0; b <= 9; b++){ for (c = 0; c <= 9; c++){ for (d = 0; d <= 9; d++){ if (a + b + c + d == n){ count++; } } } } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111773/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111773/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,count=0; while(scanf("%d",&n)!=EOF){ for(a=0;a<10;a++){ for(b=0;b<10;b++){ for(c=0;c<10;c++){ for(d=0;d<10;d++){ if(a+b+c+d==n){ count++; } } } } } printf("%d\n",count); count=0; } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111823/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111823/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,n; while(scanf("%d",&n)!=EOF) { x =0; for(a=0;a<10;a++) { for(b=0;b<10;b++) { for(c=0;c<10;c++) { for(d=0;d<10;d++) { if ( a + b + c + d == n ) x++; } } } } printf( "%d\n", x ); } return...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111867/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111867/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc,char* argv[]){ int i,j,k,l; int count,num; while(scanf("%d",&num) != EOF){ count = 0; for(i = 0;i < 10;i++){ for(j = 0;j < 10;j++){ for(k = 0;k < 10;k++){ for(l = 0;l < 10;l++){ if((i+j+k+l) == num){count++;} } } } } printf("%d\n",c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111982/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111982/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n; int a,b,c,d; int count; int sum; while(scanf("%d",&n)==1){ count=0; if(n<=36){ for(a=0;a<=9;a++){ for(b=0;b<=9;b++){ for(c=0;c<=9;c++){ for(d=0;d<=9;d++){ sum=a+b+c+d; if(n==sum)count++; } } } } printf("%d\n",count);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112039/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112039/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int i,j,a,b; int n=1; int count=0; while(scanf("%d",&n)!=EOF) { count=0; for(i=0;i<=9;i++) { for (j=0;j<=9;j++) { for (a=0;a<=9;a++) { for (b=0;b<=9;b++) { if (n-a-b-i-j==0) { count++; } } } } } printf("%d\n",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112082/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 j; int k; int l; int pattern; while( scanf( "%d", &n ) != EOF ) { pattern = 0; for( i = 0; i <= 9; i++ ) { for( j = 0; j <= 9; j++ ) { for( k = 0; k <= 9; k++ ) { for( l = 0; l <= 9; l++ ) { if( i + j + k + l == n )pa...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112125/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112125/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i,j,k,l,n,cnt; while(scanf("%d",&n)!=EOF){ cnt=0; for(i=9;i>=0;i--){ for(j=9;j>=0;j--){ for(k=9;k>=0;k--){ for(l=9;l>=0;l--){ if(i+j+k+l==n){ cnt++; } } } } } printf("%d\n",cnt); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112169/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112169/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j,k,l,n; while(scanf("%d",&n)!=EOF){ int a=0; for(i=0;i<10;i++){ for(j=0;j<10;j++){ for(k=0;k<10;k++){ for(l=0;l<10;l++){ if(i+j+k+l==n){ a++; } } } } } printf("%d\n",a); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112211/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112211/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c, d; int sum; while (scanf("%d", &n) != EOF) { sum = 0; for (a = 0; a <= 9; a++) { for (b = 0; b <= 9; b++) { for (c = 0; c <= 9; c++) { for (d = 0; d <= 9; d++) { if (n == a + b + c + d) { sum++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112262/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112262/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#pragma region kyopuro_templates #pragma GCC optimize("Ofast") #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> #include<time.h> #include<ctype.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)f...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112305/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112305/source.c" target datalayout = "e-m:e-p270: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.node_AVL_set = type...
#include<stdio.h> int main(void){ int N; scanf("%d",&N); if(N % 2 == 1) printf("%d",N / 2 + 1); else printf("%d",N / 2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112349/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112349/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n; scanf("%d",&n); if(n%2==0) printf("%d",n/2); else printf("%d",n/2+1); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112392/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112392/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,y,z,i; scanf("%d",&a); x=a%2; y=a/2; if(x==0) { printf("%d\n",y); } else printf("%d\n",y+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112435/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112435/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &n); if (n % 2 == 0) { printf("%d", n/2); } else { printf("%d", (n+1)/2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112479/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112479/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, div, mod; scanf("%d", &n); div = n / 2; mod = n % 2; printf("%d", div + mod); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112521/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112521/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n,a,j,i; scanf("%d",&n); if(n%2!=0) a=n/2+1; else a=n/2; printf("%d\n",a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112565/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112565/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main (){ int n; scanf("%d", &n); if (n % 2 == 0) printf("%d\n", n/2); else printf("%d\n", n/2 + n%2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112615/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112615/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n; scanf("%d",&n); if (n%2==0) printf("%d",n/2); else printf("%d",n/2+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112659/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112659/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int j; // 整数の入力 scanf("%d", &i); if (i % 2 == 0) printf("%d\n", i / 2); else printf("%d\n", i / 2 + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112701/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112701/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; if(scanf("%d", &n)==EOF){return 1;} printf("%d\n",(n+1)/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112745/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112745/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n; scanf("%d",&n); if(n % 2 == 1) printf("%d\n",(n/2)+1); else printf("%d",n/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112789/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112789/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x[1001]; int sum; int i; while (1){ sum = 0; scanf("%s", x); #ifdef DEBUG printf("%s\n", x); #endif i = strlen(x) - 1; #ifdef DEBUG printf("!\n"); #endif while (i >= 0){ sum += x[i] - '0'; i--; } if (sum == 0){ break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112831/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112831/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> char a[1001]; int b[1000000]; int i; int i2; int owari=-1; int he(char a){ if(a=='0')return 0; if(a=='1')return 1; if(a=='2')return 2; if(a=='3')return 3; if(a=='4')return 4; if(a=='5')return 5; if(a=='6')return 6; if(a=='7')return 7; if(a=='8')return 8; if(a=='9')return 9; else return 0; } int main(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112875/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112875/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @owari = dso_local local_un...
#include <stdio.h> int main() { char num[1001]; int ans, i; for (;;) { scanf("%s", num); if (num[0] == '0') return 0; ans = 0; for(i = 0; num[i] != '\0'; i++) ans += num[i] - '0'; printf("%d\n", ans); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112918/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112918/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,s,i,j,n,sum; char x[1001]; while(1){ sum=0; scanf("%s",x); if(strcmp(x,"0")==0){ break; } for(i=0;x[i]!='\0';i++){ n=x[i]-'0'; sum+=n; } printf("%d\n",sum); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112969/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112969/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=1,i=0,ans=0; char w[1001]; while(1){ ans=0; scanf("%s",w); if(w[0]=='0') break; for(i=0;w[i]!='\0';i++){ ans+=w[i]-'0'; } printf("%d\n",ans); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113018/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113018/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void){ char s[2000001]; scanf("%s", s); int len = strlen(s); long long num=len,lap=0,a,b=0; for(int i=len-1;i>=0;i-=1){ if(s[i]=='W'){ a=(num-i-1)*lap; b+=a; lap++; num=i; } } printf("%lld", b+num*lap); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113076/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113076/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// AOJ 1195: Encryption System // 2017.12.8 bal4u@uu #include <stdio.h> #include <string.h> int n; char ans[50000][22]; char f['z'+1]; char buf[22], tmp[22], *p; void rec(char *p, char *s) { int t; char c; c = *p++; if (c < 'a') { memcpy(ans[n], tmp, s-tmp), ans[n++][s-tmp] = 0; return; } if (f[c] || c =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113126/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ans = dso_local global [50...
#include<stdio.h> int main() { int t, n; scanf("%d", &t); while(t--) { scanf("%d", &n); if(n%2==0) { printf("%d\n", n/2); } else { printf("%d\n", (n/2)+1); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11317/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11317/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { struct cards{ char suit; int value; } C1[100], C2[100], f; int i, j, n, mini, x=0; char ch; scanf("%d", &n); for(i = 0; i < n; i++){ ch = getchar(); C1[i].suit = getchar(); scanf("%d", &C1[i].value); C2[i] = C1[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113212/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113212/source.c" target datalayout = "e-m:e-p270: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.cards = type { i8, ...
#define dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__) #define dpri(x) dbg(#x ": %d\n", x) #define dprs(x) dbg(#x ": %s\n", x) #include <stdio.h> typedef long long ll; const int MYINF = 1e9+7; static char save_suit[64]; static int save_rank[64]; static int save_seq[64]; static char suit[64]; static int rank[64]; stat...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113256/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @MYINF = dso_local local_un...
#include <stdio.h> int main() { int t; scanf("%d", &t); while (t--) { int n; scanf("%d", &n); int height[n]; for (int i = 0; i < n; i++) scanf("%d", &height[i]); for (int i = 0; i < n; i++) { if (height[i] % 2 == 1) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1133/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> struct C{ int num; char c; }; int main(){ int n,i,j,tmp,min,flag=0; char tmpc; struct C card[36],out2[36]; scanf("%d",&n); for(i=0;i<n;i++){ scanf(" %c%d",&card[i].c,&card[i].num); out2[i].c=card[i].c; out2[i].num=card[i].num; } for(i=0;i<n;i++){ for(j=n-1;i<j;j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113342/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113342/source.c" target datalayout = "e-m:e-p270: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.C = type { i32, i8 ...
#include <stdio.h> struct Card { char suit; int value; }; void BubbleSort(struct Card C[], int N) { int i,j; struct Card dummy; for (i=0; i<N; i++) { for (j=N-1; j>=i; j--) { if(C[j].value < C[j-1].value) { dummy = C[j]; C[j] = C[j-1]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113386/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113386/source.c" target datalayout = "e-m:e-p270: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.Card = type { i8, i...
#include<stdio.h> #define MAX 36 #define True 1 #define False 0 typedef struct{ char c; int num; } card; void cardsort(card []); void select(card []); int search(card [],card []); int number; int main(){ int i,j; card data[MAX]; card data2[MAX]; scanf("%d",&number); for(i=0;i<number;i++) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113436/source.c" target datalayout = "e-m:e-p270: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.card = type { i8, i...
#include <stdio.h> #include <stdlib.h> int main() { long long t; scanf("%lld",&t); long long ans; while(t--) { long long n, r; scanf("%lld%lld",&n,&r); long long p = n/2; if( n > r) { ans = r*(1+r)/2; printf("%lld\n",ans); } else if( n <= r) { ans = (n-1)*n; ans /= 2; ans += 1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11348/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11348/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef struct{ char suit; int value; }card; int main() { int i, N, j, min, s; card x[36],y[36],k; scanf("%d",&N); for(i = 0; i < N; i++){ scanf(" %c%d",&x[i].suit, &x[i].value); } for(i = 0; i < N; i++) y[i] = x[i]; /* bubble */ for(i = 0; i < N; i++){ for(j = N...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113537/source.c" target datalayout = "e-m:e-p270: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.card = type { i8, i...
#include<stdio.h> typedef struct Card{ char suit; int value; int id; }card; void bubblesort(card c[],int n); void selectionsort(card c[],int n); void sorns(card c[],int n); int main(){ int N,i; scanf("%d",&N); card c1[N]; card c2[N]; for(i=0;i<N;i++){ scanf(" %c%d",&c1[i].suit,&c1[i].value); c1[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113580/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113580/source.c" target datalayout = "e-m:e-p270: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.Card = type { i8, i...
#include<stdio.h> #include<stdlib.h> #define NMIN 1 #define NMAX 36 struct Card{ char name; char value; }; void bubble(struct Card A[],int N){ int i,j; struct Card t; for(i=0;i<N;i++) for(j=N-1;j>=i;j--) if(A[j].value < A[j-1].value){ t = A[j]; A[j] = A[j-1]; A[j-1] = t; } } void sel...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113623/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113623/source.c" target datalayout = "e-m:e-p270: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.Card = type { i8, i...
#include <stdio.h> int main(void){ int N; int num[36]; int num_b[36]; int num_s[36]; int key_i; char num_name[36]; char num_name_b[36]; char num_name_s[36]; char key_c; int i,j,k,l = 0; int mini; char judge[5]; char judge_bc[5]; char judge_sc[5]; int judge_b = 0; int judge_s = 0; //Input Card...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113667/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113667/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(char[], char[]); int main(void) { int n, i, j, k, m; char a[101][2], b[101][2],tmp[2]; scanf("%d",&n); for(i = 0; i < n; i++) { scanf("%s",a[i]); for(k = 0; k < 2; k++) b[i][k]=a[i][k]; } for(i = 0; i < n; i++) { for(j = n - 1; j > i; j--) { if(a[j][1]<a[j - 1]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113724/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113724/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> struct card { char suit; int num; }; void swap (struct card *, struct card *); void print_a (struct card *, int); int equal_a (struct card *, struct card *, int); void bubble_sort (struct card *, int); void selection_sort (struct card *, int); int main (void) { int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113768/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113768/source.c" target datalayout = "e-m:e-p270: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.card = type { i8, i...
#include<stdio.h> #include<stdlib.h> typedef struct { char alpa; int value; }CARD; void babul(int ,CARD *); void sel(int, CARD *); void output(int, CARD *, CARD *); int main() { CARD *A,*B,*C; int n,i; scanf("%d", &n); A = malloc(n * sizeof(CARD)); B = malloc(n * sizeof(CARD)); C = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113810/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113810/source.c" target datalayout = "e-m:e-p270: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.CARD = type { i8, i...
#include<stdio.h> #include<string.h> struct card{ char b; char a; }; int check(struct card a[],struct card b[],int n){ int i,t=0; for(i=0;i<n;i++){ if(a[i].a==b[i].a&&a[i].b==b[i].b) t++; } if(t==n) return 1; else return 0; } void out(struct card A[],int n){ int i; for(i=0;i<n;i++){ if(i>0) pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113854/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113854/source.c" target datalayout = "e-m:e-p270: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.card = type { i8, i...
#include<stdio.h> struct Card{ char suit; char value; }; void bubble(struct Card A[], int n){ int i, j; struct Card t; for ( i = 0; i < n; i++ ){ for ( j = n-1; j >= i+1; j-- ){ if ( A[j].value < A[j-1].value ){ t = A[j]; A[j] = A[j-1]; A[j-1] = t; } } } } void selection(struct Card ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113898/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113898/source.c" target datalayout = "e-m:e-p270: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.Card = type { i8, i...