Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(){ int n,m=100000,i; scanf("%d",&n); for(i=0;i<n;i++){ m=m+m*0.05; if(m%1000!=0){ m=m/1000; m=m*1000+1000; } } printf("%d\n",m); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166537/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int i, n; int m = 100000; scanf("%d", &n); for(i=1; i<=n; i++) { m = (m * 1.05); if(m%1000 > 0) { m = m/1000 * 1000 + 1000; } } printf("%d\n", m); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166580/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166580/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i; int c=0; char s[101]; while(scanf("%s",s)!=-1){ for(i=0;i<strlen(s)/2;i++) if(s[i]!=s[strlen(s)-i-1]) break; if(i==strlen(s)/2) c++; } printf("%d\n",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166638/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166638/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c = 0, i, j, len; while(1){ char str[105] = {}, reverse[105] = {}; if(scanf("%s", str) == EOF) break; len = strlen(str); for(i = len;i >= 0;i--) sprintf(reverse, "%s%c", reverse, str[i]); if(strcmp(str, reverse)==0) c++; } printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166689/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166689/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, perkalian; scanf("%d", &a); perkalian = a*a*a; printf("%d", perkalian); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { long long int n; scanf("%lld",&n); printf("%lld",n*n*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166782/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main() { int a,b,n; scanf("%d",&a); b=pow(a,3); printf("%d\n",b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166825/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a; scanf("%d",&a); printf("%d",a*a*a); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166869/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166869/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
# include<stdlib.h> # include<stdio.h> int main() { int N = 0; scanf("%d", &N); printf("%d", N*N*N); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166911/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166911/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int N,K; scanf("%d",&N); K=N*N*N; printf("%d",K); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166955/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166955/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; long long int x; scanf("%d", &a); x = a*a*a; printf("%lld\n", x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166999/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166999/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, max; scanf("%d", &N); if(N > 9 || N < 1) printf("incorrect\n"); else{ max = N*N*N; printf("%d\n", max); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167040/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167040/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n; scanf("%d",&n); n=n*n*n; printf("%d",n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167091/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167091/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans; //パスワードの種類 scanf("%d", &N ); ans = N * N * N ; printf( "%d", ans ); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167134/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167134/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167178/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167178/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[101]; scanf("%s", s); for (i = 0; s[i] != 0; i++); printf("%c%d%c\n", s[0], i - 2, s[i-1]); fflush(stdout); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167228/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* ex6-2 Sagzar1993 */ #include <stdio.h> #include <string.h> #define SIZE 256 int main(void) { int length, mid; char words[SIZE]; //文字列の入力 fgets(words, SIZE, stdin); //改行を除く文字列の長さを取得 length = strlen(words) - 1; //先頭と語尾の間の文字数 mid = length - 2; putchar(words[0]); //先頭文字を出力 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167279/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167279/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
/* ex6_1 kosaq */ #include <stdio.h> #include <string.h> #define SIZE 101//十分な要素数 int main(void){ char string_s[SIZE];//入力に使う文字列を定義 int number_total;//全文字数を定義 scanf("%s", string_s);//文字列を入力 number_total = strlen(string_s);//全文字数は入力された文字列の長さに等しい printf("%c%d%c\n", string_s[0], number_...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167321/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101]; scanf("%s",s); int n = strlen(s); printf("%c%d%c\n",s[0],n-2,s[n-1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167365/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { char s[1002],h,m; int i,len,j,n; scanf("%s",s); n=0; len=strlen(s); for(j=0;j<len;j++){ if(j ==0){ m=s[j]; } else if(j==len-1){ h=s[j]; } }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167408/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <string.h> int main(void) { char s[256]; char first, last; int n; scanf("%s", s); n = strlen(s) - 2; first = s[0]; last = s[n+1]; printf("%c%d%c", first, n, last); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167451/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101]; scanf("%s",s); printf("%c%d%c",s[0],strlen(s)-2,s[strlen(s)-1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167495/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167495/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char s[110]; scanf("%s", s); printf("%c", s[0]); for (i = 0; s[i] != '\0'; i++) continue; printf("%d", i - 2); printf("%c", s[i - 1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167552/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167552/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,f; scanf("%d %d %d",&a,&b,&c); if( a <= b && b <= c ) d=a,e=b,f=c; else if (a <= c && c <= b ) d=a,e=c,f=b; else if (b <= a && a <= c ) d=b,e=a,f=c; else if (b <= c && c <= a ) d=b,e=c,f=a; else if (c <= a && a <= b ) d=c,e=a,f=b; else if (c <= b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167602/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap(int *a, int *b) { int temp; temp = *a; *a = *b; *b = temp; return; } int main(){ int a[3], i, j; scanf("%d %d %d", &a[0], &a[1], &a[2]); for(i = 0; i < 3; i++){ for(j = i; j < 3; j++){ if(a[i] > a[j]){ swap(&a[i], &a[j]); } } } printf("%d %d %d\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167646/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167646/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int *x,int *y) { if(*x>*y) { int t=*x; *x=*y; *y=t; } } int main() { int a,b,c; scanf("%d%d%d",&a,&b,&c); max(&a,&b); max(&a,&c); max(&b,&c); printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167732/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167732/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,c; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); int temp; if(a > b){ temp = a; a = b; b = temp; } if(a > c){ temp = a; a = c; c = temp; } if(b > c){ temp = b; b = c; c = temp; } printf("%d %d %d\n", a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167783/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167783/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3]; int change; register int i,s; scanf("%d %d %d",&a[0],&a[1],&a[2]); if(a[0] > a[1]){ change = a[0]; a[0] = a[1]; a[1] = change; } if(a[1] > a[2]){ change = a[1]; a[1] = a[2]; a[2] = change; } if(a[0] > a[1]){ change ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167826/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167826/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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--) { int n; scanf("%d", &n); printf("%d\n", n / 2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16787/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16787/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(int argc,const char * argv[]){ int a,b,c,tmp; scanf("%d %d %d",&a,&b,&c); if(a>b){ tmp=a; a=b; b=tmp; } if(a>c){ tmp=a; a=c; c=tmp; } if(b>c){ tmp=b; b=c; c=tmp; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167912/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167912/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ,z; scanf("%d %d %d", &a, &b, &c); if (a > b) { z = a; a = b; b = z; } if (b > c) { z = b; b = c; c = z; } if (a > b) { z = a; a = b; b = z; } printf("%d %d %d\n", a, b, c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167956/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167956/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); long long int a[n]; for(int i=0; i<n; ++i) a[i] = 0; long long int b[n]; for(int i=0; i<n/2; ++i) scanf("%I64d", &b[i]); a[0] = 0; a[n-1] = b[0]; for(int i=1; i<n/2; ++i) { if(b[i]<=b[i-1]) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr cons...
#include<stdio.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a < b) { if (b < c) { printf("%d %d %d\n", a, b, c); } else if (a < c) { printf("%d %d %d\n", a, c, b); } else { printf("%d %d %d\n", c, a, b); } } else { if (a < c) { printf("%d %d %d\n", ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168041/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168041/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,f; scanf("%d %d %d",&a,&b,&c); if(a>b){ d=a; a=b; b=d; } if(b>c){ e=b; b=c; c=e; } if(a>b){ f=a; a=b; b=f; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168085/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168085/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x; scanf("%d %d %d",&a,&b,&c); if (a > b) {x = a;a = b;b = x;} if (b > c) {x = b;b = c;c = x;} if (a > b) {x = a;a = b;b = x;} printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168142/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168142/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,y,z; scanf("%d%d%d",&a,&b,&c); if(a>b){ x=a; a=b; b=x; } if(b>c){ y=b; b=c; c=y; } if(a>b){ z=a; a=b; b=z; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168186/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168186/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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]; int b,i,j; scanf("%d %d %d", &a[0], &a[1], &a[2]); for (i = 0; i < 2; i++){ for (j = 0; j<2; j++){ if (a[j]>a[j + 1]){ b = a[j]; a[j] = a[j + 1]; a[j + 1] = b; } } } for (j = 0; j < 2 ;j++){ printf("%d ", a[j]); } printf("%d\n",a[2]); re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168229/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168229/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 su[3],a,hako; for(a=0;a<3;a++) { scanf("%d",&su[a]); } if(su[0]>su[1]) { hako=su[0]; su[0]=su[1]; su[1]=hako; } if(su[1]>su[2]) { hako=su[1]; su[1]=su[2]; su[2]=hako; } if(su[0]>su[1]) { hako=su[0]; su[0]=su[1]; su[1]=hako; } printf("%d %d %...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168272/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168272/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3]; int i, j; int temp; for(i = 0; i < 3; ++i) scanf("%d", &a[i]); for(i = 0; i < 3 - 1; ++i){ for(j = i + 1; j < 3; ++j){ if(a[i] > a[j]){ temp = a[i]; a[i] = a[j]; a[j] = temp; } } } printf("%d %d %d\n", a[0], a[1],...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168322/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168322/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t; scanf("%d %d %d",&a,&b,&c); if(a>b){ t=b; b=a; a=t; } if(b>c){ t=c; c=b; b=t; } if(a>b){ t=b; b=a; a=t; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168366/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t; scanf("%d %d %d",&a,&b,&c); if(a>b){ t = a; a = b; b = t; } if(c<b){ t = b; b = c; c = t; } if(a>b){ t = a; a = b; b = t; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168409/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void swap(int *nx,int *ny){ int temp=*nx; *nx=*ny; *ny=temp; } void sort3(int *n1,int *n2,int *n3){ if(*n1>*n2) swap(n1,n2); if(*n2>*n3) swap(n2,n3); if(*n1>*n2) swap(n1,n2); } int main(void){ int a,b,c; scanf ("%d %d %d", &a, &b, &c); sort3(&a, &b, &c); printf("%d %d %d\n", a, b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168452/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168452/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int tmp,i,j; scanf("%d %d %d",&a,&b,&c); if(a>b) { tmp = a; a = b; b = tmp; } if(a>c) { tmp = a; a = c; c = tmp; } if(b>c) { tmp = b; b = c; c =tmp; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168517/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <= b && b <= c){ printf("%d %d %d\n",a,b,c); } else if(a <= c && c <= b) { printf("%d %d %d\n",a,c,b); } else if(b <= a && a <= c){ printf("%d %d %d\n",b,a,c); } else if(b <= c && c <= a){ printf("%d %d %d\n",b,c,a); } else if(c <= a &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168560/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168560/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, temp; scanf("%d %d %d", &a, &b, &c); if(a > b) { temp = a; a = b; b = temp; } if(b > c) { temp = b; b = c; c = temp; } if(a > b) { temp = a; a = b; b = temp; } printf("%d %d %d\n",a ,b ,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168610/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168610/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,z,i; scanf("%d %d %d",&a,&b,&c); for(i=0;i<6;i++) if(a>b){ z=b,b=a,a=z,z=0; } if(a>c){ z=c,c=a,a=z,z=0;} if(b>c){ z=c,c=b,b=z,z=0;} printf("%d %d %d\n",a,b,c); return 0;}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168654/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168654/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<b) {if(b<c) printf("%d %d %d\n", a,b,c); else if(a<c) printf("%d %d %d\n",a,c,b); else printf("%d %d %d\n",c,a,b); } else {if(a<c) printf("%d %d %d\n",b,a,c); else if(b<c) printf("%d %d %d\n",b,c,a); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168698/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168698/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int n1, n2, n3; scanf("%d %d %d",&a,&b,&c); if (a<=b && a<=c) { n1 =a; if (b<=c) {n2 = b; n3 = c;} else {n2 = c; n3 =b;} } if (b<=a && b<=c) { n1 =b; if (a<=c) {n2 = a; n3 = c;} else {n2 = c; n3 =a;} } if (c<=b && a>=c) { n1 =c; if (a<=b) {n2 = a;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168740/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168740/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b,c,tmp; scanf("%d%d%d",&a,&b,&c); if(a > b){ tmp = a; a = b; b = tmp; } if(b > c){ tmp = b; b = c; c = tmp; } if(a > b){ tmp = a; a = b; b = tmp; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <= b&&b <= c) printf("%d %d %d\n",a,b,c); else if(a <= c&&c <= b) printf("%d %d %d\n",a,c,b); else if(b <= a&&a <= c) printf("%d %d %d\n",b,a,c); else if(b <= c&&c <= a) printf("%d %d %d\n",b,c,a); else if(c <= a&&a <= b) printf("%d %d %d\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a0, a1, a2, a3; scanf("%d%d%d%d", &a0, &a1, &a2, &a3); printf(a0 == a1 + a2 + a3 || a1 == a2 + a3 + a0 || a2 == a3 + a0 + a1 || a3 == a0 + a1 + a2 || a0 + a1 == a2 + a3 || a0 + a2 == a3 + a1 || a0 + a3 == a1 + a2 ? "YES\n" : "NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1689/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1689/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include<stdio.h> int main(){ int a, b ,c ,max,min,middle; scanf("%d %d %d", &a, &b, &c); max = a; if (b >= max) { middle = a; max = b; } else { middle = b; } if (c >= max){ min = middle; middle = max; max = c; } else if (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168964/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168964/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int num[3]; scanf("%d %d %d", &num[0], &num[1], &num[2]); int flag = 0; int temp = 0; while (flag == 0) { flag = 1; for (int i = 0; i < 2; i++) { if (num[i + 1] < num[i]) { temp = num[i + 1]; num[i + 1] = num[i]; num[i] = temp; flag = 0; } } } printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169006/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169006/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include<math.h> int main() { int i,t; long a[103]; scanf("%d",&t); for(i=0;i<t;i++) {scanf(" %ld",&a[i]); a[i]=floor(a[i]/2);} for(i=0;i<t;i++) printf("%ld\n",a[i]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16905/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d%d%d",&a,&b,&c); if((a>=b)&&(a>=c)) { if(b>=c) { printf("%d %d %d\n",c,b,a); } else { printf("%d %d %d\n",b,c,a); } } else if((b>=a)&&(b>=c)) { if(a>=c) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169093/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169093/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 < b && b < c) printf("%d %d %d\n",a ,b ,c); else if(a <= c && c <= b) printf("%d %d %d\n",a ,c ,b); else if(b <= a && a <= c) printf("%d %d %d\n",b ,a ,c); else if(b <= c && c <= a) printf("%d %d %d\n",b ,c ,a); el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169136/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169136/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d %d", &a, &b, &c); if(a > b) { i = a; a = b; b = i; } if(b > c) { i = b; b = c; c = i; } if(a > b) { i = a; a = b; b = i; } printf("%d %d %d\n", a, b, c); ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169194/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169194/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],temp; scanf("%d %d %d",&a[0],&a[1],&a[2]); if(a[0]>a[1]){ temp=a[0]; a[0]=a[1]; a[1]=temp; } if(a[0]>a[2]){ temp=a[0]; a[0]=a[2]; a[2]=temp; } if(a[1]>a[2]){ temp=a[1]; a[1]=a[2]; a[2]=temp; } printf("%d %d %d\n",a[0],a[1],a[2]); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169237/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169237/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a, b, c; int x, y; scanf("%d %d %d", &a, &b, &c); if( a > b ){ x = a; y = b; a = y; b = x; } if( b > c ){ x = b; y = c; b = y; c = x; } if( a > b ){ x = a; y = b; a = y; b = x; } printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169280/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169280/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp; scanf("%d %d %d", &a, &b, &c); while(1){ if (a > b) { tmp = a; a = b; b = tmp; } else if (b > c) { tmp = b; b = c; c = tmp; } else if (a > b) { tmp = a; a = b; b = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169330/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169330/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,c,d; scanf("%d %d %d",&a,&b,&c); if(a > b) { d = a; a = b; b = d; } if(b > c) { d = c; c = b; b = d; } if(a > b) { d = a; a = b; b = d; } printf("%d %d %d\n",a ,b ,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169381/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169381/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,z; scanf("%d%d%d",&a,&b,&c); if(a>b){ z=a; a=b; b=z; } if(b>c){ z=b; b=c; c=z; } if(a>b){ z=a; a=b; b=z; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169424/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169424/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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]; int i,j,t,c; scanf("%d%d%d",&a[0],&a[1],&a[2]); for(i=0;i<3;i++){ t=i; for(j=i+1;j<3;j++){ if(a[t]>a[j]){ t=j; } } c=a[i]; a[i]=a[t]; a[t]=c; } printf("%d %d %d\n",a[0],a[1],a[2]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169475/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169475/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//3つの整数を読み取り、昇順に並べ替えて出力する #include <stdio.h> #define SIZE 3 //整数の個数 int main(void){ int num[SIZE] = {0}; int temp = 0; int i = 0, j = 0; //for文用 scanf("%d %d %d",&num[0],&num[1],&num[2]); //区切りのスペースを空ける //条件のチェック for(i = 0; i < SIZE; i++){ if(num[i] < 1 || num[i] > 10000){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169576/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169576/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp; int a[3]; for (i = 0; i < sizeof(a) / sizeof(int); i++) { scanf ("%d",&a[i]); } for (i = 0; i < sizeof(a) / sizeof(int) - 1; i++) { for (j = 1; j < sizeof(a) / sizeof(int); j++) { if (a[i] > a[j]) { tmp = a[i]; a[i] = a[j]; a[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169626/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169626/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main() { char s[10]; int a[10]; scanf("%s",s); int l=strlen(s); for(int i=0;i<l;i++) { a[i]=s[i]; a[i]-=65; } int flag=0; for(int i=1;i<l-1;i++) { if((a[i-1]+a[i])%26!=a[i+1]) flag=1; } if(flag==0) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16967/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16967/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <stdlib.h> int main() { int a, b, c; scanf("%d %d %d", &a, &b, &c); if (a < b) { if (a < c) if (b < c) printf("%d %d %d\n", a, b, c); else printf("%d %d %d\n", a, c, b); else printf("%d %d %d\n", c, a, b); } else { if (a < c) printf("%d %d %d\n", b, a, c); e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169712/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169712/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int a,b,c; int main() { scanf("%d %d %d", &a, &b, &c); if(a<=b && b<=c){ printf("%d %d %d\n",a,b,c); } else if(a<=c && c<=b){ printf("%d %d %d\n",a,c,b); } else if(b<=a && a<=c){ printf("%d %d %d\n",b,a,c); } else if(c<=a && a<=b){ printf("%d %d %d\n",c,a,b); } else if(c<=b && b<=a){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169756/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169756/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int n, k; scanf("%d %d", &n, &k); char s[200005]; scanf("%s", s); int i; if (n == 1) { if (k > 0) s[0] = '0'; } else { for (i = 0; i < n; i++) { if (k == 0) break; if (i == 0) { if (s[i] != '1') { s[i] = '1'; k--; } } else { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1698/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1698/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include<stdio.h> #include<math.h> int main(void) { int n; scanf("%d", &n); printf("%d\n", n / 2); if (n & 1){ printf("3 "); n -= 3; } while (n){ printf("2 "); n -= 2; } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16985/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16985/source.c" target datalayout = "e-m:e-p270:32:32-p271: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=0; scanf("%d %d %d",&a,&b,&c); if(a>b){ d=a; a=b; b=d; } if(b>c){ d=b; b=c; c=d; } if(a>b){ d=a; a=b; b=d; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169893/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169893/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],b,c; scanf("%d %d %d",&a[0],&a[1],&a[2]); for(int j=0;j<4;j++){ for(int i=0;i<2;i++){ if(a[i]<a[i+1]){ }else{ b=a[i]; a[i]=a[i+1]; a[i+1]=b; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169936/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169936/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<math.h> int main() { int n,x,e=0,q=0,v=0,b=0,i,j; scanf("%d",&n); char a[n]; scanf("%s",a); x=0; for(i=0;i<n;i++) { if(a[i]=='D') v++; else b++; } while(v!=0 && b!=0) { for(i=0;i<n && v!=0 && ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16998/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16998/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void){ int a,b,c,h; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if(a>b){ h=a; a=b; b=h;} if(b>c){ h=b; b=c; c=h;} if(a>b){ h=a; a=b; b=h;} printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170042/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170042/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp; scanf ("%d%d%d", &a, &b, &c); if (b > c) { tmp = b; b = c; c = tmp; } if (a > b) { tmp = a; a = b; b = tmp; } if (b > c) { tmp = b; b = c; c = tmp; } printf("%d %d %d\n",a, b, c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170093/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170093/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &n, &m); int i; int a, b; int count[100005]; for (i = 0; i < n; i++) count[i] = 0; for (i = 0; i < m; i++) { scanf("%d %d", &a, &b); count[a - 1]++; count[b - 1]++; } for (i = 0; i < n; i++) { if (count[i] % 2 > 0) { printf("NO\n"); re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170143/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170143/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long N,K; scanf("%lld%lld",&N,&K); long long cnt = -1; int sum = 0; while(sum <= N){ sum += K; cnt++; } long long cnt1 = 0; if(K%2 == 0){ sum = K/2; while(sum <= N){ sum += K; cnt1++; } } printf("%lld\n",cnt*cnt*cnt+cnt1*cnt1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170187/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170187/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 long int n,m; scanf("%lld %lld",&n,&m); if(m<2*n){ printf("%lld\n",m/2); }else{ printf("%lld\n",(n+(m-2*n)/4)); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170237/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170237/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ long long n,m; scanf("%lld",&n); scanf("%lld",&m); if(n*2>=m){ if(m%2==0){ printf("%lld\n",m/2); } else{ printf("%lld\n",(m-1)/2); } } else{ if(m%2==1){m=m-1;} long long k=n+m/2; if(k%2==1){k=k-1;} printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170280/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170280/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ unsigned long long N=0,M=0,sum=0,hen=0; scanf("%llu %llu", &N, &M); if(M >= 4 && (N*2 <= M-4)){ hen += (M-N*2)/4; M -= hen*2; N += hen; }; if(N <= M/2){ sum += N; }else{ sum += M/2; }; printf("%llu\n", sum); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170323/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170323/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> const int mod = 1e9 + 7; int fact[302020], rfact[302020]; int modPow(int x, int n) { int ret; if(n == 0) return (1); ret = modPow(x, n / 2); ret = 1LL * ret * ret % mod; if(n % 2 == 1) { ret = 1LL * ret * x % mod; } return (ret); } int modInv(int p) { return (modPow(p, mod - 2))...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170367/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170367/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mod = dso_local local_unna...
#include <stdio.h> int main() { int x1,y1,x2,x3,y2,y3,x4,y4; float c,d; scanf("%d %d %d %d %d %d",&x1,&y1,&x2,&y2,&x3,&y3); printf("3\n"); c=(x1+x2); d=(y1+y2); x4=c-x3; y4=d-y3; printf("%d %d\n",x4,y4); c=(x3+x2); d=(y3+y2); x4=c-x1; y4=d-y1; printf("%d %d\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17041/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17041/source.c" target datalayout = "e-m:e-p270:32:32-p271: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(void){ char s[64]; int n = 0,i,l; scanf("%s",s); l = strlen(s); for(i = 0;i <= l - 2;i++){ if(s[i] != s[i + 1]){ n++; } } if(s[0] == s[l - 1] && s[l - 1] == 'o'){ n++; } n--; if(n % 2){ pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170453/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170453/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define MAX 100010 #define INFTY 10000000 #define NIL -1 struct Node { int value; struct Node *next; }; typedef struct Node node_t; int N; int M; int id =1; node_t *G[MAX]; int color[MAX]; node_t* addNode(node_t *node, int value) { node_t *new = (node_t*)malloc(sizeof(node_...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170518/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170518/source.c" target datalayout = "e-m:e-p270: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 = type { i32, ...
#include <stdio.h> #define MAX 100000 int n , m , q , from , to; int rank[MAX] , parent[MAX]; int find(int x){ if(x == parent[x]){ return x; }else{ return parent[x] = find(parent[x]); } } void unite(int x,int y){ x = find(x); y = find(y); if(x == y){ return; } if(rank[x] < rank[y]){ parent[x] ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170561/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170561/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @parent = dso_local local_u...
#include <stdio.h> int main() { int a, b, c, ab, ac, bc; scanf("%d %d %d", &a, &b, &c); ab = a+b; ac = a+c; bc = b+c; if(ab<ac && ab<bc) { printf("%d", ab); } else if(ac<ab && ac<bc) { printf("%d", ac); } else { printf("%d", bc); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170604/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170604/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,max; scanf("%d %d %d",&a,&b,&c); max=a; if(b>max){ max=b; } if(c>max){ max=c; } printf("%d",a+b+c-max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170648/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170648/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,int c){ int m=a; if(m<b) m=b; if(m<c) m=c; return m; } int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%d\n",a+b+c-max(a,b,c)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170691/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170691/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c; scanf("%d%d%d",&a,&b,&c); if((a < b) && (a < c) && (b < c)) { printf("%d\n",a+b); } else if((a < b) && (a < c) && (c < b)) { printf("%d\n",a+c); } else if((b < a) && (b < c) && (a < c)) { printf("%d\n",b + a); } else if ((b < a) && ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170741/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170741/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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]; for(int i=0; i<3; i++){ scanf("%d", &a[i]); for(int j = i; a[j-1]>a[j] && j>0; j--){ int t = a[j-1]; a[j-1] = a[j]; a[j] = t; } } int sum = 0; for(int i=0; i<2; i++){ sum += a[i]; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170785/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170785/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int max = a; if (b > max) max = b; if (c > max) max = c; printf("%d\n", a + b + c - max); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170828/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170828/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],i,j,tmp; scanf("%d %d %d",&a[0],&a[1],&a[2]); for(i=0;i<3;i++){ for(j=2;j>i;j--){ if(a[j]>a[j-1]){ tmp=a[j]; a[j]=a[j-1]; a[j-1]=tmp; } } } printf("%d\n",a[1]+a[2]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170871/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170871/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",&a,&b,&c); int sum1=a+b; int sum2=a+c; int sum3=b+c; int min=sum1; if(sum2<min)min=sum2; if(sum3<min)min=sum3; printf("%d\n",min); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170914/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170914/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 3026 ai1333 // 2018.3.28 bal4u #include <stdio.h> char s[110] = "ai1333", *p = s+6; int main() { int x; scanf("%d", &x), x /= 100; while (x--) *p++ = '3'; *p = 0; puts(s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170958/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170958/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @s = dso_local global [110 ...
#include<stdio.h> int main(){ int x; scanf("%d",&x); if(x%7==2)printf("sat\n"); if(x%7==3)printf("sun\n"); if(x%7==4)printf("mon\n"); if(x%7==5)printf("tue\n"); if(x%7==6)printf("wed\n"); if(x%7==0)printf("thu\n"); if(x%7==1)printf("fri\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171007/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171007/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%7; switch(x){ case 0: printf("thu\n"); break; case 1: printf("fri\n"); break; case 2: printf("sat\n"); break; case 3: printf("sun\n"); break; case 4: ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171050/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171050/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r; scanf("%d",&r); if(r<1200) puts("ABC"); else if(r<2800) puts("ARC"); else puts("AGC"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171094/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171094/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); if(a<1200){ printf("ABC"); }else if(a<2800){ printf("ARC"); }else{ printf("AGC"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171137/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171137/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R; scanf("%d",&R); if(R<1200){ printf("ABC"); }else if((1200<=R)&&(R<2800)){ printf("ARC"); }else{ printf("AGC"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171180/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171180/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r; scanf("%d",&r); if(r<1200){printf("ABC");} else if(r<2800){printf("ARC");} else{printf("AGC");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171223/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171223/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...