Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#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_166785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_166828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main()
{
int n;
while(~scanf("%d",&n))
{
printf("%d\n",n*n*n);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166871/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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*N);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_166914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_166958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_166958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{ int n,m;
scanf("%d %d", &n, &m);
if(m==0)
printf("1");
else if(n>=2*m)
printf("%d",m);
else
{
printf("%d",n-m);
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16700/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16700/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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_167043/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167043/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&N);
printf("%d",N*N*N);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n,m;
scanf("%d %d",&n,&m);
int x;
if(m==0){
printf("1\n");
return 0;
}
if(n%2==0){
x=n/2;
if(x>=m){
printf("%d\n",m);
return 0;
}
else{
x=x-(m-x);
printf("%d\n",x);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16713/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,res;
scanf("%d",&N);
res = N*N*N;
printf("%d\n",res);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#define EPS 0.0000000002
#define MAX 1010001000
typedef struct point{
double x, y;
}point;
typedef struct line{
point st, en;
}line;
double norm(point a);
double norm2(point a);
double distans(point a, point b);
point sum_vector(point a, point b);
point diff_vector(point ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167216/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167216/source.c"
target datalayout = "e-m:e-p270: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.line = type { %stru... |
#include<stdio.h>
int main(void)
{
int a,b,t,n;
scanf("%d%d",&a,&b);
if(b==0)
n=1;
else if(b>(a/2))
n=a-b;
else
n=b;
printf("%d\n",n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16726/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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
B30095 */
#include <stdio.h>
#include <string.h>
#define LEN 100
int main(void){
int len;
char str[LEN];
scanf("%s", str);
len = strlen(str);
printf("%c%d%c", str[0], len - 2, str[len - 1]); // chars between the first and the last are replaced by its numbers. ex: "example" -> "e5e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167302/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex6-2
Sagzar1993 */
#include <stdio.h>
#include <string.h>
#define SIZE 256
int main(void) {
int length, mid;
char words[SIZE];
//文字列の入力
fgets(words, SIZE, stdin);
//文字列の長さを取得
length = strlen(words);
//先頭と語尾の間の文字数
mid = length - 3;
putchar(words[0]); //先頭文字を出力
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167346/source.c"
target datalayout = "e-m:e-p270: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>
#include<stdlib.h>
int dsu[200005];
int par(int x){
if(dsu[x] < 0) return x;
return dsu[x] = par(dsu[x]);
}
void join(int x, int y){
int px, py;
px = par(x);
py = par(y);
if(px == py) return;
if(dsu[px] > dsu[py])join(py, px);
else {
dsu[px] += dsu[py];
dsu[py] = x;
}
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16739/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16739/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dsu = dso_local local_unname... |
#include <stdio.h>
int main(){
int qnt, sz;
int a[100001], b[100001], dif, has, st, end, possi;
scanf("%d", &qnt);
for(int i = 0; i < qnt; ++i){
scanf("%d", &sz);
for(int j = 0; j < sz; ++j){
scanf("%d", &a[j]);
}
for(int j = 0; j < sz; ++j){
scanf("%d", &b[j]);
}
has = 0;
st = end = sz;
possi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16744/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16744/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=0;
char s[102];
scanf("%s",s);
while(s[n]!='\0'){
n++;
}
printf("%c%d%c\n",s[0],n-2,s[n-1]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167490/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
int i;
char S[101];
scanf("%s",S);
for(i=0;S[i]!='\0';i++){
}
printf("%c%d%c",S[0],i-2,S[i-1]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167562/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void swap(int *a, int *b);
int main() {
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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(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);
}e... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d\n",&a,&b,&c);
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_167692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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)&&(a>=c))
{
if(b>=c)
{
printf("%d %d %d\n",c,b,a);
}
else
{
printf("%d %d %d\n",b,c,a);
}
}
else if((b>=a)&&(b>=c))
{
if(a>=c)
{
printf("%d %d %d\n",c,a,b);
}
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) a += b;b = a - b;a -= b
int main()
{
int a[3];
scanf("%d%d%d", &a[0], &a[1], &a[2]);
if (a[0] > a[1]){
SWAP(a[0], a[1]);
}
if (a[1] > a[2]){
SWAP(a[1], a[2]);
}
if (a[0] > a[1]){
SWAP(a[0], a[1]);
}
if (a[1] > a[2]){
SWAP(a[1], a[2]);
}
printf("%d %d %d\n", a[0]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167786/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c,d;
scanf("%d %d %d", &a, &b, &c);
if(a > b){
d = b;
b = a;
a = d;
}
if(b > c){
d = c;
c = b;
b = d;
}
if(a > b){
d = b;
b = a;
a = d;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_167872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, w;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
w = a;
a = b;
b = w;
}
if (b < c) printf("%d %d %d\n", a, b, c);
if (a <= c && c <= b) printf("%d %d %d\n", a, c, b);
if (a > c) printf("%d %d %d\n", c, a, b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167922/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_167973/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167973/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d %d\n", &x, &y, &z);
if (x <= y && y <= z) {
printf("%d %d %d\n", x, y, z);
}
else if (y <= z && z <= x) {
printf("%d %d %d\n", y, z, x);
}
else if (z <= x && x <= y) {
printf("%d %d %d\n", z, x, y);
}
else if (x <= z && z <= y) {
printf("%d %d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
char str[20];
int a;
int b;
int c;
int d;
int x;
int y;
int z;
fgets(str, sizeof(str), stdin);
sscanf(str, "%d %d %d",&a, &b, &c);
if(a < b){
} else if(a > b){
x = a;
a = b;
b = x;
}
if(b < c){
}else if(b > c){
y = b;
b = c;
c = y;
}
if(a < b){
}else if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168066/source.c"
target datalayout = "e-m:e-p270: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 (void)
{
int a,b,c;
scanf("%d %d %d\n",&a,&b,&c);
if(a<=b && b<=c)
{
printf("%d %d %d\n",a,b,c);
}
else if(a<=c && c<=b)
{
printf("%d %d %d\n",a,c,b);
}
else if(b<=a && a<=c)
{
printf("%d %d %d\n",b,a,c);
}
else if(c<=a && a<=b)
{
printf("%d %d %d\n",c,a,b);
}
else... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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=b; b=a; a=z;
}
if(a>c){
z=c; c=a; a=z;
}
if(b>c){
z=c; c=b; b=z;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int x, y, a, b, c;
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){
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_168196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
i=a;
a=b;
b=i;
}
if(a>c){
i=a;
a=c;
c=i;
}
if(b>c){
i=b;
b=c;
c=i;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168239/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168239/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int i, j,t;
int Arry[3];
scanf( "%d %d %d", &a, &b, &c );
Arry[0] = a;
Arry[1] = b;
Arry[2] = c;
for( i = 0; i < 3; i++ )
{
for( j = i+1; j < 3; j++ )
{
if( Arry[i] > Arry[j] )
{
tmp = Arry[i];
Arry[i] = Arry[j];
Arry[j] = tmp;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a,b,c,x,y,z,o,p;
scanf("%d %d %d\n",&a,&b,&c);
x=a;y=b;z=c;
if(x>y)
{x=b;y=a;}
if(y>z)
{o=y;y=c;z=o;}
if(x>y)
{p=x;x=y;y=p;}
printf("%d %d %d\n",x,y,z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168383/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168383/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",&a) ;
scanf("%d",&b) ;
scanf("%d",&c) ;
if(a>b){
d = b ; b = a ; a = d ;
}
if(a>c){
d = c ; c = a ; a = d ;
}
if(b>c){
d = c ; c = b ; b = d ;
}
printf("%d %d %d\n",a,b,c) ;
return 0 ;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168426/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168426/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ,i , j , k , flag , size;
scanf("%d",&t) ;
while(t--) {
scanf("%d",&n) ;
size=2*n ;
int arr[size] ;
for(i=0;i<size;i++) {
scanf("%d",&arr[i]) ;
}
for(i=0;i<n-1;i++) {
j=0 ;
while(arr[j]==0)
j++ ;
if(arr[j]%2==0)
flag=2 ;
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16847/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16847/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,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_168512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168563/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168563/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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\n",&a);
scanf("%d\n",&b);
scanf("%d",&c);
if(a>b){
temp=a;
a=b;
b=temp;
}
if(a>c){
temp=a;
a=c;
c=temp;
}
if(b>c){
temp=b;
b=c;
c=temp;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168664/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168664/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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\n", &a, &b, &c);
if(c > b && b > a){
printf("%d %d %d\n", a, b, c);
}
if(b > c && c > a){
printf("%d %d %d\n", a, c, b);
}
if(a > c && c > b){
printf("%d %d %d\n", b, c, a);
}
if(c > a && a > b){
printf("%d %d %d\n", b, a, c);
}
if(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168721/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168721/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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],x,i,j;
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]){
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_168772/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168772/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_168815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168815/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int x=0,y=0,z=0;
1<=x,y,z&&x,y,z<=10000;
scanf("%d %d %d",&x,&y,&z);
if(x<=y&&y<=z)
{
printf("%d %d %d\n",x,y,z);
}
else if(x<=z&&z<=y)
{
printf("%d %d %d\n",x,z,y);
}
else if(y<=x&&x<=z)
{
printf("%d %d %d\n",y,x,z);
}
else if(y<=z&&z<=x)
{
printf("%d %d %d\n",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168859/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168859/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c,tmp=0;
scanf("%d %d %d",&a,&b,&c);
if(a>c){
tmp=a;
a=c;
c=tmp;
}
if(a>b){
tmp=a;
a=b;
b=tmp;
}
if(b>c){
tmp=b;
b=c;
c=tmp;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168901/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168901/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
Amit Kumar Bala Antu
Bangladesh
Remember the name. Best is yet to come.
National Anthem of Bangladesh
Written By: Rabindranath Tagore
আমার সোনার বাংলা
আমি তোমায় ভালবাসি
চিরদিন তোমার আকাশ
চিরদিন তোমার আকাশ
তোমার বাতাস আমার প্রাণে
ও মা
আমার প্রাণে বাজায় বাঁশি
সোনার বাংলা
আমি তোমায় ভালবাসি
ও মা
ফাগুনে তোর আমের ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16896/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16896/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int a, b, c;
scanf("%d %d %d" ,&a, &b, &c);
if(a < b ){
if(b < c){
printf("%d %d %d\n" ,a, b, c);
}
else {
if(a < c ){
printf("%d %d %d\n",a, c, b);
}
else{
printf("%d %d %d\n",c, a, b);
}
}
}
else{
if(a < c){
printf("%d ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169001/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169001/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,min,max,middle;
scanf("%d %d %d",&a,&b,&c);
if(a<b && a<c){
min=a;
if(b<c){
middle=b;
max=c;
}else{
middle=c;
max=b;
}
}else if(b<a && b<c){
min=b;
if(a<c){
middle=a;
max=c;
}else{
middle=c;
max=a;
}
}else{
min=c;
if(a<b){
mi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169045/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169045/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int a,b,c;
int max,min,mid;
scanf("%d %d %d",&a,&b,&c);
if (a > b && a > c) {
max = a;
if (b > c) {
mid = b;
min = c;
} else {
mid = c;
min = b;
}
} else if (b > c) {
max = b;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169096/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169096/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,m;
scanf("%d %d %d\n",&a,&b,&c);
if(a>c){
m=a;
a=c;
c=m;}
if(a>b){
m=a;
a=b;
b=m;}
if(b>c){
m=b;
b=c;
c=m;}
printf("%d %d %d\n",a,b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169139/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169139/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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){
printf("%d %d %d\n",b,a,c);
}
else if(b > c){
printf("%d %d %d\n",c,b,a);
}
else if(a > c && b < c){
printf("%d %d %d\n",b,c,a);
}
else if(a == b){
if(a > c){
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169197/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169197/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if(a<b) {
if(b<c) printf("%d %d %d\n",a,b,c);
else if(a<c) printf("%d %d %d\n",a,c,b);
else printf("%d %d %d\n",c,a,b);
}
else if(a<c) printf("%d %d %d\n",b,a,c);
else if(b<c) printf("%d %d %d\n",b,c,a);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169254/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169254/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#define N 3
int main(void){
int i = 0;
int wk = 0;
int num[3] = {0};
int sortflag = 0;
scanf("%d %d %d", &num[0], &num[1], &num[2]);
do{
sortflag = 0;
for(i = 0 ; i < N - 1 ; i++){
if(num[i] > num[i + 1]){
wk = num[i];
num[i] = num[i + 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169298/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169298/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 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_169355/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169355/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 b,c,d;
for(d = 0;d < 3;d++){
scanf("%d",&a[d]);
}
for(b=0;b<2;b++){
for(c=b+1;c<=2;c++){
if(a[b]>a[c]){
d = a[b];
a[b] = a[c];
a[c] = d;
}
}
}
printf("%d %d %d\n",a[0],a[1],a[2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169399/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169399/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 iswap(int *a, int *b);
int main() {
int a;
int b;
int c;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
iswap(&a, &b);
}
if (a > c) {
iswap(&a, &c);
}
if (b > c) {
iswap(&b, &c);
}
printf("%d %d %d\n", a, b, c);
return 0;
}
void iswap(int *a, int *b) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169441/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169441/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void swap(int *a, int *b) {
int tmp;
tmp = *a;
*a = *b;
*b = tmp;
}
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);
retur... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169492/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169492/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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\n",&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_169564/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169564/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",c,b,a);
else if(c>=b)printf("%d %d %d\n",b,c,a);
}
else if(b>=a&&b>=c){
if(a>=c)printf("%d %d %d\n",c,a,b);
else if(c>=a)printf("%d %d %d\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169607/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169607/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 Nums[3];
scanf("%d %d %d", &Nums[0], &Nums[1], &Nums[2]);
for(int i=0;i<3;i++){
for(int j=0;j<i;j++){
if(Nums[i]<Nums[j]){
int temp=Nums[i];
Nums[i]=Nums[j];
Nums[j]=temp;
}
}
}
printf("%d %d %d\n", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169650/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169650/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_169708/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169708/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int a, b, c;
int main(){
scanf("%d %d %d", &a, &b, &c);
if (a <= b && b <= c){
printf("%d %d %d\n", a, b, c);}
else if (a <= b && b >= c && a >= c){
printf ("%d %d %d\n", c, a, b);}
else if (a >= b && b >= c){
printf ("%d %d %d\n", c, b, a);}
else if (a >= b && b <= c && a >= c){
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169759/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void sort(int number[]) {
int i, j,tmp;
for (i = 0; i < 3; i++) {
for (j = 2; j > i; j--) {
if (number[j] < number[j - 1]) {
tmp = number[j];
number[j] = number[j - 1];
number[j - 1] = tmp;
}
}
}
printf("%d %d %d\n", number[0],number[1],number[2]);
}
int main(void) {
in... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169809/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169809/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 x1, x2, x3, y1, y2, y3;
scanf("%d %d %d %d %d %d", &x1, &y1, &x2, &y2, &x3, &y3);
printf("3\n");
printf("%d %d\n", x1 + x3 - x2, y1 + y3 - y2);
printf("%d %d\n", x3 + x2 - x1, y3 + y2 - y1);
printf("%d %d\n", x2 + x1 - x3, y2 + y1 - y3);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16986/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, temp;
scanf("%d", &n);
if (n % 2 == 0)
{
printf("%d\n", n / 2);
for(int i = 0; i < n / 2; i++)
{
printf("2 ");
}
puts("");
return 0;
}
else
{
temp = n - 3;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16991/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16991/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, 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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169953/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169953/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,t;
scanf("%d %d %d",&a,&b,&c);
if (a>b) {
t=a;
a=b;
b=t;
}
if (c<a) {
t=c;
c=b;
b=a;
a=t;
} else if (a<=c && c<b) {
t=c;
c=b;
b=t;
}
printf("%d %d %d\n",a,b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169997/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169997/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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" , &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);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170038/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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<a && a<b){
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170081/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170081/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_170124/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170124/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n,k;
scanf("%d%d",&n,&k);
long num;
long answer;
num = (long)n/k;
answer = num * num * num;
if(k % 2 == 0){
num = (long)(n + k/2) / k;
answer += num * num * num;
}
printf("%ld\n",answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170182/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170182/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
long long n,m;
scanf("%lld%lld", &n, &m);
if (2*n > m) printf("%lld", m/2);
else printf("%lld", n+(m-n*2)/4);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170232/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170232/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
long long int n,m,s,i;
scanf("%ld %ld",&n,&m);
if(m<=2*n)
printf("%ld",m/2);
else printf("%ld",n+(m-2*n)/4);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170276/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170276/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
long long int N , M , sum =0 ;
scanf("%lld %lld" , &N , &M);
if( N >= M / 2){
sum = M / 2;
}else{
sum += N;
M -= 2*N;
sum += M/4;
}
printf("%lld" , sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170319/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170319/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdint.h> // int64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
// <arr[0]> <arr[1]> .. <arr[size-1]>
int fget_array(int *arr, int size) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170362/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170362/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 p, c, b, e, h, g, i, sc;
scanf("%d %d %d %d %d %d", &p, &c, &b, &e, &h, &g);
for(i=0;i<100;i++){
if(i == p){
sc = c + b + e;
break;
}else if(i == c){
sc = p + b + e;
break;
}else if(i == b){
sc = p + c + e;
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170405/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170405/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1[70],s2[70],s3[70],na[1000][70],s[71];
int st[1010],n,m,i,j,r,p[1010]={-1};
while(scanf("%d %d",&n,&m),n||m){
scanf("\n");
st[0]=-1;
for(j=0;j<n;j++){
fgets(s,71,stdin);
for(i=0;s[i]==' ';i++);
st[i+1]=j;
p[j]=st[i];//prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170449/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170449/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define N 200000
int main() {
static char s[N + 1];
int n, k, i;
scanf("%d%d%s", &n, &k, s);
if (n == 1 && k > 0)
s[0] = '0', k--;
else if (n > 1)
for (i = 0; i < n; i++)
if (i == 0 && s[i] != '1' && k > 0)
s[i] = '1', k--;
else if (i > 0 && s[i] != '0' && k > 0)
s[i] = '0',... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1705/source.c"
target datalayout = "e-m:e-p270: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.s = internal global [2000... |
#include<stdio.h>
#define Num 100000
int a[Num];
int search(int c){
if(c == a[c])
return c;
return a[c] = search(a[c]);
}
int main(){
int i,x,y,n,m,z;
for(i=0;i<Num;i++){
a[i] = i;
}
scanf("%d %d",&x,&y);
for(i=0;i<y;i++){
scanf("%d %d", &n,&m);
if(search(n) != searc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170542/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170542/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@a = dso_local local_unname... |
#include <stdio.h>
int unionfind[100000];
void unionfind_init(int n)
{
for(int i = 0; i < n; ++i) { unionfind[i] = i; }
}
int unionfind_root(int x)
{
if(x != unionfind[x])
{
unionfind[x] = unionfind_root(unionfind[x]);
}
return unionfind[x];
}
void unionfind_merge(int s, int t)
{
unionfind[unionfind_root(s)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170586/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170586/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@unionfind = dso_local loca... |
#include<stdio.h>
int main(){
int unused __attribute__((unused));
int a, b, c, min = 100000000;
unused = scanf("%d %d %d", &a, &b, &c);
if(min > a+b) min = a+b;
if(min > a+c) min = a+c;
if(min > b+c) min = b+c;
printf("%d", min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170636/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170636/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Ver19.02
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1 << 29
#define LLINF 4545454545454545454
#define MOD 1000000007
#define ll long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const void *a, const void *b) { return *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170694/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170694/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a,b,c,d,e,f;
scanf("%d%d%d",&a,&b,&c);
d=a+b;
e=b+c;
f=a+c;
if(d<=e&&d<=f){
printf("%d\n",d);
}
else if(e<=d&&e<=f){
printf("%d\n",e);
}
else if(f<=d&&f<=e){
printf("%d\n",f);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170737/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170737/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int num[2];
int i,max;
scanf("%d %d %d",&num[0],&num[1],&num[2]);
max = num[0];
for(i = 1; i <= 2; i++){
if(max < num[i]){
max = num[i];
}
}
printf("%d",num[0] + num[1] + num[2] - max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170780/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170780/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
int min = a + b;
if(min > b + c) min = b + c;
if(min > a + c) min = a + c;
printf("%d\n", min);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170823/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ans;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
int max;
max = a;
if (max < b) max = b;
if (max < c) max = c;
printf("%d", a+b+c-max);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170867/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170867/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,j,k,l,g,f,d,x,y;
scanf("%d",&n);
int a[10000];
if(n%2==0)
{
x = n/2;
printf("%d\n",x);
for(i=1;i<=x;i++)
{
printf("2 ");
}
printf("\n");
}
else
{
y = n-3;
x = y/2;
printf("%d\n",x+1);
for(i=1;i<=x;i++)
{
printf("2 ");
}
printf("3\n");
}
re... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17091/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,b;
scanf("%d",&n);
b = n/100;
printf("ai1333");
for(int i =0; i<b; i++){
printf("3");
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170960/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170960/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x[5],y[5], a,b,p,i;
scanf("%d %d %d %d %d %d", &x[1],&y[1],&x[2],&y[2],&x[3],&y[3]);
printf("3\n");
a = x[2] - x[1] +x[3];
b = y[2] - y[1] +y[3];
printf("%d %d\n", a,b);
a = x[2] + x[1] -x[3];
b = y[2] + y[1] -y[3];
printf("%d %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17101/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X,day;
scanf("%d",&X);
day=X%7;
if(day==0)
puts("thu");
else if(day==1)
puts("fri");
else if(day==2)
puts("sat");
else if(day==3)
puts("sun");
else if(day==4)
puts("mon");
else if(day==5)
puts("tue");
else if(day==6)
puts("wed");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171053/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171053/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int a;
scanf("%d",&a);
if(a<1200) printf("ABC");
else if(a<2800) printf("ARC");
else printf("AGC");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int n3=0;
int ans(int n){
if(n%2==0){
return n/2;
}
else{
n-=3;
n3=1;
if(n==0){
return 1;
}
else{
return 1+(n/2);
}
}
}
int main(){
int n;
scanf("%d",&n);
int k=ans(n),i;
printf("%d\n",k);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n3 = dso_local local_unnamed... |
#include <stdio.h>
int main(void) {
int r; scanf("%d", &r);
if( r < 1200 ) { printf("ABC\n"); }
else if( r < 2800) { printf("ARC\n"); }
else { printf("AGC\n"); }
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171183/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171183/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int r;
scanf("%d",&r);
if(r<1200){
printf("ABC");
}
else if(r>=1200&&r<2800){
printf("ARC");
}
else{
printf("AGC");
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171226/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171226/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,x,i,j;
scanf("%d",&n);
if(n%2==0)
{
printf("%d\n",n/2);
for(i=0; i<n/2; i++)
{
if(i>0) printf(" ");
printf("2");
}
}
else
{
n = n-3;
printf("%d\n",(n/2)+1);
for(i=0; i<n/2; i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17127/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <math.h>
int main()
{
int i,n,k,R;
scanf("%d",&R);
if(R<1200){
printf("ABC");
}else if (R<2800){
printf("ARC");
}else{
printf("AGC");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171363/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171363/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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
/** Application main entry point. */
int main (
int argc,
char * argv[ ]
)
{
int i;
for ( ; ; )
{
unsigned int f = 0;
int d[ N ];
for ( i = 0; i < N; ++i )
{
scanf ( "%d", d + i );
if ( !d[ i ] ) goto BREAKK;
f |= 1 << ( d[ i ] - 1 )... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171442/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171442/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
long long int n,a,b,c,d,i;
scanf("%lld",&n);
d=n/2;
printf("%lld\n",d);
for(i=0;i<d-1;i++)
{
printf("2");
printf(" ");
}
if(n%2!=0)
{
printf("3");
}
else printf("2");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17150/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
/* ex_4-2. nknm */
#include <stdio.h>
#include <math.h>
//関数を宣言
double length(double len_h, double len_m, double hour, double min);
int main(void){
double len_h, len_m, hour, min, ans;
scanf("%lf%lf%lf%lf", &len_h, &len_m, &hour, &min);
//関数の計算結果を出力
ans = length(len_h, len_m, hour, min);
print... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171543/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171543/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* ex4_2
riverstone*/
#include<stdio.h>
#include<math.h>
int main(void){
//時針の長さlen_hourと分針の長さlen_minute、その瞬間での時hourと分minuteを受け取る
double len_hour, len_minute, hour, min;
scanf("%lf %lf %lf %lf", &len_hour, &len_minute, &hour, &min);
double theta_h = 2 * M_PI * (hour + min/60)/12; //時針と12の間のなす角度 ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171587/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171587/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.