Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> int a, b; int abs_(int p, int q){ return (p-q)>0 ? (p-q) : (q-p); } int win(int num){ if(abs_(num,a) < abs_(num,b)){ return -1; }else if(abs_(num,a) > abs_(num,b)){ return 1; }else{ return 0; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16594/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16594/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @a = dso_local global i32 0, ...
#include <stdio.h> int main(void) { int n,i,debt; int t; debt = 100000; scanf("%d", &n); for (i = 0; i < n; i++){ debt += debt/100*5; debt = (debt + 999) /1000 * 1000; } printf("%d\n", debt); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165990/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> int main() { int i,a,b,p1=0,p2=0,d=0; scanf("%d %d",&a,&b); for(i=1;i<=6;i++) { if(abs(a-i)<abs(b-i)) p1++; else if(abs(a-i)>abs(b-i)) p2++; else d++; } printf("%d %d %d\n",p1,d,p2); return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16604/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16604/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> /* Aizu Online Judge Problem */ /* Volume0 0007:Debt Hell */ int main(void) { int week; int pay = 100000; double rate = 1.05; scanf("%d", &week); while(week) { pay *= rate; if(pay % 1000) { pay = (pay / 1000 + 1) * 1000; } week--; } printf("%d\n", p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166090/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166090/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n, i; int ans = 100000; scanf("%d", &n); for(i=0; i<n; i++){ ans *= 1.05; ans = ((ans+999)/1000) * 1000; } printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166140/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166140/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int n, i, ans; scanf("%d", &n); ans = 100000; for (i = 0; i < n; i++){ ans += (ans / 20); if (ans % 1000 != 0){ ans = ans / 1000 * 1000 + 1000; } } printf("%d\n", ans); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166184/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166184/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int n,i; int dept=100000; int x; scanf("%d",&n); for(i=0;i<n;i++){ dept *= 1.05; if(dept%1000!=0){ dept = ((dept/1000)+1)*1000; } } printf("%d\n",dept); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166227/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166227/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f0(int p0,int p1) { if(p1) { f0((int)((double)(p0)*1.05+999.9)/1000*1000,p1-1); } else { return p0; } } int main(void) { int n; scanf("%d",&n); printf("%d\n",f0(100000,n)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166278/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166278/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ans=100000; int i; scanf("%d",&n); for(i=0;i<n;i++){ ans+=ans*0.05; if(ans%1000!=0) ans=(ans/1000+1)*1000; } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166328/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166328/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int n,i; long long int money; scanf("%d",&n); money = 100000; for(i = 0;i < n;i++){ money *= 105; money /= 100; money += 999; money /= 1000; money *= 1000; } printf("%ld\n",money); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166379/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166379/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int N; scanf("%d",&N); int M0=100000; int n; for(n=0;n<N;n++){ M0=M0+0.05*M0; if(M0%1000)M0=M0-M0%1000 +1000; } printf("%d\n",M0); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166443/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s=100000; int n,i; scanf("%d",&n); for(i=0;i<n;i++){ s=s+s/20; if(s%1000!=0) s=s-s%1000+1000; } printf("%d\n",s); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166487/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166487/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 f[200005],cap[200005]; char s[200005]; int main() { int n,i,x,j; //freopen("s.in","r",stdin); //freopen("s.out","w",stdout); scanf("%d",&n); for(i=1; i<=n; i++) { scanf("%d",&x); f[x]=i; } getchar(); scanf("%s",s); for(i=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16653/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16653/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void){ int i,t,m=100000; scanf("%d",&t); for(i=1;i<=t;i++){ m=m+m*5/100; if(m%1000!=0){ m=m+(1000-m%1000); } } printf("%d\n",m); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166573/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166573/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ok(char *s) { int n=strlen(s); int i; for (i=0; i<n/2; ++i) if (s[i] != s[n-i-1]) return 0; return 1; } int main(void) { char buf[128]; int res = 0; while (scanf("%s", buf) != EOF) { if (ok(buf)) res++; } printf("%d\n", res);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166630/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166630/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #define MAX_LENGTH 100 int main(void) { char str[MAX_LENGTH + 1]; int palindrome = 0; int length; int i; while (scanf("%s", str) != EOF) { length = strlen(str); for (i = 0; i <= length / 2; i++) { if (str[i] != str[length - (i + 1)]) break; else if (i == l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166681/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166681/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int t = n*n*n; printf("%d\n",t); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166724/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166724/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #include<math.h> #include<assert.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){if(a<...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166775/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166775/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/ #define rep(i,r) for(i=0; i<r; i++) #define Min(a, b) ((a < b)? a : b) #define Max(a, b) ((a > b)? a : b) #define Abs(x) ((x>=0)? x : -x)/*Return the absolute value of x.*/ typedef long long int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166818/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166818/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define NDEBUG #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> // for DEBUG {{{ #ifdef NDEBUG #define DEBUG_PRINT(fmt, ...) ((void)0) #else #define DEBUG_PRINT(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__) #endif #define ASSERT_RANGE(min,x,max) assert(((x)>=(min)) && (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166861/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166861/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include<stdio.h> int main(){ int N = 0; scanf("%d",&N); printf("%d",N*N*N); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166904/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_166948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166948/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166991/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166991/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, seki; scanf("%d", &n); seki = n * n * n; printf("%d", seki); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167033/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167033/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 calcula(int n, int i){ if(i == 0){ return 1; } else{ return n*calcula(n, --i); } } int main(){ int N; scanf("%d", &N); int resultado = calcula(N, 3); printf("%d\n", resultado); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167084/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167084/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { int N, result; int i; scanf ("%d", &N); result = N*N*N; printf("%d", result); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167127/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167127/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167170/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167170/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> #define DOT(v1, v2) (v1.x * v2.x + v1.y * v2.y) #define CROSS(v1, v2) (v1.x * v2.y - v1.y * v2.x) #define NORM(v) (v.x * v.x + v.y * v.y) #define ABS(v) (sqrt(NORM(v))) typedef struct { double x, y; } point_t; typedef point_t vector_t; typedef struct { point_t p0, p1; } segment_t; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167220/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167220/source.c" target datalayout = "e-m:e-p270: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.segment_t = type { ...
/* ex6_2 potter0723sw */ #include <stdio.h> #include <string.h> int main(void){ int num, last; char string[101];//ヌル文字分含め確保 scanf("%s", &string); num = (int)strlen(string) - 2;//省略する文字数は最初と最後以外の数(ヌル文字はカウントされてない) last = (int)strlen(string) - 1;//配列は0から始まることに注意 printf("%c%d%c\n", string[0]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 offNaria */ #include <stdio.h> #include <string.h> int main(void){ int length; char input[100]; scanf("%s", &input); length = strlen(input); printf("%c%d%c\n", input[0], length-2, input[length-1]); //入力の先頭,先頭と末尾以外の長さ,末尾を出力 return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167314/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167314/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main() { int n; char s[111]; scanf("%s",s); n=strlen(s); printf("%c%d%c",s[0],n-2,s[n-1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167358/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167358/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[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_167400/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167400/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char str[200]; int i, cnt = 0; scanf("%s", str); for (i = 1; str[i + 2] != '\0'; i++, cnt++) { } printf("%c%d%c\n", str[0], cnt + 1, str[cnt + 2]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167444/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167444/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[128]; int len; scanf("%s", s); len = strlen(s); putchar(s[0]); printf("%d", len-2); putchar(s[len-1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167488/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167488/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 middle; char s[101]; scanf("%s",s); for(middle=1;s[middle+2]!='\0';middle++); printf("%c%d%c\n",s[0],middle,s[middle+1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167545/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167545/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { char moji[101]; int i; int count; int math; scanf("%s",moji); for (i = 0; i < 101;i++) { if (moji[i] == '\0') { count = i; math = i - 2; break; } } printf("%c%d%c\n",moji[0],math,moji[count-1]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167596/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *x, int *y) { int temp = *x; *x = *y; *y = temp; } void sort(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); sort(&a,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167639/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167639/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m; for(i=0;i<3;i++) scanf("%d",&a[i]); for(i=0;i<3;i++){ for(j=i+1;j<3;j++){ if(a[i]>a[j]){ m=a[i]; a[i]=a[j]; a[j]=m; } } } printf("%d %d %d\n",a[0],a[1],a[2]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ a ^= b; b ^= a; a ^= b; } if (b > c){ b ^= c; c ^= b; b ^= c; } if (a > b){ a ^= b; b ^= a; a ^= b; } printf("%...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167769/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167769/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,temp; scanf("%d",&a); scanf("%d",&b); scanf("%d",&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); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167819/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167819/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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( b > c ){ 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_167862/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167862/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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],temp,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]){ temp=a[j]; a[j]=a[j+1]; a[j+1]=temp; } } } printf("%d %d %d\n",a[0],a[1],a[2]); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167905/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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], tmp; int i, flag; scanf("%d %d %d", &a[0], &a[1], &a[2]); do { flag = 0; for(i = 0;i < 2;i++) { if(a[i] > a[i+1]) { tmp = a[i]; a[i] = a[i+1]; a[i+1] = tmp; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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],i,b,c; scanf("%d %d %d", &a[0], &a[1],&a[2]); for (i = 2; i >= 0; i--) { for (b = 0; b < i; b++) { if (a[b]>a[b+1]) { c=0; c = a[b]; a[b] = a[b+1]; a[b+1] = c; } } } printf("%d %d %d\n", a[0],a[1],a[2]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167992/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167992/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168034/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168034/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <math.h> int main(void){ int i, j, temp; int array[3]; scanf("%d %d %d", &array[0], &array[1], &array[2]); for(i = 0;i < 2;i++){ for(j = 0;j < 2;j++){ if(array[j + 1] < array[j]){ temp = array[j]; array[j] = array[j + 1]; array[j + 1] = temp; } } } printf("%d %d ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168078/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168078/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int b; int c; scanf("%d %d %d", &a, &b, &c); if (a>b) { if (b>c) { printf("%d %d %d\n", c, b, a); } else if (c>b) { if (a>c) { printf("%d %d %d\n", b, c, a); } else printf("%d %d %d\n", b, a, c); return 0; } } if (a<b) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168135/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168135/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 d[3],i,j,t; scanf("%d %d %d",&d[0],&d[1],&d[2]); for(i=0;i<3;i++){ for(j=0;j<2;j++){ if(d[i]<d[j]){ t=d[i]; d[i]=d[j]; d[j]=t; } } } printf("%d %d %d\n",d[0],d[1],d[2]); return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168179/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168179/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 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_168221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168221/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; 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_168315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168315/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(b>c){ 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_168359/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168359/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0, n = 0; scanf("%d %d %d", &a[0], &a[1], &a[2]); while (i <= 1) { if (a[i] > a[i + 1]) { n = a[i]; a[i] = a[i + 1]; a[i + 1] = n; } i++; } if (a[0] > a[1]) { n = a[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168401/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168401/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a); scanf("%d",&b); scanf("%d",&c); if(a > b){ X=b; b=a; a=X; } else{} if(b > c){ X=c; c=b; b=X; } else{} if(a > b){ X=b; b=a; a=X; } else{} printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168445/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168445/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t, n; scanf("%lld", &t); while(t--) { scanf("%lld", &n); printf("%lld\n", n/2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16851/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16851/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,x; scanf("%d %d %d",&a,&b,&c); if(a>b){ x=a; a=b; b=x; } if(a>c){ x=a; a=c; c=x; } if(b>c){ x=b; b=c; c=x; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168553/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168553/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k; for(i = 0;i < 3;i++) scanf("%d",&a[i]); for(i = 0;i < 3;i++) for(j = i + 1;j < 3;j++) if(a[i] > a[j]){ k = a[i];a[i] = a[j];a[j] = k; } for(i = 0;i < 3;i++){ printf("%d",a[i]); i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168603/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168603/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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&&a<=c) {if(b<=c) printf("%d %d %d", a, b, c); else if(b>=c) printf("%d %d %d", a, c, b); } else if(b<=a&&b<=c) {if(a<=c) printf("%d %d %d", b, a, c); else if(a>=c) printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168647/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int b; int c; scanf("%d%d%d",&a,&b,&c); int f = 0; if(a > b){ f ++; } if(b > c){ f += 2; } if(a > c){ f += 3; } if(f == 0){ printf("%d %d %d\n",a,b,c); } if(f == 1){ printf("%d %d %d\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168690/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168690/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(b>c){ 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_168784/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168784/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int x,y,z; int temp; scanf("%d%d%d",&x,&y,&z); if(x>y){ temp = x; x = y; y = temp; } if(y>z){ temp = y; y = z; z = temp; } if(x>y){ temp = x; x = y; y = temp; } printf("%d %d %d\n",x,y,z); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168827/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168827/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, key; scanf("%d %d %d", &a, &b, &c); if(a > b){ key = a; a = b; b = key; } if(b > c){ key = b; b = c; c = key; if(a > b){ key = a; a = b; b = key; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168885/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168885/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_168957/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168957/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 200000 int main() { static char cc[N + 1]; int n, k, i; scanf("%d%d%s", &n, &k, cc); for (i = 0; i < n && k > 0; i++) { int d = n == 1 || i >= 1 ? 0 : 1; if (cc[i] != d + '0') { cc[i] = d + '0'; k--; } } printf("%s\n", cc); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1690/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1690/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.cc = internal global [200...
#include <stdio.h> int main(){ int data[10],k,i,min; k=i=min=0; for(i=0;i<3;i++){ scanf("%d",&data[i]); } for(i=0;i<3;i++){ for(k=0;k<3;k++){ if(data[i]<data[k]){ min=data[i]; data[i]=data[k]; data[k]=min; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169042/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169042/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// // main.c // AIZU_ONLINE // // Created by 郷田将 on 2018/02/07. // Copyright © 2018年 郷田将. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { // insert code here... int a,b,c; int one,two,three; scanf("%d %d %d",&a,&b,&c); if(a>b && a>c) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169086/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169086/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 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); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169129/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169129/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,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_169187/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169187/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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-->0) { int n,p=0; scanf("%d",&n); p=n/2; printf("%d\n",p); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16923/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16923/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; 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 ) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169273/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ // Your code here! int x,y,z,tmp; scanf("%d", &x); scanf("%d", &y); scanf("%d", &z); if(x>y){ tmp=x; x=y; y=tmp; } if(x>z){ tmp=x; x=z; z=tmp; } if(y>z){ tmp=y; y=z; z=tmp; } printf("%d %d %d\n",x,y,z); return 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169316/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169316/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 data[3],asc; scanf("%d %d %d",&data[0],&data[1],&data[2]); while(data[0]>data[1]||data[1]>data[2]) { if(data[0]>data[1]) { asc=data[0]; data[0]=data[1]; data[1]=asc; } if(data[1]>data[2]) { asc=data[1]; data[1]=data[2]; data[2]=asc; } } printf("...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169374/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169374/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=b;b=a;a=d; } if(b>c){ d=c;c=b;b=d; } if(a>b){ d=b;b=a;a=d; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169417/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169417/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 aa, bb, cc; scanf ("%d %d %d", &aa, &bb, &cc); if (aa <= bb && bb <= cc) { printf ("%d %d %d\n", aa, bb, cc); return 0; } if (aa <= cc && cc <= bb) { printf ("%d %d %d\n", aa, cc, bb); return 0; } if (bb <= aa && aa <= cc) { printf ("%d %d %d\n", bb, aa, cc); return 0; } if (bb <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169468/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169468/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, b, c; int 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_169518/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169518/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,max,middle,little; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); if (a > b){ max = a; little = b; } else { max = b; little = a; } if (max > c &&...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169569/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169569/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, p; scanf("%d %d %d",&a,&b,&c); if(a > b){ p = a; a = b; b = p; } if(b > c){ p = b; b = c; c = p; } if(a > b){ p = a; a = b; b = p; } printf("%d %d %d\n", a, b, c); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169619/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169619/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(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_169662/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169662/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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> void swap(int *a, int *b) { int temp; temp = *a; *a = *b; *b = temp; } int main(void) { int array[3]; int i, j; for(i = 0; i < 3; i++) { scanf("%d", &array[i]); } // sorting for(i = 0; i < 2; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169705/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169705/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<=b && b>=c){ printf("%d %d %d\n",a,c,b); }else if (a>=b && b>=c){ printf("%d %d %d\n",c,b,a); //}else if (a>=b && b<=c){ // printf("%d %d %d\n",b,a,c); }else if (a<=b && b>=c){ pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169749/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169749/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max, min, total = 0; scanf("%d %d %d", &a, &b, &c); total = a + b + c; if(a > b && a > c) { max = a; } else if(b > a && b > c) { max = b; } else { max = c; } if(a < b && a < c) { min = a; } else if(b < a && b < c) { min = b; } else { mi...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169792/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169792/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a = 0; int b = 0; int c = 0; scanf("%d %d %d",&a,&b,&c); if (a < b && a < c) { if (b < c) printf("%d %d %d\n",a,b,c); if (c < b) printf("%d %d %d\n",a,c,b); } else if (b < a && b < c) { if (a < c) printf("%d %d %d\n",b,a,c); if (c < a) printf("%d %d %d\n",b,c,a); } else { if ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169842/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169842/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sort_num(int a, int b, int c){ int num[3] = {a, b, c}; int tmp = 0; int i = 0; for(i = 0; i < 2; i++){ if (num[i] > num[i + 1]){ tmp = num[i]; num[i] = num[i + 1]; num[i + 1] = tmp; } } if (num[0] > num[1]){ tm...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169886/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169886/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0; scanf("%d %d %d",&a,&b,&c); if(a>c){ tmp=a; a=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_169929/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169929/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,max; scanf("%d %d %d",&a,&b,&c); if(a>b){ max=a; a=b; b=max; } if(b>c){ max=b; b=c; c=max; } if(a>b){ max=a; a=b; b=max; } printf("%d %d %d\n",a,b,c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169972/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169972/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, c, d; scanf ("%d %d %d", &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 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170035/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170035/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_170086/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170086/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { /* code */ int a,b,c,tmp; scanf("%d",&a); scanf("%d",&b); scanf("%d",&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_170129/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170129/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t,i; scanf("%lld",&t); printf("%lld\n",t/2); for(i=1;i<t/2;i++) printf("2 "); if(t%2) printf("3"); else printf("2"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17018/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17018/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <math.h> int main() { int px,py,qx,qy,rx,ry,x,y,x1,y1,x2,y2; scanf("%d %d",&px,&py); scanf("%d %d",&qx,&qy); scanf("%d %d",&rx,&ry); printf("3\n"); x=px-qx+rx; y=py-qy+ry; x1=px+qx-rx; y1=py+qy-ry; x2=qx+rx-px; y2=qy+ry-py; printf("%d %d\n",x,y); printf("%d %d\n",x1,y1); print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17023/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17023/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部変数 - テスト用 #ifdef D_TEST static int siRes; static FILE *szpFpT, *szpFpA; #endif // 実行メイン int fMain( int piTNo // <I> テスト番号 1~ ) { char lc1Buf[1024], lc1Out[1024]; // テストファイルオープン #ifdef D_TE...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170273/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include <stdio.h> int main() { long long int n, m, number; scanf("%lld %lld", &n, &m); if (n > m / 2) { number = m / 2; } else { number = n; m -= n * 2; number += m / 4; } printf("%lld\n", number); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170316/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170316/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,n,tc; while(scanf("%d",&n)==1) { if(n%2==0) { printf("%d\n",n/2); for(i=1;i<=n/2;i++) { printf("2"); if(i<n/2) { printf(" "); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17036/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17036/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 sub1[4], sub2[2], i, min = 100, high, total = 0; for(i = 0; i < 4; i++){ scanf("%d", &sub1[i]); total += sub1[i]; if(min > sub1[i]) min = sub1[i]; } for(i = 0; i < 2; i++) scanf("%d", &sub2[i]); if(sub2[0] > sub2[1]) high = sub2[0]; else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170402/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170402/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 1567 Lucky Number // 2018.3.18 bal4u #include <stdio.h> #include <stdlib.h> #include <string.h> // 高速数値入出力 #if 1 #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) #else #define gc() getchar() #define pc(c) putchar(c) #endif int in() // 非負整数のみ { int n = 0, c = gc(); do n = 10 * n + (c & 0xf),...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170446/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170446/source.c" target datalayout = "e-m:e-p270: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._IO_FILE = type { i...
#include <stdio.h> #include <stdlib.h> void unite(long *affiliation, long *group, long p, long q) { long i,j; j = 0; for (i = 0; j < group[q]; i++) { if(affiliation[i] == q) { affiliation[i] = p; j++; } } group[p] += group[q]; } int main() { long n,m,i,s,t,p,q; long *affiliation,*gro...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170510/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170510/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void Search(int **,int*,int,int); int main(){ int i,j,k,n,m; int **keep,**list,*flag,**count; scanf("%d %d",&n,&m); keep = malloc(sizeof(int *)*2); keep[0]=malloc(sizeof(int)*m); keep[1]=malloc(sizeof(int)*m); list = malloc(sizeof(int *)*n); flag = malloc(sizeof(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170554/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170554/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 head,n,Stack[100000]; int color[100000],Graph[100000][250]; int Empty(){ if(head==0)//empty return 1; else return 0; } int element(int id){ //search number of empty node int i; for(i=0;i<250;i++) if(Graph[id][i]==-1) return i; } int pop(void){ head--; return S...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170598/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170598/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @head = dso_local local_unn...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX(a,b) (a > b) ? a : b #define MIN(a,b) (a < b) ? a : b const int inf = 1000000000; // 10^9 int Amin(int *p,int size){ int _min = inf; for(int i = 0;i < size;i++) if(p[i] < _min)_min = p[i]; return _min; } int main(){ int a[3];scan...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170640/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170640/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @inf = dso_local local_unna...
#include <stdio.h> #include <string.h> int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c); if(a >= b){ if(a >= c){ printf("%d", b + c); }else{ printf("%d", b + a); } }else if(b >= a){ if(b >= c){ printf("%d", a + c); }else{ printf("%d", a + b); } }else if(c ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170684/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170684/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && a >= b){ printf("%d\n",b + c); } else if (b >= c && b >= a){ printf("%d\n",a + c); } else { printf("%d\n",a + b); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170734/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170734/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...