Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(){
char b;
scanf("%c",&b);
if (b == 'A'){
printf("T");
}
else if(b == 'T'){
printf("A");
}
else if(b == 'G'){
printf("C");
}
else{
printf("G");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157306/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157306/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 b;
scanf("%c", &b);
if(b == 'A')printf("T\n");
else if(b == 'T')printf("A\n");
else if(b == 'C')printf("G\n");
else if(b == 'G')printf("C\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157357/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157357/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int N[20]={6,2,5,5,4,5,6,3,7,6};
int find(int x)
{
int n,max=0;
do
{
n=x%10;
x/=10;
max+=N[n];
}while(x!=0);
return max;
}
int main()
{
int a,b,x,y,max,i;
while(scanf("%d%d",&a,&b)!=EOF)
{
max=0;
for(i=a;i<=b;i++)
max+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@N = dso_local local_unnamed_... |
#include <stdio.h>
int main(void)
{
char c;
scanf("%c",&c);
if(c == 'A'){
printf("T\n");
}else if(c == 'T'){
printf("A\n");
}else if(c == 'C'){
printf("G\n");
}else if(c == 'G'){
printf("C\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
char s[8]="AGCT";
int main(){
int i;
char t[8];
scanf("%s",t);
for(i=0;i<4;i++){
if(t[0]==s[i]){
printf("%c\n",s[3-i]);
return 0;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157487/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157487/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@s = dso_local local_unname... |
#include <stdio.h>
int main()
{
char b;
scanf("%c", &b);
switch (b) {
case 'A':
printf("T\n");
break;
case 'T':
printf("A\n");
break;
case 'C':
printf("G\n");
break;
case 'G':
printf("C\n");
break;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157537/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAXN 220000
int a[MAXN],n,k;
int read()
{
int ans=0,p=1;
char c = getchar();
while (c<'0'||c>'9')
{
if(c=='-')
p=-1;
c=getchar();
}
while(c>='0'&&c<='9')
{
ans = ans*10+c-'0';
c=getchar();
}
return ans*p;
// int a;
// scanf("%d",&a);
// return a;
}
int solve(int m)
{
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157580/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157580/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@n = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int cmp_s(const void * left, const void * right)
{
char *left_char = (char *)left;
char *right_char = (char *)right;
return strcmp(left_char, right_char);
}
int cmp_s2(const void * left, const void * right)
{
char *left_char = (char *)left;
char *right... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157623/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157623/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.03
#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 ull unsigned long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const voi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157667/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157667/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 fw(const void *a, const void *b)
{
return *(char*)a - *(char*)b;
}
int bw(const void *a, const void *b)
{
return *(char*)b - *(char*)a;
}
int main() {
char s[111], t[111];
unsigned int l1, l2;
scanf("%s%s", s, t);
l1 = strlen(s);
l2 = strlen(t);
qso... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157717/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157717/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <limits.h>
int main(void) {
int n, k;
int a[100000];
int ans;
scanf("%d %d", &n, &k);
for (int i = 0; i < n; i++) scanf("%d", &a[i]);
if ((n - 1) % (k - 1))ans = (n - 1) / (k - 1) + 1;
else ans = (n - 1) / (k - 1);
printf(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157768/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157768/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <limits.h>
//#include <math.h>
#define MOD 1000000007
int main() {
char l[1000002];
scanf("%s", l);
int n=strlen(l);
long dp1[n], dp2[n];
dp1[0] = 1; dp2[0] = 2;
for (int i=1; i<n; i++) {
if (l[i] == '0') {
dp1[i] = dp1[i-1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157810/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157810/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int r, c, p;
int main() {
while((c = getchar_unlocked()) > 10)
if (c == p) p = 1;
else r += 1, p = p == 1 ? 0 : c;
printf("%d\n", r);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157854/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct._IO_FILE = type { i... |
#include<stdio.h>
int dp[201][201];
int main(void){
int i,j,k,d,n,t[201],a[201],b[201],c[201],max=-1,z;
scanf("%d %d",&d,&n);
for(i=1;i<=d;i++){
for(j=0;j<n;j++) dp[i][j]=-1;
}
for(i=1;i<=d;i++) scanf("%d",&t[i]);
for(i=0;i<n;i++) scanf("%d %d %d",&a[i],&b[i],&c[i]);
for(i=0;i<n;i++){
if(a[i]<=t[1]&&t[1]<=b[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157898/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157898/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 c[3][3];
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
scanf("%d", &c[i][j]);
}
}
if (c[1][0]-c[0][0] == c[1][1]-c[0][1] && c[1][1]-c[0][1] == c[1][2]-c[0][2] && c[2][0]-c[0][0] == c[2][1]-c[0][1] && c[2][1]-c[0][1] == c[2][2]-c[0][2]) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157940/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157940/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 c[3][3];
int f = 1;
int i, j;
for (i = 0; i < 3; i++) {
for (j = 0; j < 3; j++) {
scanf("%d", &c[i][j]);
}
}
if (c[0][0] - c[1][0] != c[0][1] - c[1][1]) f = 0;
if (c[0][1] - c[1][1] != c[0][2] - c[1][2]) f = 0;
if (c[1][0] - c[2][0] != c[1][1] - c[2][1]) f = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_157999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_157999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[4][4],x,y,z,m,i,j;
for(i=0;i<3;i++)
{
for(j=0;j<3;j++)
scanf("%lld",&a[i][j]);
}
m=0;
for(i=1;i<3;i++)
{
x=a[i][0]-a[i-1][0];
y=a[i][1]-a[i-1][1];
z=a[i][2]-a[i-1][2];
if(x!=y||y!=z||x!=z)
{
m=1;break;
}
}
if(m==1)
{
printf("No\n");
}
else
{
m=... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int sosuu_num;
int sosuu_sum[10000];
void make_sosuu_list(void) {
char is_sosuu[10001];
int i,j;
for(i=0;i<=10000;i++)is_sosuu[i]=1;
is_sosuu[0]=is_sosuu[1]=0;
for(i=2;i<=10000;i++) {
if(is_sosuu[i]) {
for(j=i+i;j<=10000;j+=i)is_sosuu[j]=0;
}
}
sosuu_num=1;
sosuu_sum[0]=0;
for(i=0;i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158084/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@sosuu_num = dso_local loca... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define NUM_MAX 30000
#define BUF_SIZE (NUM_MAX+5)
#define INF 0x01010101
#define SECRET_DIGIT 3
int get_int(void) {
#ifdef BUF_SIZE
char line[BUF_SIZE];
#else
#error
#endif
if(!fgets(line, BUF_SIZE, stdin)) return 0;
int num;
sscanf(line, "%d", &num... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158127/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158127/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unn... |
#include<stdio.h>
int main()
{
long long int n;
scanf("%lld",&n);
printf("%lld",(n*(n-1))/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 int n,i,j=0,p,q;
scanf("%ld",&n);
p=(n*(n-1))/2;
/*q=n;
for(i=1; i<=n; i++)
{
if(i==n)
{
p=i%n;
j=j+p;
}
else
{
p=i%(q+1);
j=j+p;
q++;
}
}
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 n;
scanf("%lld",&n);
printf("%lld",n*(n-1)/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158264/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158264/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<limits.h>
int main(void){
long long int n, s=0;
scanf("%lld", &n);
for(long long int i=0; i<n; i++){
s+=i;
}
printf("%lld", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158307/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158307/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 FOR(n) for(int i=0;i<n;i++)
#define FORJ(n) for(int j=0;j<n;j++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define mod 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158350/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158350/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 FOR(n) for(int i=0;i<n;i++)
#define FORJ(n) for(int j=0;j<n;j++)
#define PRN(n) printf("%d\n",n)
#define PRF(n) printf("%lf\n",n)
#define PRL(n) printf("%lld\n",n)
#define PRS(s) printf("%s\n",s)
#define PRC(c) printf("%c",c)
#define mod 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158400/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158400/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long n, i, j, pivot, d, s;
scanf("%lld", &n);
s = 0;
for (i = 32; i >= 1; i --) {
pivot = 0;
for (j = 1; j < i; j ++) {
pivot -= (long long)pow(-2, j) - (long long)pow(-1, j);
}
if (i % 2 == 0) {
if (pivot >= n) {
d = (pivot - n) % (long lo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158444/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <time.h>
#include <math.h>
#include <limits.h>
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0);
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long long
#define INF 100000000
#define MOD 1000000007
#define SIZ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158495/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158495/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 double a, b, c, d;
scanf("%Lf%Lf%Lf",&a, &b, &c);
d=c-a-b;
if(d>0 && d*d > 4*a*b) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158538/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 a,b,c,d=0;
scanf("%lld%lld%lld",&a,&b,&c);
//printf("%d %d %d %d",(4*a*b),(c*c),(2*c)*(a*b),(a*b)*(a*b));
d=c*c;
d+=(a+b)*(a+b);
d-=(2*c)*(a+b);
if(4*(a*b)<d){
if(c-(a+b)>0){
printf("Yes");
}else{
printf("No");
}
}else{
printf("No");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,h,k,i,j,ans,d[1001],t,r[1001],b,c,min;
while(scanf("%d %d %d %d",&n,&m,&h,&k),n||m||h||k){
char a[1001][1001]={0};
for(i=ans=0;i<n;i++)scanf("%d",&d[i+1]);
for(i=0;i<m;i++){
scanf("%d %d",&b,&c);
a[c][b]=1;
}
for(i=h-1;i;i--){
for(j=1;j<=n;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 a[101],b[101];
int s=0,t=0,i;
scanf("%s%s",a,b);
for(s=0;a[s];s++);for(t=0;b[t];t++);
if(s<t){printf("LESS");return 0;}
if(s>t){printf("GREATER");return 0;}
for(i=0;i<s;i++){if(a[i]<b[i]){printf("LESS");return 0;}if(a[i]>b[i]){printf("GREATER");return 0;}}
printf("EQUA... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158682/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158682/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[200], b[200];
int aa= 0;
scanf("%s %s", a, b);
if (strlen(a) > strlen(b))
printf("GREATER\n");
if (strlen(b) > strlen(a))
printf("LESS\n");
if (strlen(a) == strlen(b)){
for (int i = 0; i < strlen(a); ++i){
if (a[i] > b[i]){
printf("GREATE... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158725/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158725/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
double a, b;
scanf("%lf", &a);
scanf("%lf", &b);
if(a > b) printf("GREATER\n");
else if(a < b) printf("LESS\n");
else printf("EQUAL\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, char *argv[])
{
char A[256], B[256];
int a, b;
fgets(A, sizeof(A), stdin);
fgets(B, sizeof(B), stdin);
a = strlen(A);
b = strlen(B);
if ( a > b ){
printf("GREATER\n");
} else if ( a < b ){
printf("LESS\n");
} ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158819/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158819/source.c"
target datalayout = "e-m:e-p270: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<ctype.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
int main(){
char s1[102],s2[102];
scanf("%s %s",s1,s2);
int len1=strlen(s1);
int len2=strlen(s2);
int i;
int j=0;
if(len1<len2) printf("LESS\n");
else if(len2<len1) printf("GREATER\n");
else{
for(i=0;i<len1;i++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, n, tmp;
scanf("%d", &t);
while (t--) {
scanf("%d", &n);
tmp = 3;
while (n % tmp) {
tmp <<= 1;
tmp |= 1;
}
printf("%d\n", n / tmp);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_15892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_15892/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define PI 3.141592653589793
int main(void){
double s,d,rad=0;
double sumx=0,sumy=0;
while(scanf("%lf,%lf",&s,&d),s!=0 || d!=0){
sumx+=s*sin(rad);
sumy+=s*cos(rad);
rad+=d*PI/180;
}
printf("%d\n%d\n",(int)sumx,(int)sumy);
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_158963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_158963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define mem(x,y) (x*)malloc(sizeof(x)*(y))
#define PI 3.14159265358979
int main()
{
int l,d;
int deg = 90;
double x = 0;
double y = 0;
while(scanf("%d,%d",&l,&d),l)
{
x += cos((double)deg*PI/180.0)*l;
y += sin((double)deg*PI/180.0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159027/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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.14159265358979323846)
int main(void)
{
double x = 0.0, y = 0.0;
int now = 90;
int spin;
int add_m;
while (1){
scanf("%d%*c%d", &add_m, &spin);
if (add_m == 0 && spin == 0) break;
y += (double)add... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159070/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M_PI 3.141592653589793
int main()
{
int dis, r;
double x = 0, y = 0;
int theta = 90;
while( scanf("%d,%d", &dis, &r) != EOF ) {
if (dis == 0 && r == 0) {
break;
}
x += dis * cos(2 * M_PI * theta / 360);
y += dis * sin(2 * M_PI * theta / 360);
theta += -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159113/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159113/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d", &x, &y);
while(x>0 && y>0){
if(x>y){
x=x%y;
}else{
y=y%x;
}
}
if(x!=0){
printf("%d\n", x);
}else{
printf("%d\n", y);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159164/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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", &x, &y);
if(x > y)
{
x = x % y;
for(z = x; z > 0; z--)
{
if((x % z) == 0 && (y % z) == 0) break;
}
}
else if(x < y)
{
y = y % x;
for(z = y; z > 0; z--)
{
if((x % z) == 0 && (y % z) == 0) break;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159236/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159236/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int a,b,c;
scanf("%d%d",&a,&b);
c=gcd(a,b);
printf("%d\n",c);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159294/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159294/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",&a,&b);
if(a < b){
c = a;
a = b;
b = c;
}
while(b>0){
c = b;
b = a%b;
a = c;
}
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159344/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159344/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",&a,&b);
while(1){
c = a % b;
if(c == 0){
break;
}
else {
a = b;
b = c;
}
}
printf("%d\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,r;
scanf("%d%d",&x,&y);
if(x<y)
{
r=x;
x=y;
y=r;
}
while(1)
{
r=x%y;
x=y;
y=r;
if(y==0) break;
}
printf("%d\n",x);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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", &x, &y );
while(1){
if ( x == 0 ){
z = y;
break;
} else if ( y == 0 ){
z = x;
break;
}
if ( x > y ){
x = x % y;
} else {
y = y % x;
}
}
printf("%d\n", z );
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, temp ;
scanf ("%d %d", &x, &y ) ;
if ( y > x ) {
temp = x ;
x = y ;
y = temp ;
}
while ( x % y != 0 ) {
x = x % y ;
if ( y > x ) {
temp = x ;
x = y ;
y = temp ;
}
}
printf ("%d\n" , y) ;
return 0 ;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159517/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159517/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, r, tmp;
scanf("%d %d",&a,&b);
if(a < b){
tmp = a;
a =b;
b = tmp;
}
r = a % b;
while(r != 0){
a = b;
b = r;
r = a % b;
}
printf("%d\n",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159560/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159560/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main(){
int x,y,r;
scanf("%d%d",&x,&y);
if(x<y) swap(&x,&y);
while(y>0){
r=x%y;
x=y;
y=r;
}
printf("%d\n",x);
return 0;
}
void swap(int *x,int *y)
{
int a;
a=*x;
*x=*y;
*y=a;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159603/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159603/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",&a,&b);
c=a%b;
while(c!=0)
{
a=b;
b=c;
c=a%b;
}
printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159654/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159654/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, gcd, box;
scanf("%d %d", &x, &y);
box = 0;
while(1){
if (x < y){
box = x;
x = y;
y = box;
}
x %= y;
if (x == 0){
break;
}
}
printf("%d\n", y);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
#define MAX(a,b) (a<b ? b : a)
int GCD(int a,int b){
int max=0,min=0;
max=MAX(a,b); min=MIN(a,b);
int tmp;
while(1){
tmp=min;
min=max%tmp;
max=tmp;
if(min==0)break;
if(min==1){
return 1;
}
}
return max;
}
int main(void){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159805/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159805/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,x,y,r;
scanf("%d %d",&x,&y);
if(y>x){
t=x;
x=y;
y=t;
}
while(y>0){
r=x%y;
x=y;
y=r;
}
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159849/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159849/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int hcf(int n1, int n2);
int main()
{
int n1, n2;
scanf("%d%d",&n1,&n2);
printf("%d\n",hcf(n1,n2));
return 0;
}
int hcf(int n1, int n2)
{
if (n2 != 0)
return hcf(n2, n1%n2);
else
return n1;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159892/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int gcd(int x,int y){
int r;
if(x>y){
int temp;
temp=x;
x=y;
y=temp;
}
while(y>0){
r=x%y;
x=y;
y=r;
}
return x;
}
int main(){
int a,b,x;
scanf("%d %d",&a,&b);
x=gcd(a,b);
printf("%d\n",x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159942/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,n,d;
scanf("%d%d",&x,&y);
if(x==y){
printf("%d\n",x);
return 0;
}
if(x>y){
n=y;
}else{
n=x;
}
for(d=n/2;d>0;d--){
if(x%d==0&&y%d==0){
printf("%d\n",d);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_159993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_159993/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,t;
scanf("%d %d",&x,&y);
t = x % y;
while(t != 0){
x = y;
y = t;
t = x % y;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160034/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160034/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int b;
scanf("%d %d",&a,&b);
int r=a%b;
while(r!=0) {
a=b;
b=r;
r=a%b;
}
printf("%d\n",b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160078/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160078/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int gcd(int x,int y){
return y ? gcd(y,x%y):x;
}
int main(){
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",gcd(a,b));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160120/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,n,st;
//load a,b
scanf("%d %d",&a,&b);
//sort
if(a<b){
st=a;
a=b;
b=st;
}
//algorithm
while(1){
n=a%b;
if(n==0){
printf("%d\n",b);
break;
}
else{
st=b;
b=n;
a=st;
continue;
}
}
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160164/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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",&b,&a);
while( b%a !=0){
c=b%a;
b=a;
a=c;
}
printf("%d\n",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i,j,k;
scanf("%lli",&n);
long long int arr[n];
for(i=0;i<n;i++)
{
scanf("%lli",&arr[i]);
}
for(i=0;i<n;i++)
{
k=0;
if((arr[i]/2)%2==0)
{
printf("YES\n");
for(j=0;j<arr[i];j++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16028/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 swap(type, x, y) {type tmp = x; x = y; y = tmp;}
#define ll long long
ll gcd(ll x, ll y) {
ll z;
if (x <= y) swap(ll, x, y);
do {
z = x % y;
x = y;
y = z;
} while(z > 0);
return x;
}
int main(void) {
ll a, b, c;
scanf("%lld %lld", &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160322/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160322/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int gcd(int ,int);
int x = 0;
int y = 0;
int res = 0;
int main()
{
scanf("%d %d",&x,&y);
if(x > y) res = gcd(x,y);
else res = gcd(y,x);
printf("%d\n",res);
return 0;
}
int gcd(int x,int y)
{
if(y != 0) return gcd(y,x%y);
else return x;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160373/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160373/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@x = dso_local global i32 0... |
#include<stdio.h>
int main(){
int x,y,i,j,n;
scanf("%d %d",&x,&y);
if(y>x){
j=y;
y=x;
x=j;
}
n=x%y;
while(n!=0){
x = y;
y = n;
n = x % y;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160416/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160416/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,r,tmp;
scanf("%d %d",&a,&b);
if(a<b){
tmp = a;
a = b;
b = tmp;
}
r = a % b;
while(r!=0){
a = b;
b = r;
r = a % b;
}
printf("%d\n", b);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
long long int t, n, i, j, k, arr[100005];
scanf("%lld", &t);
for(i=1; i<=t; i++)
{
scanf("%lld", &n);
if(n%4!=0)
{
printf("NO\n");
}
else
{
long long int esum=0, osum=0;
printf("YES\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16051/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16051/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int x,y,k=0,temp;
scanf("%d %d",&x,&y);
if(x < y){
temp = x;
x = y;
y = temp;
}
//ユークリッドの互除法
k = x%y;
while(k != 0){
x = y;
y = k;
k = x%y;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,n;
int i=0;
scanf("%d", &x);
scanf("%d", &y);
while(y!=0){
if(x<y){
n =y;
y =x;
x =n;
}
n = x%y;
x = y;
y =n;
}
printf("%d\n", x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160597/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160597/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 testcases;
scanf("%d", &testcases);
//printf("%d\n", testcases);
while (testcases > 0)
{
long n;
scanf("%ld", &n);
long k=2, x;
long mult=k, mult1;
while(1) {
mult*=2;
mult1=mult-1;
//prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
void swap(int *, int *);
int main() {
int x, y,r;
scanf("%d%d", &x, &y);
if (y > x) {
swap(&x, &y);
}
while (y > 0) {
r = x % y;
x = y;
y = r;
}
printf("%d", x);
printf("\n");
return 0;
}
void swap(int *x, int *y) {
int temp;
temp = *y;
*y = *x;
*x = temp;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int change(int x,int y);
int main(void)
{
int x,y;
scanf("%d %d",&x,&y);
if(x > y){
printf("%d\n",change(x,y));
} else {
printf("%d\n",change(y,x));
}
return 0;
}
int change(int x,int y){
int n = x%y;
while(n != 0){
x = y;
y = n;
n = x%y;
}
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,d,swap;
scanf("%d %d",&x,&y);
if(y>x){
swap = x;
x = y;
y = swap;
}
d = x%y;
while(d!=0){
x = y;
y = d;
d = x%y;
}
printf("%d\n",y);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160784/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int grd(int a,int b){
int tmp,r;
if(a<b){
tmp = b;
b = a;
a = tmp;
}
while(b>0){
r = a%b;
a = b;
b = r;
}
return a;
}
int main(){
int a,b,c;
scanf("%d %d",&a,&b);
c = grd(a,b);
printf("%d\n",c );
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d",&a,&b);
int temp;
if(a<b){
temp=b;
b=a;
a=temp;
}
while(1){
temp=a%b;
if(temp==0){
printf("%d\n",b);
return 0;
}
a=b;
b=temp;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160878/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160878/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int i, n, a, v, maxnumber, maxnum = 0;
scanf("%d", &n);
for (i = 0; i < n; i++){
scanf("%d %d", &a, &v);
if (v > maxnum){
maxnumber = a;
maxnum = v;
}
else if (v == maxnum && a < maxnumber){
maxnumber = a;
}
}
printf("%d %d\n", maxnumber, maxnum);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160928/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160928/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a,v,i,x,y;
scanf("%d",&n);
x=0;
y=0;
for(i=0;i<n;i++){
scanf("%d %d",&a,&v);
if((y<v)||((y==v)&&(a<x))){
x=a;
y=v;
}
}
if(x==0){
x=1;
y=0;
}
printf("%d %d\n",x,y);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_160986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_160986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 s[12];
scanf("%s",s);
int year=1000*(s[0]-'0')+100*(s[1]-'0')+10*(s[2]-'0')+s[3]-'0';
int month=10*(s[5]-'0')+s[6]-'0';
int day=10*(s[8]-'0')+s[9]-'0';
if(year>2019)
printf("TBD\n");
else if(year==2019){
if(month>4)
printf("TBD\n");
else
printf("H... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161035/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161035/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 y,m,d;
char sla1,sla2;
scanf ("%d %c %d %c %d", &y,&sla1,&m,&sla2,&d);
if (y < 2019) printf("Heisei");
else if (y > 2019) printf("TBD");
else {
if (m>=5) printf("TBD");
else printf("Heisei");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[100];
scanf("%s",a);
if(strcmp(a,"2019/04/30")<=0)
printf("Heisei\n");
else
printf("TBD\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161136/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161136/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int t,n,i,j,c1,c2;
scanf("%d",&t);
for(i=0;i<t;i++){
scanf("%d",&n);
c1=n/3;
if((n-c1)%2) c1++;
c2=(n-c1)/2;
printf("%d %d\n",c1,c2);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16118/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16118/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 t,n,a,b;
scanf("%d",&t);
while(t--)
{
scanf("%d",&n);
a=n-(n/3*3);
if(a==0)
printf("%d %d\n",n/3,n/3);
else if(a==1)
printf("%d %d\n",n/3+1,n/3);
else if(a==2)
printf("%d %d\n",n/3,n/3+1);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16123/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16123/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#define DEBUG 0
#define NINF -1
#define PINF 1E9+1
char s[256];
int main(void)
{
int i,iy,im,id;
char y[16],m[16],d[16];
scanf("%s",s);
snprintf(y,16,"%c%c%c%c",s[0],s[1],s[2],s[3]);
snprintf(m,16,"%c%c",s[5],s[6]);
snprintf(d,16,"%c%c",s[8],s[9]);
iy = atoi(y);
im =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <math.h>
#define lop(i, n) for(i=0; i<n; i++)
int main()
{
long long int n, min;
scanf("%ld", &n);
long long int i;
for(i=sqrt(n); i>=1; i--){
if(n%i==0){
min=i+n/i; break;
}
}
printf("%lld", min-2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include<math.h>
typedef long long int lli;
lli gcd(lli a,lli b);
int main(void)
{
lli N;
bool flag = false;
scanf("%lld", &N);
lli min = N-1;
lli tmp;
lli j;
for (lli i = ceil(sqrt(N)); i>=1; i--)
{
j = N/i;
if(i*j==N){
tmp = i+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161367/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161367/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long t,a,i;
scanf("%lld",&t);
for(i=0;i<t;i++)
{
scanf("%lld",&a);
if(a%3==0)
printf("%lld %lld\n",a/3,a/3);
if(a%3==1)
printf("%lld %lld\n",(a/3)+1,a/3);
if(a%3==2)
printf("%lld %lld\n",a/3,(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16141/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
unsigned long long n,a,i;
scanf("%lld", &n);
for(i=1; i<n; i++)
{
if(i*i>n)
break;
if(n%i==0)
a=i;
}
if(n/a==1)
i=1;
else
i=2;
printf("%lld\n", n/a+a-i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long int
int main(void) {
ll n, min = 1000000000000;
scanf("%lld", &n);
for(ll i = 1; i <= (ll)sqrt(n); i++) {
if(n%i == 0) {
if(min > i + n/i - 2) min = i + n/i - 2;
}
}
printf("%lld\n", min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161497/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,c1,c2;
scanf("%d",&T);
for(int i=0;i<T;i++) {
scanf("%d",&n);
if(n%3==0) {
printf("%d %d\n",n/3,n/3);
}
else if(n%3 == 2) {
printf("%d %d\n",n/3,((n/3)+1));
}
else if(n%3 == 1) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16154/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16154/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<math.h>
int main()
{
int b;
double n, o, o1, o2, a, m, p, s[1000]={};
while(1) {
double s[1000]={};
a=0;
o2=0;
scanf("%lf",&n);
if(n==0) break;
for(b=0;b<n;b++) {
scanf("%lf",&s[b]);
a=a+s[b];
}
m=a/n;
for(b=0;b<n;b++) {
o1=s[b]-m;
if(o1<0) o1=o1*(-1);
o1=p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void){
int n, i, dt[1000];
double mm, m, al;
while(1){
scanf("%d",&n);
if(n==0) return 0;
m= 0.0; al=0.0;
for(i=0;i<n;i++){
scanf(" %d",&dt[i]); m+=dt[i];
}
mm =m/n;
for(i=0;i<n;i++){
al +=((dt[i]-mm)*(dt[i]-mm));
}
printf("%lf\n", sqrt(al/n));
}
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161633/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main( void ) {
int n, i, s[1000];
double m, sum;
while ( scanf( "%d", &n ) && n != 0 ) {
m = 0.0000;
sum = 0.0000;
for ( i = 0; i < n; i++ ) {
scanf( "%d", &s[i] );
m += s[i];
}
m /= n;
for ( i = 0; i < n; i++ ) {
sum += ( s[i] - m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 == 1) {
printf("Hello World\n");
}
if (n == 2) {
int a,b;
scanf("%d\n%d", &a, &b);
printf("%d\n", a+b);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161734/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161734/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,A,B;
scanf("%d",&N);
if(N==1)
{
printf("Hello World\n");
}
else if(N==2)
{
scanf("%d%d",&A,&B);
printf("%d\n",A+B);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
if(x==1) printf("Hello World\n");
else printf("%d",y+z);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
if(N == 1){
printf("Hello World\n",N);
}else if(N == 2){
int A,B;
scanf("%d %d",&A,&B);
printf("%d",A + B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161871/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int N,A,B;
scanf("%d",&N);
if(N == 1) {
printf("Hello World\n");
} else {
scanf("%d %d",&A,&B);
printf("%d",A+B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,n;
scanf("%d",&n);
if(n==1)puts("Hello World");
else{
scanf("%d%d",&a,&b);
printf("%d\n",a+b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_161958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_161958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<math.h>
int min(int x,int y)
{
return x<y?x:y;
}
int max(int x,int y)
{
return x>y?x:y;
}
int main()
{
int n,i,j,m,x,y;
scanf("%d%d",&n,&m);
int max=m;
for(i=0;i<n;++i)
{
scanf("%d%d",&x,&y);
if(y+x>max)
max=y+x;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_16200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_16200/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.