Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//1000000000
typedef struct {
long long int A;
long long int B;
} Array;
int main(int argc, const char * argv[]) {
long long int N;
scanf("%lld\n", &N);
Array *array = malloc(sizeof(Array) * N);
memset(array, 0, sizeof(array) * N);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164657/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164657/source.c"
target datalayout = "e-m:e-p270: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.Array = type { i64,... |
#include<stdio.h>
void merge(int *a,int low,int high) {
int mid=(low+high)/2;
int p1=low,p2=mid+1,k=0,c[high-low+1];
while(p1<=mid && p2<=high)
c[k++]=(a[p1]>a[p2])?a[p2++]:a[p1++];
while(p1<=mid)
c[k++]=a[p1++];
while(p2<=high)
c[k++]=a[p2++];
for(int i=0;i<k;i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16470/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16470/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define n 4
#define T 1
#define F 0
int dx[4]={0,-1,0,1};
int dy[4]={1,0,-1,0};
int lim;
int t[n][n];
void swap(int *x,int *y){
int tp=*x;
*x=*y;
*y=tp;
return ;
}
int getH(){
int i,j,sum=0,x;
for(i=0;i<n;i++){
for(j=0;j<n;j++){
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164743/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164743/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dx = dso_local local_unnam... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define N 4
#define LIM 46
int ans[N][N]={
{1,2,3,4},
{5,6,7,8},
{9,10,11,12},
{13,14,15,0}};
int x[N*N]={3,0,1,2,
3,0,1,2,
3,0,1,2,
3,0,1,2},
y[N*N]={3,0,0,0,
0,1,1,1,
1,2,2,2,
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@ans = dso_local local_unna... |
#include<stdio.h>
int main()
{
int i,n,k,p,j=0,count;
scanf("%d",&n);
int a[n],b[n];
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
for(p=0;p<n;p++)
{
if(a[p]!=0){
b[j]=a[p];
j++;
break;
}
}
for(i=p;i<n;i++)
{
if(a[i]==0)
continue;
else
{ ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16483/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 h1, h2, t, tyo = 0, hisi = 0;
while(scanf("%d, %d, %d", &h1, &h2, &t) != EOF){
if(h1 == h2) hisi++;
else if(((h1 * h1) + (h2 * h2)) == (t * t)) tyo++;
}
printf("%d\n%d\n", tyo, hisi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164873/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164873/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, const char * argv[]) {
double a,b,c;
int hisi=0,cho=0;
while(scanf("%lf,%lf,%lf",&a,&b,&c)!=EOF){
if(fabs(a-b)<0.00001){
if(fabs(a*a+b*b-c*c)>0.00001)
hisi++;
}
else if(fabs(a*a+b*b-c*c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164916/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164916/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cnt_c=0,cnt_h=0;
while (scanf("%d,%d,%d",&a,&b,&c)!=EOF){
if (a==b)
cnt_h++;
else if (c*c==a*a+b*b)
cnt_c++;
}
printf("%d\n%d\n",cnt_c,cnt_h);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_164996/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_164996/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a1,b1,c1;
int tmp;
int i,j;
int tyou,diya;
tyou = 0;
diya = 0;
while (scanf("%d", &a) != EOF){
scanf(",%d,%d", &b, &c);
if (a > b){
tmp = a;
a = b;
b = tmp;
}
if (a ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w, n,big,small;
scanf("%d %d %d",&h,&w,&n);
if(h>=w){
big = h;
small = w;
}
else{
big = w;
small = h;
}
int count = 1;
for(int i = 1; i <= small; i++){
if(n>big*i)
count++;
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165089/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165089/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,n,t;
scanf("%d%d%d",&h,&w,&n);
t=h>w?h:w;
if(n%t!=0)
printf("%d",n/t+1);
else
printf("%d",n/t);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165131/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165131/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,n;
scanf("%d %d %d", &h,&w,&n);
if(h>w){
if(n%h==0){
printf("%d", (n/h));
} else{
printf("%d", (n/h)+1);
}
} else{
if(n%w==0){
printf("%d", (n/w));
} else{
printf("%d", (n/w)+1);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165175/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165175/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
double max,min,h;
scanf("%lf",&h);
max = h;
min = h;
while(scanf("%lf",&h)!=EOF){
if(max < h)
max = h;
else if(min > h)
min = h;
}
printf("%lf\n",max-min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165225/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165225/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
float h,min,max;
max=0;min=1000000;
while(scanf("%f",&h)!=EOF){
if(h<min){min=h;}
if(h>max){max=h;}
}
printf("%f\n",max-min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165269/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165269/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
/* prototype declaration */
void differential();
int main(int argc, const char *argv[])
{
differential();
return 0;
}
void differential()
{
double mt, max=0, min=1e10;
while(scanf("%lf", &mt)!=EOF){
if(max<mt) max = mt;
if(mt<min) min = mt;
}
printf("%.1f\n", (max-min));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165333/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165333/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
float x,max=0,min=10000;
while( scanf("%f",&x) != EOF ){
if(max<x){
max=x;
}
else if(min>x){
min=x;
}
}
printf("%f\n",max-min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165384/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165384/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h, w;
char s[50+5][50+5];
scanf("%d %d", &h, &w);
for(int i=0; i<h; i++)scanf("%s", s[i]);
int dy[] = {0, 1, 0, -1, 1, 1, -1, -1};
int dx[] = {1, 0, -1, 0, 1, -1, -1, 1};
for(int y=0; y<h; y++){
for(int x=0; x<w; x++){
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165434/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165434/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#include <string.h>
/*以下便利なマクロを定義する。*/
#define rep(i, min, max) for(i=min; i<=max; i=i+1)
#define if_forall(i, min, max, prop)\
\
rep(i, min, max)\
{\
if(!(prop))\
{\
break;\
}\
}\
\
if(i==max+1)\
#define if_exists(i, m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165478/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165478/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h,w,i,j;
char a[60][60];
scanf("%d%d",&h,&w);
for(i=0;i<h;i++){
scanf("%s",a[i]);
}
for(i=0;i<h;i++){
for(j=0;j<w;j++){
if(a[i][j]=='.'){
a[i][j]='0';
if(i!=0 && a[i-1][j]=='#')a[i][j]+=1;
if(i!=h-1 && a[i+1][j]=='#')a[i][j]+=1;
if(j!=0 && a[i][j-1]=='#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165528/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165528/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i,j,sum,x,y;
char a[100][100];
while(scanf("%d%d",&n,&m)!=EOF)
{
memset(a,0,sizeof(a));
getchar();
for(i=1;i<=n;i++)
{
for(j=1;j<=m;j++)
scanf("%c",&a[i][j]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165571/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165571/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define inf 1072114514
#define llinf 1145141919810364364
#define mod 1000000007
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a;}return b;}
int zt(int a,int b){return max(a,b)-min(a,b);}
int round(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165614/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165614/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%d",&a,&b,&c,&d);
if(a<c)a=c;
if(b>d)b=d;
printf("%d",b-a>0?b-a:0);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165665/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165665/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d",&A,&B,&C,&D);
if(D<=A||B<=C){
printf("0");
return 0;
}else {
if(C<A&&A<=D&&D<=B){
printf("%d",D-A);
return 0;
}else if(C<A&&B<=D){
printf("%d",B-A);
return 0;
}else if(A<=C&&D<=B){
printf("%d",D-C);
return 0;
}else i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165715/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165715/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main()
{
int a, b, c, d;
scanf("%d%d%d%d", &a, &b, &c, &d);
int ans = 0;
if (b<=c || d<=a) {
ans = 0;
} else if (a<=c && c<=b && b<=d) {
ans = b-c;
} else if (c<=a && a<=d && d<=b) {
ans ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165766/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165766/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
/*0≤a<b≤100
0≤c<d≤100
All input values are integers.*/
int main()
{
int a,b,c,d,k,min,max;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(d<=a||c>=b)
k=0;
else{
min=b;
max=a;
if(min>d)
min=d;
if(max<c)
max=c;
k=min-max;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165809/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int i,j,k,l,n,m,a,b,c,d,min,max;
while(scanf("%d%d%d%d",&a,&b,&c,&d)!=EOF)
{
if(b<=d)
min=b;
else
min=d;
if(a<=c)
max=c;
else
max=a;
if(max>min)
printf("0\n");
else
printf("%d\n",min-max);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165852/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165852/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,start,end;
scanf("%d %d %d %d",&a,&b,&c,&d);
start=a;
end=b;
if(a<c)start=c;
if(b>d)end=d;
if(end-start>0)printf("%d\n",end-start);
if(end-start<=0)printf("0\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165902/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165902/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p1,p2;
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a<c) p1=c;
else p1=a;
if(b<d) p2=b;
else p2=d;
if(b<c || a>d)
printf("0\n");
else
printf("%d\n",p2-p1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165946/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165946/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,a=100000;
scanf("%d",&n);
for(;n>0;n--){
a = ((a/100)*105);
if(a%1000 != 0){
a=((a/1000)*1000)+1000;
}
}
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165997/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165997/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rep(i,l,n) for(i=l;i<n;i++)
int main(void){
int n,i,m=100000;
scanf("%d",&n);
rep(i,0,n){
m=m*105/100;
if(m%1000) m=m-m%1000+1000;
}
printf("%d\n",m );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166053/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 int a = 100000;
scanf("%d", &n);
for (i = 0; i < n; i++){
a = a + a / 20;
if (a % 1000) a = a + 1000 - a % 1000;
}
printf("%d\n", a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166118/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=100000;
scanf("%d", &n);
while(n>0){
m *= 1.05;
if(m%1000!=0){
m += 1000 - m%1000;
}
n--;
}
printf("%d\n", m);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166161/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166161/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 debt = 100000;
scanf("%d", &n);
for(i = 0; i < n; i++){
debt *= 1.05;
if((debt % 1000) != 0){
debt /= 1000;
debt++;
debt *= 1000;
}
}
printf("%d\n", debt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166204/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166204/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 money=100000;
scanf("%d",&n);
for(i=0;i<n;i++){
money=money*1.05;
if(money%1000>0){
money=money/1000;
money+=1;
money*=1000;
}
}
printf("%d\n",money);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166248/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166248/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n = 0;
int m = 100000;
scanf("%d", &n);
for( ; n != 0; n--){
m = (int)(m * 0.00105) * 1000;
m += 1000;
}
printf("%d\n", m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166305/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166305/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int i,n,sum=100000;
scanf("%d",&n);
for(i=0;i<n;i++){
sum=sum+(double)(sum*5)/100;
if(sum%1000!=0){
sum+=1000;
}
sum=sum/1000*1000;
}
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166356/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166356/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x[200002];
int y[200002];
int taxi[100001];
int main (void){
int taxinum;
int n,m;
int i,j;
int lasttaxyindex,nexttaxyindex;
scanf("%d %d",&n,&m);
for(i=0;i<n+m;i++){
scanf("%d",&x[i]);
}
for(i=0;i<n+m;i++){
scanf("%d",&y[i]);
}
for(i=0;i<m;i++){
taxi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1664/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<string.h>
#include<stdlib.h>
int min(int a,int b)
{
if(a>b)
return b;
else
return a;
}
int max(int a,int b)
{
if(a>b)
return a;
else
return b;
}
int main()
{
int i,n,temp1,mini,maxi;
scanf("%d",&n);
char str[n-1];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16645/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i = 100000;
int year = 0;
int x;
scanf("%d",&year);
while(year > 0){
i = i * 1.05;
x = i % 1000;
if(x > 0){
i = i + 1000 - x;
}
year--;
}
printf("%d\n",i);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166493/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166493/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 debt = 100000;
int i;
scanf("%d", &n);
for (i =0; i < n; i++) {
debt *= 1.05;
if (debt % 1000 != 0) {
debt -= (debt % 1000);
debt += 1000;
}
}
printf("%d\n", debt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 len strlen(str)
int main(void)
{
char str[101];
int i, num, f;
num = 0;
while (scanf("%s", str) != EOF){
f = 1;
for (i = 0; i < len / 2; i++){
if (str[i] != str[len - 1 - i]){
f = 0;
break;
}
}
if (f == 1){
num++;
}
}
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166587/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n;
int judge(int a[])
{
int i;
for(i=1;i<=n;i++)
if(a[i]==0)
return 1;
return 0;
}
int main()
{
int a[1000],b[1000];
int k,t,i,v,j;
scanf("%d",&t);
while(t--)
{
memset(a,0,sizeof(a));
scanf("%d%d",&n,&k);
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local global i32 0, ... |
#include <stdio.h>
#include <string.h>
int main(){
char s[150];
int i,j,flag,flag1=0;
while(scanf("%s",s) != EOF){
flag=0;
j=strlen(s);
if(j != 1){
for(i=0,j=j-1;s[i]!='\0';i++,j--){
if(s[i] != s[j]){
flag=1;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166673/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MOD 1000000007
int main(){
int a;
scanf("%d",&a);
printf("%d",a*a*a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166716/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166716/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <math.h>
int main() {
int n;
scanf("%d", &n);
printf("%d",n*n*n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166767/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,k;
scanf("%d",&n);
scanf("%d",&k);
int beds[201]={0},taps[k];
for(int i=0;i<k;i++)
scanf("%d",&taps[i]);
int c=0,count=0;
while(count<n){
int j=0;
while(j<k){
if(taps[j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16681/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16681/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <math.h>
int main(void){
int n;
scanf("%d",&n);
printf("%d\n",(int)pow(n,3));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166860/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_166903/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166903/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_166947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166947/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_166990/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166990/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,o;
scanf("%d%d",&n,&m);
if(m==0)
o=1;
else if(m==n/2)
o=n/2;
else if(m<n/2)
o=m;
else
o=n-m;
printf("%d",o);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main() {
int N;
scanf("%d",&N);
printf("%d",N*N*N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x;
scanf("%d",&a);
x=pow(a,3);
printf("%d",x);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167133/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,ps,i;
scanf("%d",&N);
printf("%d",N*N*N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167177/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167177/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
scanf("%d %d",&n,&m);
int ans;
if(n==m)
ans=0;
else if(m==0)
ans=1;
else
{
i=n-m;
if(i<=m)
ans=i;
else
ans=m;
}
printf("%d",ans);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16722/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16722/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* ex6_2
kento_titech*/
#include<stdio.h>
#include<string.h>
#define SIZE 101
int main(void){
int del_num,len;
char strings[SIZE],ans[SIZE];//最大100文字入る文字列配列
scanf("%s",strings);
len=strlen(strings);//文字列の長さをstrlen()で調べる
del_num=strlen(strings)-2;//削除する文字数
sprintf(ans,"%c%d%c",strings[0],del_n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167270/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167270/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.c i18n
dada__ */
#include<stdio.h>
#include<string.h>
#define SIZE 100
int main(void){
int length;
char word[SIZE];
scanf("%s", word); //単語の入力
length=strlen(word); //単語の長さの取得
printf("%c%d%c\n", word[0], length-2, word[length-1]); //出力
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167313/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167313/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <math.h>
int main() {
char s[100001];
scanf("%s", s);
int l = strlen(s);
printf("%c%d%c",s[0],l-2,s[l-1]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167357/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167357/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
int i, j;
int n;
int c;
int a[100005], b[100005];
int l, r;
for (j = 0; j < t; j++)
{
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for (i = 0; i < n; i++)
scanf("%d", &b[i]);
for (i = 0; i < n; i++)
a[i] = b[i] - a[i];
c ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16740/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k=0,t=0;
char s[101];
scanf ("%s",s);
for (int i=0;s[i]!=0;i++){
t++;
}
printf ("%c%d%c",s[0],t-2,s[t-1]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167450/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167450/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[120] ;
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_167500/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167500/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[110];
int length;
scanf("%s", S);
length = strlen(S);
printf("%c%d%c\n",S[0],length-2,S[length-1]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167566/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167566/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
a = b = c = d = 0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (b > a)
{
d = a;
a = b;
b = d;
}
if (c > b)
{
d = b;
b = c;
c = d;
}
if (b > a)
{
d = a;
a = b;
b = d;
}
printf("%d %d %d\n", c, b, a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167616/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167616/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t;
scanf("%d",&t);
for (int i=0;i<t;i++)
{
int n,diff,flag=0,flag2=0,flag3=0,count=0;
scanf("%d",&n);
int a[n],b[n];
for (int j=0;j<n;j++)
{
scanf ("%d",&a[j]);
}
for (int j=0;j<n;j++)
{
scanf ("%d",&b[j]);
}
diff=b[0]-a[0];
if (diff<0)
flag... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16771/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d %d %d",&a,&b,&c);
if (a>b){
d=a;
a=b;
b=d;
} //a<bになる
if (b>c){
d=b;
b=c;
c=d;
} //b<cになる
if (a>b){
d=a;
a=b;
b=d;
} //a<bになる
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167753/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167753/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int num[3];
int i, j;
scanf("%d %d %d", &num[0], &num[1], &num[2]);
for(i = 0; i < 3; i++){
if(i < 2){
if(num[i] > num[i + 1]){
j = num[i + 1];
num[i + 1] = num[i];
num[i] = j;
}
}else{
if(num[0] > num[1]){
j = num[0];
num[0] = num[1];
num[1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167818/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167818/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__)
#define dpri(x) dbg(#x ": %d\n", x)
#define dprs(x) dbg(#x ": %s\n", x)
#include <stdio.h>
const int INF = 1e9+7;
void swap(int *x, int *y)
{
int tmp = *x;
*x = *y;
*y = tmp;
}
int main(int argc, char **argv)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167861/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167861/source.c"
target datalayout = "e-m:e-p270: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>
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_167904/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167904/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,M,N,L;
scanf("%d %d %d",&a[0],&a[1],&a[2]);
M=a[0]; N=a[0]; L=a[0];
for(i=0;i<3;i++){
if(M>a[i]){
M=a[i];
}
if(L<a[i]){
L=a[i];
}
}
N=a[0]+a[1]+a[2]-M-L;
printf("%d %d %d\n",M,N,L);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167948/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167948/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", b, c, a); }
else{printf("%d %d %d\n", c, b, a);} }
else if (b>a && b>c){ if (a<c){ printf("%d %d %d\n", a, c, b); }
else{ printf("%d %d %d\n", c,a,b); } }
else if (c>a && c>b){ i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167991/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167991/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i;
scanf("%d %d %d",&a,&b,&c);
for(i=1;i<=3;i++){
if(a>b){
tmp=b;
b=a;
a=tmp;
}else if(b>c){
tmp=c;
c=b;
b=tmp;
}
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0;
scanf("%d%d%d",&a,&b,&c);
if(a <= b && a <= c) { printf("%d",a);
if(b <= c) printf(" %d %d\n",b,c);
else printf(" %d %d\n",c,b);}
else if(b <= a && b <= c) { printf("%d",b);
if(a <= c) printf(" %d %d\n",a,c);
else printf(" %d %d\n",c,a);}
else if(c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168084/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
}
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168127/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168170/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168170/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 swap(a, b) {int tmp;tmp = a;a=b;b=tmp;}
int main(){
int a,b,c;
scanf("%d %d %d",&a, &b, &c);
if(b > c)swap(b,c);
if(a > b)swap(a,b);
if(b > c)swap(b,c);
printf("%d %d %d\n",a, b, c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168213/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168213/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",a,b,c);
}else if(c <= a && a <= b){
printf("%d %d %d",c,a,b);
}else if(a >= b && b >= c){
printf("%d %d %d",c,b,a)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168257/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 222222
typedef long long ll;
int tc, n;
int main(){
scanf("%d", &tc);
while (tc--){
scanf("%d", &n);
printf("%d\n", n/2);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16830/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16830/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[3];
int i, j;
int min;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 3; i++){
for (j = 1; j < 3; j++){
if (a[j - 1] > a[j]){
min = a[j];
a[j] = a[j - 1];
a[j - 1] = min;
}
}
}
printf("%d %d %d\n", a[0], a[1], a[2]);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168350/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168350/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
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_168394/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168394/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,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_168437/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168437/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,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_168488/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168488/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(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_168545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, 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 (b < a) {
z = a;
a = b;
b = z;
}
}
printf("%d %d %d\n", a, b, c);
}
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168602/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168602/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x;
scanf("%d %d %d",&a,&b,&c);
if(b<a){
x=b;
b=a;
a=x;
}
if(c<b){
x=c;
c=b;
b=x;
}
if(b<a){
x=b;
b=a;
a=x;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168646/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168646/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
while(1){
if(a>b)
d = a,a = b,b = d;
if(b>c)
d = b,b = c,c =d;
if(a>c)
d =a,a = c,c = d;
if(a<=b&&b<=c){
printf("%d %d %d\n",a,b,c);
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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--)
{
long n;
scanf("%ld",&n);
if(n%2==0)
{
printf("%ld\n",n/2);
}
else
{
printf("%ld\n",(n-1)/2);
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16874/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16874/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main(void){
char tmp[1000];
//??\???
fgets(tmp,sizeof(tmp),stdin);
int num[3];
num[0]=atoi(strtok(tmp," "));
int i;
for(i=1;i<3;i++){
num[i]=atoi(strtok(NULL," "));
}
int j;
for(i=0;i<3;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168783/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168783/source.c"
target datalayout = "e-m:e-p270: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 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_168833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168833/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(b < c){
if(a < c){printf("%d %d %d\n",b,a,c);
}e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_168934/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168934/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 (c < a) {
d = c;
c = a;
a = d;
}
if (c < b) {
d = c;
c = b;
b = d;
}
if (a > b) {
d = a;
a = b;
b = d;
}
printf("%d %d %d\n", a, b, c);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168985/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169027/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <= b && b > c){
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,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169070/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 DIM 3
void swap(int* data1, int* data2);
void selection_sort(int* data, int dim);
int main(int argc, char *argv[]){
int data[DIM];
scanf("%d %d %d", &data[0], &data[1], &data[2]);
selection_sort( data, DIM );
printf("%d %d %d\n", data[0], data[1], data[2]);
return(0);
}
void swap... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169113/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169113/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 branch(int a, int b, int c) {
if (a <= b) {
if (b <= c) {
printf("%d %d %d\n", a, b, c);
} else if (c <= a) {
printf("%d %d %d\n", c, a, b);
} else {
printf("%d %d %d\n", a, c, b);
}
} else if (b <= a) {
if (a <= c) {
printf("%d %d %d\n", b, a, c);
} els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169157/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169157/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t,n;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
printf("%d\n",n/2);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16920/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16920/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,tmp;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
tmp = b;
b = a;
a = tmp;
};
if(b>c){
tmp = c;
c = b;
b = tmp;
} if(a>b){
tmp = b;
b = a;
a = tmp;
}
printf("%d %d %d\n",a,b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169243/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169243/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
1 <= a, b, c <= 10000;
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 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169287/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169287/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_169337/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169337/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_169380/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169380/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.