Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#include <string.h>
int main() {
char s[111];
int sl;
scanf("%s", s);
sl = strlen(s);
printf("%c%d%c\n",s[0], sl - 2, s[sl - 1]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define N 111111
int tc, n, a[N], b[N], k, tmp, flag, cnt;
int main(void)
{
scanf("%d", &tc);
while (tc--)
{
scanf("%d", &n);
k=flag=cnt=0;
for (int i=1; i<=n; i++) scanf("%d", &a[i]);
for (int i=1; i<=n; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16756/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdlib.h>
#include <stdio.h>
//#pragma warning(disable:4996)
typedef unsigned int i_t;
int main(void){
i_t lift,n,t,k,j,i;
i_t a[100000];
i_t b[100000];
scanf("%u",&t);
for(j = 0;j<t;j++){
lift = 0;
k = 0;
scanf("%u",&n);
for(i = 0;i<n;i++)
scanf("%u",&a[i]);
for(i = 0;i<n;i++)
scanf("%u... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16761/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define MIN 1
#define MAX 10000
#define IS_ERR(x) (x < MIN || x > MAX)
void swap(int *x, int *y)
{
int swap;
swap = *x;
*x = *y;
*y = swap;
}
int main(void)
{
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(IS_ERR(a) || IS_ERR(b) || IS_ERR(c))
{
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167653/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167653/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
void swap(int *x, int *y){
int tmp = *x;
*x = *y;
*y = tmp;
}
int main(){
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if((a < c && c < b) || (a == c && b > a)){
swap(&b, &c);
}
else if((b < a && a < c) || (a == c && b < a)){
swap(&a, &b);
}
el... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(){
int t;
scanf("%d", &t);
for(int j = 0; j < t; ++j){
int n;
scanf("%d", &n);
int a[100050], b[100050], c[100050];
char s[100050];
for(int i = 0; i < n; ++i)
scanf("%d", &a[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16774/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16774/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int a[3],i,j,swap;
for(i=0;i<3;i++){
scanf("%d",&a[i]);
}
for(i=0;i<2;i++){
for(j=2;j>i;j--){
if(a[j-1]>a[j]){
swap=a[j];
a[j]=a[j-1];
a[j-1]=swap;
}
}
}
printf("%d %d %d\n",a[0],a[1],a[2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167790/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167790/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,ex;
scanf("%d %d %d",&a,&b,&c);
if(a > b){
ex = a;
a = b;
b = ex;
}
if(b > c){
ex=b;
b=c;
c=ex;
}
if(a > b){
ex=a;
a=b;
b=ex;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167833/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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=b;
b=a;
a=d;
}if(b>c){
d=c;
c=b;
b=d;
}if(a>b){
d=a;
a=b;
b=d;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 1000
int max(int a, int b) { return a > b ? a : b; }
int i_;
int query(int *ii, int n) {
int h, x;
printf("? %d", n);
for (h = 0; h < n; h++)
printf(" %d", ii[h] + 1);
printf("\n"), fflush(stdout);
scanf("%d%d", &i_, &x), i_--;
return x;
}
int *oj[N], oo[N]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16792/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 print_order(int a, int b, int c);
int main(void) {
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
if(a <= b && b <= c) {
print_order(a, b, c);
}
else if(a <= c && c <= b) {
print_order(a, c, b);
}
else if(b <= a && a <= c) {
print_order(b, a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_167963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_167963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a=0,b=0,c=0,x=0,y=0,z=0;
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_168005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *,int *);
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 *x,int *y)
{
int temp;
temp = *x;
*x = *y;
*y = temp;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168049/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168049/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
int sz, n;
char now[1555][1555], next[1555][1555], pat[555][555];
void gogo(void){
int i,j,ii,jj;
rep(i,sz) rep(j,sz){
if(now[i][j]=='.'){
rep(ii,n) rep(jj,n) next[i*n+ii][j*n+jj] = pat... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1681/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1681/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sz = dso_local local_unnamed_a... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int main()
{
// variable in description
int T;
int N;
// variable to support
int ans;
// variable to judge
int i;
int j;
int k;
scanf("%d",&T);
for(i=0;i<T;i++)
{
scanf("%d",&N);
if(N%2)
{
N--;
}
ans = N / 2;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16815/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16815/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,temp;
scanf("%d %d %d",&a,&b,&c);
while(1){
if(a<=b){
temp = a;
a = b;
b = temp;
}
if(b<=c){
temp = b;
b = c;
c = temp;
}
if(c<=a){
tem... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168193/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168193/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",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(b>a&&a>c){
printf("%d %d %d\n",c,a,b);
}
if(a>b&&b>c){
printf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168236/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168236/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int a,b,c;
int tmp,i,j;
scanf("%d %d %d",&a,&b,&c);
if(a>b){
tmp = a;
a = b;
b = tmp;
}
if(a>c){
tmp = a;
a = c;
c = tmp;
}
if(b>c){
tmp = b;
b = c;
c = tmp;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168287/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168287/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
# include<stdio.h>
int main(void){
int t;
scanf("%d",&t);
while(t--){
int n;
scanf("%d",&n);
printf("%d\n",n/2);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16833/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(a > c)
{
tmp = a;
a = c;
c = tmp;
}
if(b > c)
{
tmp = b;
b = c;
c = tmp;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168373/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168373/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c;
int temp;
scanf("%d %d %d ",&a,&b,&c);
if(a>b){
temp=a;
a=b;
b=temp;
}
if(b>c){
temp=b;
b=c;
c=temp;
}
if(a>b){
temp=a;
a=b;
b=temp;
}
printf("%d %d %d\n",a,b,c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168416/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ;
long int n ;
scanf("%d",&t) ;
while(t--) {
scanf("%d",&n) ;
if(n%2==0)
printf("%ld\n",n/2) ;
else {
printf("%ld\n",(n-1)/2) ;
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16846/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16846/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main (void)
{
int a,b,c,x,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... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168524/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168524/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c;
int tmp,i,j;
scanf("%d %d %d",&a,&b,&c);
if (a>b)
{
tmp = a;
a = b;
b = tmp;
}
if (a>c)
{
tmp = a;
a = c;
c = tmp;
}
if (b>c)
{
tmp = b;
b = c;
c = tmp;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168568/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(c > b && b > a){
printf("%d %d %d\n",a,b,c);
}
else if(b > c && c > a){
printf("%d %d %d\n",a,c,b);
}
else if(c > a && a > b){
printf("%d %d %d\n",b,a,c);
}
else if(a > c && c > b){
printf("%d %d %d\n",b,c,a);
}
else if(b > a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c,x;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a > b){
x = 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_168661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168661/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c;
int q[3];
int temp;
int i;
scanf("%d%d%d",&q[0],&q[1],&q[2]);
for(i=0;i<3;i++){
for(a=2;a>i;a--){
if(q[a-1]>q[a]){
temp=q[a];
q[a]=q[a-1];
q[a-1]=temp;
}
}
}
printf("%d %d %d\n",q[0],q[1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 (b<a){
d=a;
a=b;
b=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);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int array[3];
for(i=0;i<3;i++){
scanf("%d",&array[i]);
}
for(i=0;i<2;i++){
for(j=2;j>i;j--){
if(array[j-1]>array[j]){
a=array[j];
array[j]=array[j-1];
array[j-1]=a;
}
}
}
printf("%d %d %d\n",array[0],array[1],array[2]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168799/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168799/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
(((0<=a)&&(a<=10000))&&((b>=0)&&(b<=10000))&&((c>=0)&&(c<=10000)));
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))
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168841/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int a, b, c, temp;
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
temp = a;
a = b;
b = temp;
}
if (b > c) {
temp = b;
b = c;
c = temp;
}
if (a > b) {
temp = a;
a = b;
b = temp;
}
printf("%d %d %d\n", a, b, c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, S;
scanf("%d%d%d", &a, &b, &c);
if (a > b) {
S = a;
a = b;
b = S;
}
if (b > c) {
S = b;
b = c;
c = S;
}
if (a > b) {
S = a;
a = b;
b = S;
}
printf("%d %d %d\n", a, b, c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_168971/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_168971/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,w;
scanf("%d%d%d",&a,&b,&c);
if(a>c){
w=c;
c=a;
a=w;
}
if(b>c){
w=c;
c=b;
b=w;
}
if(a>b){
w=b;
b=a;
a=w;
}
printf("%d %d %d\n",a,b,c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169013/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169013/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,x,y,z,tmp;
scanf("%d %d %d\n",&x,&y,&z);
for(i=0;i<3;i++){
if(x>y){
tmp=y;
y=x;
x=tmp;
}else if(y>z){
tmp=z;
z=y;
y=tmp;
}
}
printf("%d %d %d\n",x,y,z);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int t;
scanf("%d",&t);
for(int i=0;i<t;i++){
int n;
scanf("%d\n",&n);
printf("%d\n",n/2);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16910/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16910/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int 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_169143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
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_169200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main() {
int a, b, c; //変数の宣言
int x;
//入力
scanf("%d %d %d", &a, &b, &c);
//aが一番小さいつもりで
//処理
if (a > b) {
x = a;
a = b;
b = x;
}
//この時点で確実にa<b
if (b > c) {
x = b;
b = c;
c = x;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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*t,int*s)
{
int temp=*t;
*t=*s;
*s=temp;
}
void sort3(int*a,int*b,int*c)
{
if(*a>*b) swap(a,b);
if(*b>*c) swap(b,c);
if(*a>*b) swap(a,b);
}
int main(void){
int x, y, z;
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&z);
sort3(&x,&y,&z... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_169338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169338/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int a, b, c, tmp;
scanf("%d %d %d", &a, &b, &c);
if(b<a){
tmp=a;
a=b;
b=tmp;
}
if(c<b){
tmp=b;
b=c;
c=tmp;
}
if(b<a){
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_169389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169389/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(int argc, char* argv[])
{
int a, b, c, w;
scanf("%d %d %d", &a, &b, &c);
if(a > b){
w = a;
a = b;
b = w;
}
if(b > c){
w = b;
b = c;
c = w;
}
if(a > b){
w = a;
a = b;
b = w;
}
printf("%d %d %d\n", a, b, c);
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169431/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_169482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[]) {
// insert code here...
int x, y, z, tmp;
scanf("%d %d %d", &x, &y, &z);
if(x>y){
tmp=x;
x=y;
y=tmp;
}
if (x>z) {
tmp=x;
x=z;
z=tmp;
}
if (y>z) {
tmp=y;
y=z;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 iNum[3] = {0};
int iCount;
int iCount2;
int iSort;
scanf("%d %d %d",&iNum[0],&iNum[1],&iNum[2]);
for (iCount = 1; iCount < 3; iCount++)
{
for (iCount2 = 0; iCount2 < 3 - iCount; iCount2++)
{
if (iNum[iCount2] > iNum[iCount2+1])
{
iSort = iNum[iCount2];
iNum... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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* pInput1, int* pInput2)
{
int temp = *pInput1;
*pInput1 = *pInput2;
*pInput2 = temp;
}
int main()
{
int Input[3];
scanf("%d %d %d", &Input[0], &Input[1], &Input[2]);
while(-1){
if (Input[0] > Input[1]) {
swap(&Input[0], &Input[1]);
}
else if (In... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169633/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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&&b<=c)
printf("%d %d %d\n",a,b,c);
else if(b<=a&&b<=c&&a<=c)
printf("%d %d %d\n",b,a,c);
else if(c<=a&&c<=b&&a<=b)
printf("%d %d %d\n",c,a,b);
else if(a<=c&&a<=b&&c<=b)
printf("%d %d %d\n",a,c,b);
else if(b<=c&&b<=a&&c<=a)
p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169677/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 string[11];
scanf("%s",string);
int n = strlen(string);
if(n == 1 || n == 2)
printf("YES\n");
else
{
for(int i=2;i<n;i++)
{
int sum = string[i-1] - 64 + string[i-2] - 64;
if(sum <= 26)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16972/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, y, z;
int main( ) {
scanf("%d %d %d", &x, &y, &z);
if(x>=y&&y>=z) {
printf("%d %d %d\n", z, y, x);
} else if(x>=z&&z>=y) {
printf("%d %d %d\n", y, z, x);
} else if(y>=x&&x>=z) {
printf("%d %d %d\n", z, x, y);
} else if(z>=x&&x>=y) {
printf("%d %d %d\n", y, x, z);
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169763/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 input[3];
int dammy;
int i,j;
scanf("%d %d %d",&input[0],&input[1],&input[2]);
for(i = 0 ; i < 3 ; i++)
{
for( j = i + 1 ; j < 3 ; j++ )
{
if(input[i] > input[j])
{
dammy = input[i];
input[i] = input[j];
input[j] = dammy;
}
}
}
printf("%d %d ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169806/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 %... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169857/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169857/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,d1,d2,d3;
scanf("%d %d %d",&a,&b,&c);
if(a<b&&a<c){
d1=a;
if(b<c){
d2=b;d3=c;
}
else {
d2=c;d3=b;
}
}
else if(b<a&&b<c){
d1=b;
if(a<c){
d2=a;d3=c;
}
else{
d2=c;d3=a;
}
}
else {
d1=c;
if(b<a){
d2=b;d3=a;
}
else{
d2=a;d3=b;
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169943/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169943/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 date[3] = {0};
for (int i = 0; i < 3; i++) {
scanf("%d", &date[i]);
//printf("%d\n", date[i]); //デバック用
}
while (1) {
for (int i = 0; i < 2; i++) {
if (date[i] > date[i + 1]) {
//selection_sort
int temp = date[i];
date[i] = date[i + 1];
date[i + 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_169987/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_169987/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 *,int *);
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if(a > b){
swap(&a, &b);
}
if(a > c){
swap(&a, &c);
}
if(b > c){
swap(&b, &c);
}
printf("%d %d %d\n", a, b, c);
return 0;
}
void swap(int *x, int*y)
{
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170057/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170057/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a;
scanf("%d",&n);
if(n % 2 == 0)
{
a = n/2;
printf("%d\n",a);
for(i=0;i<a;i++)
printf("2 ");
}
else
{
a = n/2 -1;
printf("%d\n",a+1);
for(i = 0;i < a;i++)
printf("2 ");
pri... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17010/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17010/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#define llong long long
#define fr(i,l,r) for(i=(l);i<(r);i++)
#define min(p,q) ((p)<(q)?(p):(q))
#define max(p,q) ((p)>(q)?(p):(q))
int main(void)
{
//変数の宣言
int n,m;
int a,b;
int num[100010];
//よく使う変数
int i,j,k,l;
int flag=0;
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170150/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long int int64;
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>(0)?(a):-(a))
void run(void){
int n,k;
scanf("%d%d",&n,&k);
if(k==1){
printf("%lld\n",(int64)n*n*n);
return;
}
int64 d=n/k;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170194/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define SWAP(type, x, y... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long a, b, number = 0;
scanf("%lld %lld", &a, &b);
if(2 * a >= b)
number = b / 2;
else
{
number = a;
b = b - 2 * a;
number += b / 4;
}
printf("%lld\n", number);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(a, b) (a < b ? a : b)
int main(void) {
long sNum = 0, cNum = 0, scc = 0;
scanf("%ld %ld", &sNum, &cNum);
scc += (min(sNum, cNum / 2));
sNum -= scc;
cNum -= scc * 2;
scc += cNum / 4;
printf("%ld\n", scc);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a,b,c,d,e,f,ans;
scanf("%d %d %d %d %d %d",&a,&b,&c,&d,&e,&f);
ans=0;
if(d<=a && d<=b && d<=c){
ans=a+b+c;
}
else if(c<=a && c<=b && c<=d){
ans=a+b+d;
}
else if(b<=a && b<=c && b<=d){
ans=a+c+d;
}
else{
ans=b+c+d;
}
if(f<=e){
printf("%d\n",ans+e);
}
else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170374/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170374/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 score[10]={100,100,100,100,100,100,100,100,100},i,sum=0;
for(i=0;i<6;i++){
scanf("%d",&score[i]);
sum+=score[i];
if(i<4){
if(score[7]>score[i]){
score[7]=score[i];
}
}
else {
if(sc... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170417/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170417/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.score = priva... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char fmt_buf[256];
int prev_fmt = 0;
char *mkfmt(int n) {
if (n == prev_fmt) return fmt_buf;
prev_fmt = n;
memset(fmt_buf, 0, sizeof(typeof(fmt_buf)));
int c = 0;
for (int i = 0; i < n - 1; i++) {
memcpy(fmt_buf + c, "%lld ", 5);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170475/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170475/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prev_fmt = dso_local local... |
#include <stdio.h>
#define MAX_NUM 100000
int CC[MAX_NUM] = {0};
void init() {
int i;
for (i = 0; i < MAX_NUM; ++i) {
CC[i] = i;
}
}
int find(int a) {
if (a == CC[a]) {
return a;
}
return CC[a] = find(CC[a]);
}
int isSame(int a, int b) {
if (find(a) == find(b)) {
return 1;
} else {
return 0;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CC = dso_local local_unnam... |
#include <stdio.h>
#define N 100000
int CC[N] = {0};
void init() {
int i;
for (i = 0; i < N; ++i) {
CC[i] = i;
}
}
int find(int a) {
if (a == CC[a]) {
return a;
}
return CC[a] = find(CC[a]);
}
int isSame(int a, int b) {
if (find(a) == find(b)) {
return 1;
} else {
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@CC = dso_local local_unnam... |
#include <stdio.h>
int main(void){
int a, b, c;
scanf ("%d %d %d", &a, &b, &c);
int max = a;
if (b>max && b>c) {
max = b;
} else if (c>max && c>=b){
max = c;
}
printf("%d\n", a+b+c-max);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b, c, d, e, f;
scanf("%d %d %d", &a, &b, &c);
d = a + b;
e = b + c;
f = a + c;
if (d < e && d < f) {
printf("%d", d);
}
else if (e < d && e < f) {
printf("%d", e);
}
else if (d == e && d == f) {
printf("%d", d);
}
else {
printf("%d", f);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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)
printf("%d\n",b+c);
else if(b>a && b>c)
printf("%d\n",a+c);
else
printf("%d\n",a+b);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
#include <ctype.h>
#define NUMBER 3
int main( void )
{
int nPrice[NUMBER];
int i,j;
int tmp;
scanf( "%d %d %d" , &nPrice[0], &nPrice[1], &nPrice[2]);
for ( i = 0; i < NUMBER - 1 ; i++)
{
if ( nPrice[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
int d,e;
if (a > b){
d = a;
e = b;
} else {
d = b;
e = a;
}
if (e > c){
d = e;
e = c;
}else if (d > c && e < c){
d = c;
}else {
}
printf("%d\n",d+e);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170792/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
int max = a;
if (b > max) max = b;
if (c > max) max = c;
printf("%d\n", a + b+ c- max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
if ((a<=b && b<=c) || (b<=a && a<=c)) {
printf("%d",a+b);
}
else if((a<=c && c<=b) || (c<=a && a<=b)){
printf("%d",a+c);
}
else{
printf("%d",b+c);
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define _CRT_SECURE_NO_WARNINGS
//#define DEBUG
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int main(void) {
#ifdef DEBUG
printf("");
#endif
int a, b, c;
int min1;
int min2;
scanf("%d %d %d", &a, &b, &c);
if (a <= b) {
min1 = a;
min2 = b;
}
else {
min1 = b;
min2 = a;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170921/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170921/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int yakusimaru_hiroko;
if (scanf("%d", &x) != 1) return 1;
fputs("ai1333", stdout);
for (yakusimaru_hiroko = 0; yakusimaru_hiroko + 100 <= x; yakusimaru_hiroko += 100) {
putchar('3');
}
putchar('\n');
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_170965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_170965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int x;
scanf("%d", &x);
switch (x % 7){
case 0:
printf("thu\n");
break;
case 1:
printf("fri\n");
break;
case 2:
printf("sat\n");
break;
case 3:
printf("sun\n");
break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171014/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long int lld;
int m_flag[100001];
lld m_array[100001][2];
int main()
{
lld n, x, m, a, answer = 0;
int count = 1, turn_point;
scanf("%lld %lld %lld", &n, &x, &m);
for (int i = 0; i<=m; i++)
{
m_flag[i] = 0;
m_array[i][0] = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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\n");
} else if (r < 2800) {
printf("ARC\n");
} else {
printf("AGC\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,total;
scanf("%d",&a);
if(a<1200)
{
printf("ABC\n");
}
if(a>=1200 && a<2800)
{
printf("ARC\n");
}
if(a>=2800 && a<=4208)
{
printf("AGC\n");
}
//printf("%d\n",total);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int r;
scanf("%d",&r);
if (r<1200){
printf("ABC");
} else if (r<2800)
{
printf("ARC");
}
else
{
printf("AGC");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int r;
scanf("%d", &r);
if(r < 1200){
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_171230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int R;
scanf("%d",&R);
if(R < 1200){
printf("ABC\n");
return 0;
}
if(R < 2800){
printf("ARC\n");
return 0;
}
printf("AGC\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171281/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171281/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 rate;
scanf("%d",&rate);
if(rate < 1200){
printf("ABC");
}else if(rate < 2800){
printf("ARC");
}else{
printf("AGC");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171324/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171324/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
if(N<1200)puts("ABC");
else if(N<2800)puts("ARC");
else puts("AGC");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171368/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 quantidade2=0, quantidade3 = 0;
scanf(" %d", &n);
if(n==3) {
quantidade3++;
}
else {
while(n!=3) {
if(n==0)
break;
quantidade2++;
n-=2;
}
if(n!=0)
quantidade3++;
}
printf("%d\n", quantidade2+quantidade3);
for(i=0; i<quantid... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_17144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_17144/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void){
long long a,b;
long double h, m, c, result;
scanf("%lld",&a);
scanf("%lld",&b);
scanf("%Lf",&h);
scanf("%Lf",&m);
c=h*30.0+m*0.5-m*6.0;
if(c<0) c*=-1;
if(c>180.0) c=360.0-c;
result = a*a+b*b-2*a*b*cosl(c*M_PI/180... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171511/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171511/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
ruuu0048
*/
#include <stdio.h>
#include <math.h>
#define PI 3.14159265359 //πを定義
double radian_distance_cos(int hour,int minute); //時針と分針の間の角度の余弦を返す関数
int main(void){
int hour_length,minute_length; //時針と分針の変数を宣言
int hour,minute; //時間Hと分Mの変数を宣言
double distance; //求める距離の変数を宣言
scanf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171555/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171555/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
yy8332 */
#include <stdio.h>
#include <math.h>
int main(void){
double lengthA, lengthB, hour, minute, theta, ans;
//入力読み取り
scanf("%lf %lf %lf %lf", &lengthA, &lengthB, &hour, &minute);
//角度計算
theta = (((hour + minute / 60) * 30 - minute * 6) / 180) * M_PI;
//長さ計算
ans = pow(lengthA, 2.... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171605/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
Rikuta */
#include <stdio.h>
#include <math.h>
//円周率の定義
#define PI 3.141592653589
int main(void){
int hour_hand_length,min_hand_length,num_hour,num_min;
//入力受け取り
scanf("%d %d %d %d",&hour_hand_length,&min_hand_length,&num_hour,&num_min);
//何時何分を分になおす
int sum_mins=60*num_hour+num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171649/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171649/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
int a,b;
long double h,m,deg;
scanf("%d %d %Lf %Lf",&a,&b,&h,&m);
deg=2*3.141592653589793238462643383*(h/12+m/60/12-m/60);
printf("%20.20f",sqrt(a*a+b*b-2*a*b*cos(deg)));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171692/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171692/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14159265358979323846264338327950L
int main(void) {
int a,b,h,m;
scanf("%d%d%d%d", &a, &b, &h, &m);
long double rad = PI* 2 * (
(long double)h/ 12.0 + ((long double)m/ 60.0) / 12.0 - (long double)m/ 60.0);
long double rsq= (long double)(a*a+b*b) - (long doubl... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171735/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171735/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.141592653589793238462643383279502884197169399375105820974944592307816406286208998628034825342117067
int main()
{
int a, b, h, m;
double lx, ly, sx, sy;
double lk, sk;
double d;
double s, c;
scanf("%d %d %d %d", &a, &b, &h, &m);
lk = (h*60.0 + m) * 0.5;
lk = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171786/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
double a,b;
int h,m;
scanf("%lf %lf %d %d",&a,&b,&h,&m);
double ax,ay,bx,by;
double PI=3.14159265358979323846;
ax=cos(PI*h/6+PI*m/360);
ay=sin(PI*h/6+PI*m/360);
bx=cos(PI*m/30);
by=sin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main( int argc, char *argv[] )
{
int a, b, h, m;
double th1, th2;
double x1, y1, x2, y2;
double l;
scanf( "%d %d %d %d", &a, &b, &h, &m );
th1 = (h*60.+m) / 60. * 30. * 3.14159265359 / 180.;
th2 = m * 6. * 3.14159265359 / 180.;
x1 = (double)a ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171872/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void){
char str[21];
int n;
scanf("%s\n",str);
n=strlen(str); n--;
while(n>=0){
printf("%c",str[n]);
n--;
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 n[100]={0};
int i=20;
scanf("%s",n);
for(i;i<n;i--){
if(n[i]!=0)printf("%c",n[i]);
}
puts("");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_171980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_171980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main(void){
char s[21];
int i;
scanf("%s", s);
int len = strlen(s);
for(i = len - 1; i >= 0; i--)
putchar(s[i]);
putchar('\n');
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[21];
fgets(str, 21, stdin);
int i, len;
for(i = 0; i < 21; i++) {
if(str[i] == '\0') {
len = i;
break;
}
}
for(i = 0; i < len; i++) {
printf("%c", str[len - 1 - i]);
}
printf("\n"); ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172073/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172073/source.c"
target datalayout = "e-m:e-p270: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 <string.h>
#define SIZE 256
int main(void){
char str[SIZE];
char reversestr[SIZE];
int i;
int length;
scanf("%s", str);
length = strlen(str);
for (i = 0; i < length; i++) {
reversestr[(length - 1) - i] = str[i];
}
for (i = 0; i < length; i++) {
printf("%c", reversestr[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172130/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172130/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
char str[20],a[20];
int i,len,j;
scanf("%s",str);
for(i=0;str[i]!='\0';i++);
len=i;
for(i=len-1,j=0;i>=0;i--,j++)
{
a[j]=str[i];
}
a[len]='\0';
printf("%s\n",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172181/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172181/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,j;
char str,ch[21];
while(scanf("%c",&str)!=EOF)
{
ch[i]=str;
//printf("%c",ch[i]);
i++;
}
for(j=i-2;j>=0;j--)
{
printf("%c",ch[j]);
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_172297/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_172297/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.