Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
char s[55][55]={};
int bomb(int i,int j){
return (s[i][j] == '#')? 1:0;
}
int main(){
int h,w;
int a[55][55]={};
scanf("%d%d",&h,&w);
for(int i=0;i<h;i++){
scanf("%s",s[i]);
}
if(s[0][0]!='#'){ s[0][0]='0';
s[0][0]+=bomb(0,1);
s[0][0]+=bomb(1,0);s[0][0]+=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165600/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165600/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local global [55 x... |
#include<stdio.h>
int main(void){
int a,b,c,d,j[2];
scanf("%d%d%d%d",&a,&b,&c,&d);
if(a>c){j[0]=a;}
else j[0]=c;
if(b>d){j[1]=d;}
else j[1]=b;
if(j[1]<j[0])
j[1]=j[0];
printf("%d",(j[1]-j[0]));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165644/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165644/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int hazime, owari;
if (scanf("%d%d%d%d", &A, &B, &C, &D) != 4) return 1;
hazime = A < C ? C : A;
owari = B <= D ? B : D;
printf("%d\n", hazime <= owari ? owari - hazime : 0);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165695/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165695/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int mini(int a,int b){
if(a>b) return b;
return a;
}
int max(int a,int b){
if(a>b) return a;
return b;
}
int main(void){
int a,b,c,d,start,end;
scanf("%d %d %d %d",&a,&b,&c,&d);
start=max(a,c);
end=mini(b,d);
printf("%d\n",max(end-start,0));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165738/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int first,end;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&d);
if(a>c){
first=a;
}else{
first=c;
}
if(b>d){
end=d;
}else{
end=b;
}
if(end>first){
printf("%d\n",end-first);
}else{
printf("0\n");
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165789/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165789/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ((b <= c) || (d <= a)) {
printf("0"); return 0;
}
if ((b >= d) && (c >= a)) { printf("%d", d - c); return 0; }
if (a >= c)
{
if (d >= a)
{
if (b >= d) {
printf("%d", d - a); return 0;
}
}
}
if ((d >= b) &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165831/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165831/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,D;
scanf ("%d%d%d%d",&A,&B,&C,&D);
if (A<=C&&B>=C&&D>=B)
printf ("%d\n",B-C);
else if (A<=C&&D<=B)
printf("%d\n",D-C);
else if (C<=A&&B<=D&&B>=C)
printf("%d\n",B-A);
else if (A>=C&&B>=D&&D>=A)
printf("%d\n",D-A);
else
printf ("0\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165875/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165875/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
int a, b, c, d, result;
scanf("%d %d %d %d", &a, &b, &c, &d);
result = (int)( fmin((double)b, (double)d) - fmax((double)a, (double)c) );
if( result < 0 ){
result = 0;
}
printf("%d", result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165918/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165918/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,n;
scanf("%d %d %d %d",&a,&b,&c,&d);
if(a<=c && d<=b)
printf("%d",(d-c));
else if(c<=a && b<=d)
printf("%d",(b-a));
else if(a<=c)
{
n=b-c;
if(n<1)
printf("0");
else
printf("%d",n);
}
e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_165961/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_165961/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int n;
int i;
int money = 100000;
scanf("%d", &n);
for(i = 0; i < n;i++){
money *= 1.05;
if((money%1000) > 0){
money += 1000;
money -= money%1000;
}
}
printf("%d\n", money);
return (0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166018/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166018/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 debt=100000;
int i,n;
scanf("%d",&n);
for(i=0;i<n;i++){
debt*=1.05;
if(debt % 1000 != 0){
debt=(debt/1000+1)*1000;
}
}
printf("%d\n",debt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166069/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166069/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 debt=100000;
int n;
int i;
scanf("%d", &n);
for(i=0;i<n;i++){
debt=debt*1.05;
if(debt%1000!=0)
debt=debt-debt%1000+1000;
}
printf("%d\n", debt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166119/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166119/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 loan = 100000;
scanf("%d", &n);
for (i = 0; i < n; i++) {
loan = loan*1.05;
if (loan % 1000 != 0) {
loan = (loan / 1000 + 1) * 1000;
}
}
printf("%d\n",loan);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166162/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166162/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int i;
int b=100000;
int a;
scanf("%d",&a);
for(i=0;i<a;i++){
b*=1.05;
if(b%1000!=0){
b=b/1000;
b=b+1;
b=b*1000;
}
}
printf("%d\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166205/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int rishi(int n,int a){
int a1;
if(n>0){
a=a*1.05;
a1=a%1000;
if(a1!=0){
a=a-a1+1000;
}
n=n-1;
return (rishi(n,a));
}
else{
return a;
}
}
int main(void) {
int n,a=100000;
scanf("%d",&n);
printf("%d\n",rishi(n,a));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166249/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166249/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n;
int sum=100000;
int i;
scanf("%d",&n);
for(i=0;i<n;i++){
sum*=1.05;
if(sum%1000!=0){
sum+=1000;
sum/=1000;
sum*=1000;
}
}
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 = 100000, b, n, f1;
scanf("%d",&n);
for(f1 = 1; f1 <= n; f1++)
{
a *= 1.05;
b = a % 1000;
a = (a / 1000) *1000;
if(b >= 1)
a += 1000;
}
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166357/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166357/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int i, n, amount = 100000;
scanf("%d", &n);
for (i = 0; i < n; i++) {
amount *= 1.05;
if (amount % 1000 != 0)
amount = amount - amount % 1000 + 1000;
}
printf("%d\n", amount);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166407/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166407/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 shu,i;
int answer=100000;
scanf("%d",&shu);
for(i=0;i < shu;i++){
answer = answer * 1.05;
if(answer % 1000 > 0){
answer = (answer/1000) * 1000 + 1000;
}
}
printf("%d\n",answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166465/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166465/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 debt=100000;
int i;
scanf("%d",&i);
for(;i>0;i--){
debt+=debt*0.05;
debt+=999;
debt/=1000;
debt*=1000;
}
printf("%d\n",debt);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166508/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166508/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main() {
int i, n, num=0;
double debt = 100000;
int k;
scanf("%d", &n);
if( n<0 || n>100)
printf ("error");
else
{
if( n==0 )
debt = 100000;
else
{
for(i=1; i<=n; i++)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166551/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166551/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void) {
int i,l,p=0;
char x[128];
while(scanf("%s",x)!=EOF){
l=strlen(x);
for(i=0;i<l/2+1;i++){
if(x[i]!=x[l-1-i])
break;
}
if(i==l/2+1)
p++;
}
printf("%d\n",p);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166609/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166609/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 isPalindromic(char *str);
int main(int argc, const char *argv[])
{
int cnt = 0;
char *str = malloc(sizeof(char)*100);
while(scanf("%s", str)!=EOF) if(isPalindromic(str)) cnt++;
printf("%d\n", cnt);
free(str);
return 0;
}
int isPalindromic(char *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166652/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166652/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//O(N^4)解のアイディアに加え
//各iについて「すでに使うことが確定している数のみを使ってa[i]から作れる数たち」を記録し
//「k以下の数だけを使ってxからyを作れるか」をO(N^3)で前計算しておけば
//残りがうまくいくかを各O(1)で判定できるので全体でO(N^3)
#include <stdio.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define bit(n,m)(((n)>>(m))&1)
int memo[60][60][60];//memo[i][j][k]=(k以下の数のみの操作でiからjを作れるか? Ye... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166702/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@memo = dso_local local_unn... |
#include<stdio.h>
int main()
{
int n,s;
scanf("%d",&n);
s=n*n*n;
printf("%d",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166746/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_166797/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166797/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int n;
int arr[100000];
int r[100000][11];
int l[100000];
int o[100000];
int main()
{
int ans1 = 0, ans2 = 0;
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d", &arr[i]);
r[0][arr[0]]++;
for (int i = 1; i < n; i++)
{
for (int j = 1; j <= 10; j++)
r[i][j] = r[i - 1][j];
r[i][a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b;
while(~scanf("%d",&a))
{
b=a*a*a;
printf("%d\n",b);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
printf("%d", N*N*N);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,k,a;
scanf("%d %d",&n,&k);
a=n-k;
if(k==0){
printf("1");
return 0;
}
if(a<=k) printf("%d",a);
else printf("%d",k);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
int n;
scanf("%d",&n);
printf("%d",n*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167011/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.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){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167055/source.c"
target datalayout = "e-m:e-p270: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.sd = type { i32, i3... |
#include <stdio.h>
int main(){
int N;
scanf("%d",&N);
if(N==1){
printf("1");
}else{
int O;
O=N*N*N;
printf("%d",O);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
int n;
scanf("%d",&n);
int comb = pow(n,3);
printf("%d",comb);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
int a;
scanf("%d", &a);
printf("%d", a*a*a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167192/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167192/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i;
while(scanf("%d%d",&a,&b)!=EOF)
{
if(b==0)
printf("1\n");
else if(a==b)
printf("%d\n",a-b);
else if(a/2>=b)
printf("%d\n",b);
else if(a/2<=b)
printf("%d\n",a-b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16725/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16725/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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
suuxxu */
#include <stdio.h>
#include <string.h>
#define SIZE 101
int main(void){
int length;
char word[SIZE];
// get input
scanf("%s", word); // s
length = (int)strlen(word);
// output answer
printf("%c", word[0]);
printf("%d", length - 2);
printf("%c\n", word[len... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
Tarara */
#include <stdio.h>
#include <string.h>
#define MAX_LENGTH 110
int main(void)
{
char word[MAX_LENGTH];
int length;
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_167336/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167336/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, m;
long long arr[200005];
int cmpfn(const void *_a, const void *_b){
long long *a, *b;
a = (long long *)_a;
b = (long long *)_b;
return (*a) - (*b);
}
int main(){
scanf("%d %d", &n, &m);
int i;
for(i = 0;i < n;i++)scanf("%lld", arr + i);
qsort(arr, n, sizeof... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16738/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16738/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(void){
char S[103]={'\0'};
scanf("%s",S);
printf("%c",S[0]);
printf("%d",strlen(S)-2);
printf("%c\n",S[strlen(S)-1]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167422/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167422/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_WORD 100
int main (void)
{
/* variables for main process */
char buffer_word[LEN_WORD];
// STEP.01
// read out the targe word
scanf( "%s", buffer_word );
// STEP.02
// output the shortened word
printf( "%c%d%c\n", buffer_word[0], strlen( buffer_word )-2, bu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
scanf("%s", s);
int i;
int f;
char b;
for(i=0;i<=strlen(s);i++){
if(s[i]>=65&&s[i]<=90)
s[i]=s[i]+32;
b = s[i-1];
}
char a = s[0];
i = i-3;
printf("%c%d%c\n",a,i,b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167509/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167509/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[101];
int len;
scanf("%s",str);
len = strlen(str);
char top = str[0];
char rear = str[len-1];
printf("%c%d%c\n",top,len-2,rear);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167567/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,n;
scanf("%d %d %d", &a, &b, &c);
if (a > b)
{
n = a;
a = b;
b = n;
}
if (a > c)
{
n = c;
c = b;
b = a;
a = n;
}
if (b > c)
{
n = c;
c = b;
b = n;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167617/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167617/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *nx, int *ny)
{
int temp = *nx;
*nx = *ny;
*ny = temp;
}
void sort3(int *n1, int *n2, int *n3)
{
if (*n1 > *n2) swap(n1, n2);
if (*n2 > *n3) swap(n2, n3);
if (*n1 > *n2) swap(n1, n2);
}
int main(void)
{
int na, nb, nc;
scanf("%d", &na);
scanf("%d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
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);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(a > c){tmp = a;
a = c;
c = tmp;}
if(b > c){tmp = b;
b = c;
c = tmp;}
printf("%d %d %d\n",a,b,c);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *p1, int *p2)
{
int tmp;
tmp=*p1;
*p1 = *p2;
*p2 = tmp;
}
int main()
{
int value[3];
int i=0;
scanf("%d %d %d", &value[0], &value[1], &value[2]);
while(1)
{
if(value[i] > value[i+1])
{
swap(&value[i], &value[i+1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167798/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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){
int x,y;
x=a,y=c;
a=y,c=x;
}
if(b>c){
int q,r;
q=b,r=c;
b=r,c=q;
}
if(a>b){
int n,m;
n=a,m=b;
a=m,b=n;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167840/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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<=c&&c<=a){
printf("%d %d %d\n",b,c,a);
}else if(b<=a&&a<=c){
printf("%d %d %d\n",b,a,c);
}else if(c<=b&&b<=a){
printf("%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167884/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a, b, c, z;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
z = a;
a = b;
b = z;
}
if (a > c) {
z = a;
a = c;
c = z;
}
if (b > c) {
z = b;
b = c;
c = z;
}
printf("%d %d %d\n", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167927/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c,x;
scanf("%d%d%d",&a,&b,&c);
if(a>b){
x=a; a=b; b=x;
}
if(b>c){
x=b; b=c; c=x;
}
if(a>b){
x=a; a=b; b=x;
}
printf("%d %d %d\n",a,b,c);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167970/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a<=b&&b<=c){
printf("%d %d %d\n",a,b,c);
}else if(a<=c&&c<=b){
printf("%d %d %d\n",a,c,b);
}else if(b<=a&&a<=c){
printf("%d %d %d\n",b,a,c);
}else if(b<=c&&c<=a){
printf("%d %d %d\n",b,c,a);
}else if(c<=a&&a<=b)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168012/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168012/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_168056/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168056/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if (c<b&&b<a) {
printf("%d %d %d\n",c,b,a);
} else if (c<a&&a<b) {
printf("%d %d %d\n",c,a,b);
} else if (b<a&&a<c) {
printf("%d %d %d\n",b,a,c);
} else if (b<c&&c<a||b==c&&c<a) {
printf("%d %d %d\n",b,c,a);
} else if (a<c&&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168106/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168106/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,x;
scanf("%d %d %d",&a,&b,&c);
if(a>b)
{
x=a;
a=b;
b=x;
}
if(b>c)
{
x=b;
b=c;
c=x;
}
if(a>b)
{
x=a;
a=b;
b=x;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168157/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168157/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <float.h>
#include <inttypes.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <math.h>
#ifdef __cplusplus
#include <bits/stdc++.h>
#endif
#define getchar getchar
#define putchar putchar
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
void swap( int *a, int *b );
int main( void )
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if( a > b )
swap( &a, &b );
if( b > c )
swap( &b, &c );
if( a > b )
swap( &a, &b );
printf("%d %d %d\n", a, b, c);
return 0;
}
void swap( int *a, int *b )
{
int temp;
temp = *a;
*a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168243/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168243/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 _CRT_SECURE_NO_WARNINGS
int main(void) {
int a, b,c,d;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &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_168337/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168337/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a[3], b, i;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 2; i++) {
if (a[0] > a[1]) {
b = a[0];
a[0] = a[1];
a[1] = b;
}
if (a[1] > a[2]) {
b = a[1];
a[1] = a[2];
a[2] = b;
}
}
printf("%d %d %d\n", a[0], ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168380/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168380/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x[3];
int temp;
scanf("%d %d %d\n",&x[0],&x[1],&x[2]);
if(x[0]>x[1]){
temp=x[0];
x[0]=x[1];
x[1]=temp;
}
if(x[1]>x[2]){
temp=x[1];
x[1]=x[2];
x[2]=temp;
}
if(x[0]>x[1]){
temp=x[0];
x[0]=x[1];
x[1]=temp;
}
printf("%d %d %d\n",x[0],x[1],x[2]);
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168423/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168423/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_168467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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=0;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
d=a;
a=b;
b=d;
}
if(a>c){
d=a;
a=c;
c=d;
}
if(b>c){
d=b;
b=c;
c=d;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168531/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168531/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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=b;
b=a;
a=temp;
}if(b > c){
temp=c;
c=b;
b=temp;
}if(a > b){
temp=b;
b=a;
a=temp;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168575/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168575/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 tmp;
do{
scanf("%d",&a);
}while(a>10000||a<1);
do{
scanf("%d",&b);
}while(b>10000||b<1);
do{
scanf("%d",&c);
}while(c>10000||c<1);
if(a>b){
tmp=a;
a=b;
b=tmp;
}
if(b>c){
tmp=c;
c=b;
b=tmp;
}
if(a>b){
tmp=a;
a=b;
b=tmp;
}
printf("%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168625/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168625/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int i , j , a[3] = {0} , mem ;
scanf("%d%d%d",&a[0],&a[1],&a[2]);
for (i = 0 ; i < 2 ; i++) {
for (j = i + 1 ; j < 3 ; j++) {
if (a[i] > a[j]) {
mem=a[i];
a[i]=a[j];
a[j]=mem;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168669/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168669/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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) && (b < c)){
printf("%d %d %d\n", a, b, c);
}
else if ((a < c) && (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 ((b < c) && (c < a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168711/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168711/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_168755/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168755/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if (a <= b&&b <= c)
printf("%d %d %d\n", a, b, c);
else if (a <= c&&c <= b)
printf("%d %d %d\n", a, c, b);
else if (b <= a&&a <= c)
printf("%d %d %d\n", b, a, c);
else if (b <= c&&c <= a)
printf("%d %d %d\n", b, c, a);
els... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168805/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168805/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_168849/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168849/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 t;
scanf("%d%d%d",&a,&b,&c);
if (a > b) {
t = a;
a = b;
b = t;
}
if (a > c) {
t = a;
a = c;
c = t;
}
if (b > c) {
t = b;
b = c;
c = t;
}
printf("%d %d %d\n",a,b,c);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168935/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_168979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168979/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 x;
int i,j;
scanf("%d %d %d",&a[0],&a[1],&a[2]);
for(i=0;i<3;i++){
for(j=i+1;j<3;j++){
if(a[i]>a[j]){
x = a[i];
a[i] = a[j];
a[j] = x;
}
}
}
printf("%d %d %d\n",a[0],a[1],a[2]);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169020/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c,k;
scanf("%d %d %d",&a,&b,&c);
while(a>b || b>c){
if(a>b){
k=a;
a=b;
b=k;
}
if(b>c){
k=b;
b=c;
c=k;
}
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_169107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169107/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(int argc, char const *argv[]) {
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;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169150/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_169208/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169208/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if ( a <= b && b <= c )
printf("%d %d %d\n", a, b, c);
else if ( a <= c && c <= b )
printf("%d %d %d\n", a, c, b);
else if ( b <= a && a <= c )
printf("%d %d %d\n", b, a, c);
else if ( b <= c && c <= ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_169295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169295/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 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);
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169345/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169345/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int i = 0;
int j = 0;
int num[3] = {0, 0, 0};
int temp = 0;
scanf("%d %d %d", &num[0], &num[1], &num[2]);
for (i = 0; i < 2; i++) {
for (j = i + 1; j < 3; j++) {
if (num[i] > num[j]) {
temp = num[i];
num[i] = num[j];
num[j] = temp;
}
}
}
printf ("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 tmp=0;
int i, j;
scanf("%d %d %d", &a[0], &a[1], &a[2]);
for (i = 0; i < 2; i++) {
for (j = i; j < 3; j++) {
if (a[i] > a[j]) {
tmp = a[i];
a[i] = a[j];
a[j] = tmp;
}
}
}
for (i = 0; i < 3; i++) {
printf("... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 5
#define M 5
int main() {
static char cc[N][M + 1];
int n, m, i, j, i_, j_, k;
scanf("%d%d", &n, &m);
for (i = 0; i < n; i++)
scanf("%s", cc[i]);
i_ = 0, j_ = 0, k = 0;
while (1) {
int i1, j1, d;
i1 = -1, j1 = -1, d = n + m + 1;
for (i = i_; i < n; i++)
for (j = j_; j ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16949/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16949/source.c"
target datalayout = "e-m:e-p270: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 [5... |
#include <stdio.h>
#include <math.h>
int main()
{
int n,a[100],i=0,s=0;
scanf("%d",&n);
while(n)
{
a[i++]=n%10;
n=n/10;
s+=a[i-1];
}
if(s<10)
printf("%d\n",s);
else
printf("%d\n",(s-1)%9+1);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16954/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16954/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main ()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a>b && a>c)
{
if(b>c)
printf("%d %d %d\n",c,b,a);
else
printf("%d %d %d\n",b,c,a);
}
if(b>a && b>c)
{
if(a>c)
printf("%d %d %d\n",c,a,b);
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a,b,c,i;
scanf("%d %d %d",&a ,&b ,&c);
if(a>b){
i=a;
a=b;
b=i;
}
if(b>c){
i=b;
b=c;
c=i;
}
if(a>b){
i=a;
a=b;
b=i;
}
printf("%d %d %d\n",a,b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169640/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 main(void)
{
int a, b, c, x;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if (a >= b){
x = a;
a = b;
b = x;
}
if (b >= c){
x = c;
c = b;
b = x;
}
if (a >= b){
x = a;
a = b... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int x,y,z;
int temp;
scanf("%d %d %d",&x,&y,&z);
if(x<=y){
;
}else{
temp=y;
y=x;
x=temp;
}
if(y<=z){
;
}else{
temp=z;
z=y;
y=temp;
}
if(x<=y){
;
}else{
temp=y;
y=x;
x=temp;
}
printf("%d %d %d\n",x,y,z);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 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_169770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169770/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(int argc, const char * argv[]){
int a,b,c,tmp;
scanf("%d %d %d",&a,&b,&c);
if (a>b) {
tmp=a;
a=b;
b=tmp;
}
if (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_169820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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){
int tmp = b;
b = a;
a = tmp;
}
if (b > c){
int tmp = b;
b = c;
c = tmp;
}
if (a > b){
int tmp = b;
b = a;
a = tmp;
}
printf("%d %d %d\n", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_169907/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169907/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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)
{
if (a<c)
{
if (b<c)
printf("%d %d %d\n",a,b,c);
else
printf("%d %d %d\n",a,c,b);
}
else
printf("%d %d %d\n",c,a,b);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169950/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169950/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c,x;
scanf("%d%d%d",&a,&b,&c);
if(a>b){
x=a;
a=b;
b=x;
}
if(b>c){
x=b;
b=c;
c=x;
}
if(a>b){
x=a;
a=b;
b=x;
}
printf("%d %d %d\n",a,b,c);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, a[32], x;
for ( i = 0; i <3; i++ ){
scanf("%d", &a[i]);
}
for ( i = 0; i <2; i++ ){
for ( j = 0; j < 2; j++){
if ( a[j] > a[j+1]){
x = a[j];
a[j] = a[j+1];
a[j+1] = x;
}
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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],a,b,c;
for(a=0;a<3;a++){
scanf("%d",&d[a]);
}
for(a=0;a<3;a++){
for(b=a+1;b<3;b++){
if(d[a]>d[b]){
c=d[a];
d[a]=d[b];
d[b]=c;
}
}
}
for(a=0;a<3;a++){
printf("%d",d[a]);
if(a<2){
printf(" ");
}
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170107/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170107/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
unsigned n, m;
unsigned q[2];
unsigned node[100000] = { 0 };
unsigned i;
/* ----- Input & To_do ----- */
scanf("%d %d", &n, &m); //要素数, クエリ数入力
for(i=0; i<m; i++){
scanf("%d %d", &q[0], &q[1]); //クエリ入力
node[q[0]-1]++; //クエリで指定されたノードのカウント
node[q[1]-1]++; //根付き木で考え... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int D,N,M,m,d,k,i,S[100009],r;
int cmp(const void *a,const void *b)
{
return *(int*)a-*(int*)b;
}
int sch()
{
int i=S[N/2]<d?N/2:0;
int e=i+N/2+1;
int r=1000000000;
for(;i<=e;i++)
r=r>abs(S[i]-d)?abs(S[i]-d):r;
return r;
}
int main()
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@S = dso_local global [1000... |
#include <stdio.h>
int main() {
long long n, m, x;
scanf("%lld%lld", &n, &m);
x = n < m / 2 ? n : m / 2;
printf("%lld\n", x + ((m - (x * 2)) / 4));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long
int main(void) {
ll int N, M;
ll int n, m;
scanf("%lld %lld", &N, &M);
if (N * 2 >= M) {
printf("%lld\n", M/2);
}
else {
m = M - N * 2;
n = m / 4;
printf("%lld\n", n+N);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170295/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.