Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main(){
char s[3][101];
scanf("%s%s%s",s[0],s[1],s[2]);
printf("%c%c%c",s[0][0],s[1][0],s[2][0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330191/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330191/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
A - AtCoder *** Contest
<http://abc048.contest.atcoder.jp/tasks/abc048_a>
[Tips]
・文字と文字列は違う<http://www.eonet.ne.jp/~nao2/c/c_char_string.html>
*/
#include <stdio.h>
int main(int argc, char const *argv[]) {
char s[101];
if( scanf("AtCoder %s Contest", s) == EOF ){
printf(stderr, "scanf ERROR!\n");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330241/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a,b;
int jaraka,jarakb;
scanf("%d %d %d",&x,&a,&b);
jaraka = x-a;
jarakb = x-b;
if(jaraka<0){
jaraka *= -1;
}
if(jarakb<0){
jarakb *= -1;
}
if(jaraka>jarakb){
printf("B\n");
}
else{
printf("A\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330285/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330285/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a,b,c,d;
scanf("%d%d%d",&x,&a,&b);
c=x-a;
d=x-b;
if(c<0) c=-(x-a);
if(d<0) d=-(x-b);
if(c>d) printf("B\n");
else printf("A\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330335/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330335/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// Ver19.02
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1 << 29
#define LLINF 4545454545454545454
#define MOD 1000000007
#define ll long long
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) < (b) ? (a) : (b))
int upll(const void *a, const void *b) { return *... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330393/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330393/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 x,a,b;
int s,t;
scanf("%d%d%d",&x,&a,&b);
s = x - a;
t = x - b;
s = s * s;
t = t * t;
if (s < t)
{
printf("A\n");
}
else
{
printf("B\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330443/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330443/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int c;
int d;
int e;
scanf("%d%d%d",&a,&b,&c);
if(b>a){
d=b-a;
}else{
d=a-b;
}
if(c>a){
e=c-a;
}else{
e=a-c;
}
if(d>e){
printf("B");
}else{
printf("A");
}
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330508/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330508/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, a, b;
scanf("%d %d %d", &x, &a, &b);
if(abs(x-a)>abs(x-b)){
printf("B");
}else{
printf("A");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330573/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330573/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int S;
scanf("%d %d",&X,&Y);
S=X+Y/2;
printf("%d\n",S);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330630/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330630/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c;
while(~scanf("%d %d",&a,&b))
{
c=b/2;
printf("%d\n",a+c);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,cost;
scanf("%d%d",&X,&Y);
cost=X+(Y/2);
printf("%d\n",cost);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330731/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330731/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
z=x+(y/2);
printf("%d",z);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330775/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330775/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,fare;
scanf("%d %d",&X,&Y);
fare=X+Y/2;
printf("%d\n",fare);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330825/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330825/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
printf("%d\n",a+b/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330869/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330869/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,sum;
scanf("%d %d",&x,&y);
sum = x+y/2;
printf("%d\n",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330911/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330911/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
printf("%d",x+y/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330955/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330955/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
printf("%d",A+B/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330999/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330999/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{
int x,y;
scanf("%d %d",&x, &y);
printf("%d",x+y/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331040/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331040/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int dx[]={1,0,-1,0};
int dy[]={0,-1,0,1};
typedef struct data_{
int x,y;
}data_t;
typedef struct queue_{
int n,f,t;
data_t data[100000];
int (*size)();
int (*front)();
int (*tail)();
void (*enqueue)(data_t);
data_t (*dequeue)();
void (*init)();
int (*isEmpty)()... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331091/source.c"
target datalayout = "e-m:e-p270: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.queue_ = type { i32... |
#include<stdio.h>
#include<string.h>
int main(void)
{
int i,len;
char s[4096],p[4096],s2[4096];
scanf("%s",s);
scanf("%s",p);
sprintf(s2,"%s%s",s,s);
puts(strstr(s2,p)==NULL?"No":"Yes");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331141/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331141/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, m, P[101] = {0}, L[101] = {0}, ans;
scanf("%d%d", &n, &m);
while (m--)
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
L[a] += c ;
P[b] += c;
}
ans = 0;
for (i = 1; i <= n; ++i)
{
int d = P[i] - L[i];
if (d > 0)
{
ans += d;
}
}
printf("%d\n", ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3312/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3312/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv){
unsigned char s[201] = {};
unsigned char p[101] = {};
int len;
// Input
scanf("%100s",s);
len = strlen(s);
memcpy(s+len,s,len);
scanf("%100s",p);
// Judge & Output
if( strstr(s,p) != NULL ){
printf("Yes\n");
} else {
printf("No\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331257/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331257/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 lens,lenp,i,j,hante=0;
char s[101],p[101],buf[201];
scanf("%s",s);
scanf("%s",p);
lens=strlen(s);
lenp=strlen(p);
strcpy(buf,s);
strcat(buf,s);
for(i=0;i<lens;i++){
for(j=0;j<lenp;j++){
if(buf[i+j]!=p[j]) ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331314/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331314/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
char s[200];
char p[200];
char ss[200];
scanf("%s",s);
scanf("%s",p);
strcat(ss,s);
strcat(ss,s);
if(strstr(ss,p))
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331372/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331372/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main()
{
char s[101] = {0};
char s2[201] = {0};
char p[101] = {0};
scanf("%s", s);
scanf("%s", p);
strcat(s2, s);
strcat(s2, s);
strstr(s2, p)? printf("Yes\n") : printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331422/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331422/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main() {
char s[200] = "";
char p[100] = "";
char temp[100] = "";
scanf("%s", temp);
sprintf(s, "%s%s", temp, temp);
scanf("%s", p);
int flag = 0;
for (int i = 0; i < strlen(temp) + strlen(p); i++) {
if (strncmp(&s[i], p, strlen(p)) == 0) {
flag = 1;
}
}
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331473/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331473/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main()
{
char s[100], p[100], ring[100];
char buffer[126];
int i, j, index;
int length;
char *ret;
fgets(buffer, 126, stdin);
sscanf(buffer, "%s", s);
fgets(buffer, 126, stdin);
sscanf(buffer, "%s", p);
length = strlen(s);
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331516/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331516/source.c"
target datalayout = "e-m:e-p270: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>
int main()
{
char s[201];
char t[101];
char p[101];
scanf("%s", s);
scanf("%s", p);
strcpy(t, s);
strcat(s, t);
if (strstr(s, p) == NULL){
printf("No");
}else {
printf("Yes");
}
printf("\n");
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331574/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331574/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char text[150];
char round_text[300];
char pattern[150];
char cmp[150];
int main(){
int count = 0;
scanf("%s",text);
scanf("%s",pattern);
int len_pattern = strlen(pattern);
int len_text = strlen(text);
int len_round = 2*len_text;
for(int i=0,j=0;j<len_round;i++,j++){
if(text[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331617/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331617/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
// void assign_str(char limited[], char str[], int n)
// {
// for (int i = 0; i < n; i++)
// {
// limited[i] = str[i];
// }
// limited[n] = '\0';
// }
bool is_same(char s[], char p[]) //二つの文字列が同じ文字列かどうかを判別する関数
{
int len_p = strlen(p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331660/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331660/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str1[300], str2[200], str3[300];
scanf("%s", str1);
scanf("%s", str2);
strcpy(str3,str1);
strcat(str1, str3);
if ( strstr(str1, str2) == NULL ) printf("No\n");
else printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331703/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331703/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#define rep(i,l,n) for(i=l;i<n;i++)
int main(void){
char s[101];
char p[101];
int i,j,ls,lp,a,m;
scanf("%s",s);
scanf("%s",p);
ls=strlen(s);
lp=strlen(p);
a=0;
rep(i,0,ls){
if(a) break;
rep(j,0,lp){
m=i+j;
if(m>=ls) m-=ls;
if(s[m]!=p[j]) break;
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[7],a,b,c,t;
char S[102];
for(i=1;i<7;i++)scanf("%d",&N[i]);
scanf("%s",S);
for(a=1,b=2,c=3,i=0;S[i];i++){
switch(S[i]){
case 'N':t=a,a=b,b=7-t;break;
case 'E':t=c,c=a,a=7-t;break;
case 'S':t=b,b=a,a=7-t;break;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331798/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331798/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 struct dice
{
int front; /* the front side of the dice. */
int south; /* the south side of the dice. */
int east; /* the east side of the dice. */
int west; /* the west side of the dice. */
int north; /* the north side of the dice. */
int back; /* the back ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331840/source.c"
target datalayout = "e-m:e-p270: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.dice = type { i32, ... |
#include<stdio.h>
int main(void)
{
int i,pips[6];
char com[100];
int temp,top = 0,back = 1,right = 2,left = 3,front = 4,bottom = 5;
for(i = 0;i < 6;i++){
scanf("%d",&pips[i]);
}
scanf("%s",com);
for(i = 0;com[i] != 0;i++){
if(com[i] == 'S'){
temp = back;
back = top;
top = front;
front = botto... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331884/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 d[6],i,blank;
char ENSW[100];
for(i = 0; i < 6; i++){
scanf("%d",&d[i]);
}
scanf("%s",ENSW);
for(i = 0; ENSW[i] != '\0'; i++){
if(ENSW[i] == 'N'){
blank=d[0];
d[0]=d[1];
d[1]=d[5];
d[5]=d[4];
d[4]=blank;
}
if(ENSW[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331927/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 struct{
int top,front,right,left,back,bottom;
}dice;
void diceroll(dice* d, char c);
int main(void){
dice d;
int i;
char act[101];
scanf("%d %d %d %d %d %d", &d.top, &d.front, &d.right, &d.left, &d.back,&d.bottom);
scanf("%s", act);
for(i=0;act[i] !='\0';i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331970/source.c"
target datalayout = "e-m:e-p270: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.dice = type { i32, ... |
#include <stdio.h>
int main(){
int d[6],i,blank;
char ENSW[100];
for(i = 0; i < 6; i++){
scanf("%d",&d[i]);
}
scanf("%s",ENSW);
for(i = 0; ENSW[i] != '\0'; i++){
if(ENSW[i] == 'N'){
blank=d[0];
d[0]=d[1];
d[1]=d[5];
d[5]=d[4];
d[4]=blank;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332012/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332012/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, men[7];
char direction[101];
for (i = 1; i < 7; i++)
scanf ("%d", &men[i]);
scanf ("%s", direction);
for (i = 0; direction[i] != '\0'; i++){
men[0] = men[1];
switch (direction[i]){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332056/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332056/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
char str[1000002];
int main()
{
long long left = 0 , i , right = 0 , center ;
scanf("%s", str);
for(i = 0 ; str[i] !='\0' ; i++)
if(str[i]=='^')break;
center = i ;
for(i = 0 ; str[i] != '\0' ; i++)
{
if(str[i] >= '0' && str[i] <= '9')
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
//Bismillahir Rahmanir Rahim
#include<stdio.h>
int main()
{
int n, m;
scanf("%d %d", &n, &m);
int c[n], a[m];
int i;
for(i = 0; i < n; i++){
scanf("%d", &c[i]);
}
for(i = 0; i < m; i++){
scanf("%d", &a[i]);
}
int j = 0, count = 0;
int t = 0;
for(i = 0; i < m... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33215/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33215/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 d[6],i,blank;
char NEWS[100];
for(i = 0; i < 6; i++){
scanf("%d",&d[i]);
}
scanf("%s",NEWS);
for(i = 0; NEWS[i] != '\0'; i++){
if(NEWS[i] == 'N'){
blank=d[0];
d[0]=d[1];
d[1]=d[5];
d[5]=d[4];
d[4]=blank;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332193/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332193/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 min(int a, int b)
{
if (a > b){
return (b);
}
return (a);
}
int lose(int *ptr)
{
int i, j;
int temp[10];
int ret;
int sum;
ret = 100;
for (i = 0; i < 1 << 10; i++){
for (j = 0; j < 10; j++){
temp[j] = ptr[j];
}
for (j = 0; j < 10; j++){
if (((i >> j)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332258/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332258/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
//#include <limits.h>
//#include <math.h>
//昇順
int acs(const void *a, const void *b)
{
return *(int *)a - *(int *)b;
}
int main() {
int n;
scanf("%d", &n);
int a[n], b[n], c[n];
for (int i=0; i<n; i++)
scanf("%d", a+i);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100 + 1];
scanf("%s",s);
int n=strlen(s);//文字列の長さを得るs
for(int i= 0;i<n;i++) {
if(i% 2 == 0) {
if(s[i] =='L') {
puts("No");
return 0;
}
}else{
if(s[i] =='R') {
puts("No");
return 0;
}
}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332351/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[100]; scanf("%s",a);int i=0,f=0;
while(a[i]!='\0'){
//printf("%c",a[i]);
if(a[i]=='R' || a[i]=='U' || a[i]=='D');
else f=1;
i++;
if(a[i]=='\0') break;
if(a[i]=='L' || a[i]=='U' || a[i]=='D');
else f=1;
i++;
}
if(f==0) printf("Yes\n");
else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332401/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332401/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,v;
int cost=0,tank=0;;
scanf("%d %d",&n,&v);
cost=v;
tank=v;
if(v>(n-1))
{
tank=n-1;
cost=n-1;
}
for(int i=1;i<n;i++)
{
if(tank>=(n-i))
{
break;
}
if(v-tank>0)
{
cost+=i*(v-tank);
tank+=v-tank;
}
tank--;
}
printf("%d",cost);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33246/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33246/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int n,v,count1,i,count=0;
scanf("%d%d",&n,&v);
if(v>=n-1)
{
printf("%d",n-1);
}
else
{
count=v;
count1=(n-1)-v;
i=2;
while(count1--)
{
count+=i;
i++;
}
printf("%d",count);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include "stdio.h"
#include "string.h"
int main()
{
int a, b;
char d[101] = {};
scanf("%s", d);
a = strlen(d);
for(b = 0; b < a; b++)
{
if((b % 2) == 0)
{
if(d[b] != 'R' && d[b] != 'U' && d[b] != 'D')
{
printf("No");
return 0;
}
}
else
{
if(d[b] != 'L... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 f=0,i;
char s[101];
scanf("%s",s);
for(i=0;s[i]!=0;i++){
if(i%2==0){
if(s[i]=='L')f=1;
}if(i%2==1){
if(s[i]=='R')f=1;
}
}
if(f==1)puts("No");
else puts("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332603/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332603/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
// Your code here!
char s[101];
scanf("%s\n",s);
int N, noflag = 0;
N = strlen(s);
for(int i = 0; i < N && noflag == 0; i++)
{
if((i%2 == 0 && s[i] == 'L') || (i%2 == 1 && s[i] == 'R')) noflag = 1;
}
printf("%s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332661/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <math.h>
#define N (1 << 20)
int seg[N << 1];
void init(void)
{
int i;
for (i = 0; i < (N << 1); i++){
seg[i] = INT_MAX;
}
}
int find(int a, int b, int x, int l, int r)
{
if (a >= r || l >= b) return (INT_MAX);
if (a <= l && r <= b) return (seg[x]);
return (fmin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332711/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332711/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@seg = dso_local local_unna... |
#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
//#include <stdbool.h>
//#include <limits.h>
//#include <math.h>
#define Min(a, b) (a < b ? a : b)
int main() {
int n, a, b;
scanf("%d%d%d", &n, &a, &b);
printf("%d\n", Min(n*a, b));
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332755/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332755/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, x;
scanf("%d %d %d",&N, &A, &B);
x=N*A;
if(x>B)
{
printf("%d",B);
}
else if(x==B)
{
printf("%d\n",x);
}
else
{
printf("%d",x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332799/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332799/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,x,t;
scanf("%d %d %d",&a,&b,&t);
x=a*b;
if(x<=t){
printf("%d\n",x);
}
else if(t<=x){
printf("%d\n",t);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332841/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332841/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, p;
scanf("%d %d %d", &n, &a, &b);
p = n * a;
if(p < b){
printf("%d\n", p);
}else if(b < p){
printf("%d\n", b);
}else if(b == p){
printf("%d\n", p);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332885/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332885/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
int na = 0;
int nb = 0;
scanf("%d %d %d",&n,&a,&b);
na = n * a;
nb = b;
if(na >= nb)
printf("%d",nb);
else
printf("%d",na);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332935/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 %d %d",&N,&a,&b);
int A = N*a;
if(A<b){
printf("%d",A);
}else{
printf("%d",b);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332979/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 K,A,B;
scanf("%d %d %d",&K,&A,&B);
int L=A;
int sw=0;
while(L<=B){
if(L%K==0){
sw=1;
}
L=L+1;
}
if(sw==1){
printf("OK\n");
}else{
printf("NG\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333028/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int i;
int k, a, b;
int cnt = 0;
scanf("%d %d %d",&k, &a, &b);
for(i = a; i <= b; i++) {
if(i%k == 0) {
cnt = 1;
}
}
if(cnt == 1) {
printf("OK");
} else {
printf("NG");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,K,flg,i;
flg=0;
scanf("%d %d %d",&K,&A,&B);
for(i=A;i<=B;i++){
if(i%K==0){
flg=1;
}
}
if(flg==0){
printf("NG\n");
}
else{
printf("OK\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 k;
int a;
int b;
int x;
int c = 0;
scanf("%d%d%d", &k, &a, &b);
for (x = a; x <= b; x++){
if (x % k == 0) c= 1;
}
if (c == 1) printf("OK");
else printf("NG");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,k,i,cont=0;
scanf("%d",&k);
scanf("%d %d",&a ,&b);
int maior = (b/k)*k;
if(a<=maior){
printf("OK");
}else {
printf("NG");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 K, A, B, max;
scanf("%d %d %d",&K,&A,&B);
max=(B/K)*K;
if(A<=max){
printf("OK");
}
else{
printf("NG");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 k,a,b,i,flag=0;
scanf("%d%d%d", &k,&a,&b);
for(i=1;i<=b;i++){
if(i*k>=a && i*k<=b) flag=1;
}
if(flag==1) printf("OK");
else printf("NG");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333301/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333301/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main()
{
int i;
int K;
int A, B;
scanf("%d", &K);
scanf("%d%d", &A, &B);
for (i = 1; i <= 1000; i++) {
if ((i*K >= A) && (i*K <= B)) {
printf("OK\n");
break;
}
}
if (i == 1001) {
printf("NG\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void){
int a,b,k;
scanf("%d",&k);
scanf("%d %d",&a, &b);
int i;
for(i=a; i<=b; i++){
if(i % k == 0){
printf("OK");
return 0;
}
}
printf("NG");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333396/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333396/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(void)
{
int a = 0, b = 0, k = 0;
int chk_flg = 0;
scanf("%d", &k);
scanf("%d%d", &a, &b);
for(int i = a; i <= b; i++){
if(i % k == 0)
chk_flg = 1;
}
if(chk_flg == 1)
printf("OK");
else
printf("NG");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333446/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333446/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
long long int l,r;
scanf("%lld%lld",&l,&r);
if(l==r)
{
printf("0\n");
continue;
}
long long int a=r;
long long int b=(a/2)+1;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33349/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33349/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int k,a,b;
scanf("%d %d %d",&k,&a,&b);
int i;
int flag=0;
for(i=a;i<b+1;i++){
if(i%k==0){
flag=1;
break;
}
}
if(flag==0){
printf("NG");
}
else{
printf("OK");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 K, A, B;
scanf("%d", &K);
scanf("%d %d", &A, &B);
int i;
int flag = 0;
for(i = A; i < B+1; i++) {
if(i%K == 0) {
flag = 1;
}
}
if(flag == 1) {
printf("OK");
} else {
printf("NG");
}
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333576/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333576/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i;
scanf("%d %d %d",&n,&a,&b);
for(i=a;i<=b;i++){
if(i%n==0){
printf("OK\n");
return 0;
}
}
printf("NG\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333619/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333619/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 d,t,s;
scanf("%d %d %d",&d,&t,&s);
if(d<=t*s)
puts("Yes");
else
puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333662/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333662/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 d, t, s;
scanf("%d %d %d", &d, &t, &s);
if (d <= t * s)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333705/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333705/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
return;
}
int gcd(int a,int b){
if(a<b){
swap(&a,&b);
}
if(b==0){
return a;
}
int r=a%b;
while(r!=0){
a = b;
b = r;
r = (a%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333749/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333749/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int d,t,s;
scanf("%d%d%d",&d,&t,&s);
if(s*t >= d) printf("Yes");
else printf("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333792/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333792/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 d, t, s;
double sum;
scanf("%d", &d);
scanf("%d", &t);
scanf("%d", &s);
sum = (double)d / s;
if (sum <= t) {
printf("Yes");
}
else {
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333835/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333835/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
double d,t,s;
scanf("%lf %lf %lf",&d,&t,&s);
if(d/s<=t)
printf("Yes");
else
printf("No");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333879/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333879/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 10
int main(void){
int d,t,s;
scanf("%d %d %d",&d,&t,&s);
if(t < d / s){
printf("No\n");
}
else if(d % s != 0 && t == d / s){
printf("No\n");
}
else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int t,n,i,j,k,count;
scanf("%d",&t);
while(t--)
{
k=0,count=0;
scanf("%d",&n);
int a[n],b[n*n];
for(i=0;i<n;i++)
{scanf("%d",&a[i]);}
for(i=0;i<n;i++)
{
for(j=i+1;j<n;j++)
{
b[k]=a[j]-a[i];
k++;
}
}
for(i=0;i<k;i++)
{
if(b[i]!=-1)
{ count++;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33398/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33398/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 d, t, s;
scanf("%d %d %d", &d, &t, &s);
if (d > t * s)
printf("No\n");
else
printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334021/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334021/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a,b,c;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d%d",&b,&c);
if(b%c==0){
printf("%d\n",c);
}
else{
printf("%d\n",b%c);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334065/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334065/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, K, P;
scanf("%d", &N);
while ( N ) {
scanf("%d %d", &K, &P);
if ( K % P == 0 ) printf("%d\n", P);
else printf("%d\n", K % P);
N--;
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334115/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll_int long long int
int main()
{
int n, m;
ll_int *A, *B;
int count;
int i, j, k;
scanf("%d", &n);
A = (ll_int *)malloc(sizeof(ll_int) * n);
for(i = 0; i < n; i++)
scanf("%lld", &A[i]);
scanf("%d", &m);
B = (ll_int *)malloc(sizeof(ll_int) * m);
for(i = 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334159/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 s[1001]={0};
int i;
scanf("%s",s);
for(i=0;s[i]!='\0';i++){
if(s[i]<68){
s[i]+=26;
}
s[i]-=3;
}
printf("%s\n",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334209/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334209/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M 1010
int main(void){
int i;
char ch[M];
scanf("%s",ch);
for(i=0;ch[i];i++){
ch[i]-=3;
if(ch[i]<'A')
ch[i]+=26;
}
printf("%s\n",ch);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mozi[1001];
int i, a;
scanf("%s", mozi);
a=strlen(mozi);
for(i=0; i<a; i++)
{
if(mozi[i]=='A')
{
mozi[i]='X';
}
else if(mozi[i]=='B')
{
mozi[i]='Y';
}
else if(mozi[i]=='C')
{
mozi[i]='Z';
}
else
{
mozi[i]=mozi[i]-3;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main()
{
int i,j,k,n,m,s,r;
int a[100005],b[200005];
scanf("%d",&n);
for (i=0;i<n;i++){
memset(a,0,sizeof(a));
memset(b,0,sizeof(b));
s=0;
scanf("%d",&m);
for (j=1;j<=m;j++){
scanf("%d",&a[j]);
}
r = a[m-1];
for (j=1;j<=m;j++){
if (!b[a[j]]){... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33439/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
scanf("%d", &x);
for (int i = 0; i < x; i++)
{
int c;
scanf("%d", &c);
int p[c];
for (int j = 0; j < c; j++)
{
scanf("%d", &p[j]);
}
int book[51] = {0};
int count = 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33444/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33444/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 sum(int K){
int a=0;
for(;K>0;K=K/10){
a=a+K%10;
}
return a;
}
int main()
{
int N,A,B,answer=0;
scanf("%d %d %d",&N,&A,&B);
for(;N>0;N=N-1){
if(A<=sum(N)&&sum(N)<=B){
answer=answer+N;
}
}
printf("%d\n",answer);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334483/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334483/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 a, b;
int x[5];
int sum;
int total = 0;
int i,j;
scanf("%d%d%d", &n, &a, &b);
for (i = 1; i <= n; i++)
{
x[0] = i / 10000;
x[1] = (i % 10000) /1000;
x[2] = (i % 1000) /100;
x[3] = (i % 100) / 10;
x[4] = i % 10;
sum = 0;
for ( j = 0; j < 5;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334526/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334526/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,a,b,w,s=0,i,j,k;
scanf("%lld%lld%lld",&n,&a,&b);
for(i=1;i<=n;i++)
{
// if(i>=a&&i<10)
// s=s+i;
// if(i>=10)
// {
j=i;
w=0;
while(j!=0)
{
k=j%10;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,s=0;
scanf("%d%d%d",&n,&a,&b);
for(int i=1;i<=n;i++){
int c=0;
for(int j=i;j;j/=10)c+=j%10;
if(a<=c&&c<=b)s+=i;
}
printf("%d",s);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334627/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334627/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,a,b;
scanf("%d %d %d",&n,&a,&b);
int i,sum=0,j,tmp;
for(i=1;i<=n;i++){
tmp=0;j=i;
while(j!=0){
tmp+=j%10;
j/=10;
}
if(tmp>=a&&tmp<=b) sum+=i;
}
printf("%d",sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334670/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334670/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, i, tmp, sum = 0, ans = 0;
scanf("%d%d%d",&n,&a,&b);
for(i=1; i<=n; i++){
tmp = i; //初期化
sum = 0;
while(1){ //各桁の和を計算
sum += tmp%10;
tmp /= 10;
if(tmp == 0){
break;
}
}
if(a <= sum && sum <= b){ //a以上b以下か
ans += i;
}
}
printf("%d\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int DigitSum(int x){
return x%10 + (x/10)%10 + (x/100)%10 + (x/1000)%10 + (x/10000)%10;
}
int main(){
int N,A,B,K,i;
scanf("%d %d %d",&N,&A,&B);
for(i = 1; i <= N; i++){
if(A <= DigitSum(i) && DigitSum(i) <= B){
K += i;
}
}
printf("%d\n",K);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef long long unsigned u64;
typedef unsigned u;
u N[111111],L[111111];u64 A;
int F(const void*x,const void*y){return*(int*)x-*(int*)y;}
int main()
{
u n,i,j;
scanf("%u",&n);
for(i=j=-1;++i<n;scanf("%u",N+i));
qsort(N,n,sizeof(u),F);
while(--n)if(N[n]-N[n-1]<2){L[++j]=N[n-1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33480/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33480/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 main()
{
int a,b;
scanf("%d%d",&a,&b);
printf("%d",6-(a+b));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
if(a==1&&b==2||a==2&&b==1){
printf("3\n");
}
else if(a==2&&b==3||a==3&&b==2){
printf("1\n");
}
else if(a==3&&b==1||a==1&&b==3){
printf("2\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334894/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334894/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 ans=6-a-b;
printf("%d",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.