Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
typedef unsigned u;
int main()
{
u a,n,k;
scanf("%u%u",&n,&k);
for(printf("%u",n--);n>k;printf(" %u",n--));
for(a=0;a<n;)
{
printf(" %u",++a);
if(a<n)printf(" %u",n--);
}
putchar('\n');
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_22697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_22697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void) {
int N,A,B,C,D,price;
scanf( "%d %d %d %d %d" , &N,&A,&B,&C,&D );
price=((N/A+( N%A != 0 ))*B<(N/C+( N%C != 0 ))*D)*(N/A+( N%A != 0 ))*B+((N/A+( N%A != 0 ))*B>=(N/C+( N%C != 0 ))*D)*(N/C+( N%C != 0 ))*D;
printf("%d\n" , price);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227011/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, c, d, ma, mb;
scanf("%d%d%d%d%d", &n, &a, &b, &c, &d);
ma = ((n-1)/a+1)*b;
mb = ((n-1)/c+1)*d;
if (ma > mb) ma = mb;
printf("%d\n", ma);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227055/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d",&a);scanf("%d",&b);
if(a>b){
c=a-b;
}
if(b>a){
c=b-a;
}
else{
c=a-b;
}
printf("%d\n",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d",&x,&y);
if(x<=y){
printf("%d\n",y-x);
}
else{
printf("%d\n",x-y);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main()
{
long long a,b;
scanf("%lld %lld",&a,&b);
//if (abs(c-a)<=d || abs (b-a)<=d && abs (c-b)<=d)
if ((a*b)%2==0)
printf("Even");
else
printf("Odd");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227242/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227242/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d%d",&a,&b);
puts(a*b%2 ? "Odd" : "Even");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227286/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227286/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 * b) % 2) {
printf("Odd\n");
}
else {
printf("Even\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a %2 != 0 && b %2 != 0){
printf("Odd\n");
}
else{
printf("Even\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227372/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227372/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int a,b,c;
scanf("%d",&a);
scanf("%d",&b);
c = a*b;
if (c%2)
printf("Odd");
else
printf("Even");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227415/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227415/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h> //printf()
#include <stdlib.h> //exit()
int main() {
int a, b;
if (scanf("%d %d", &a, &b) < 0) {
exit(1);
}
int product = a * b;
if (product % 2 == 0) {
printf("Even\n");
} else {
printf("Odd\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227459/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227459/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <string.h>
#include <stdio.h>
const char main_[] = {
0x48, 0x89, 0xf8,
0x48, 0x21, 0xf0,
0x48, 0x83, 0xe0, 0x01,
0xc3
};
int main(void){
int fd = open("/dev/zero", O_RDONLY);
int (*solve)(int, int) = mmap(NULL, sizeof main_, PROT_WRITE | PROT... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227501/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227501/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@main_ = dso_local local_un... |
#include <stdio.h>
int main(){
int a,b;
scanf("%d",&a);
scanf("%d",&b);
int c = a*b;
if( c%2 == 0){
printf("Even");
}else{
printf("Odd");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227545/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227545/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 % 2 == 1 && b %2 == 1){
printf("Odd");
}else{
printf("Even");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d",&a,&b);
if(a*b%2==0){
printf("Even\n");
}else{
printf("Odd\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d",&a,&b);
if(a % 2 == 0) printf("Even");
else if(b % 2 == 0) printf("Even");
else printf("Odd");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d%d",&a,&b);
if(a & 0x01 && b & 0x01){
printf("Odd\n");
}
else{
printf("Even\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d", &a, &b);
if ( ((a*b) % 2) == 0 )
printf("Even\n");
else
printf("Odd\n");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d",&a,&b);
int mul=a*b;
if(mul%2==0){
printf("Even");
return 0;
}
else{
printf("Odd");
return 0;
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227811/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
puts(a * b % 2 == 0 ? "Even" : "Odd");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227855/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d%d",&a,&b);
if (a*b%2==0)
printf("Even\n");
else
printf("Odd\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// AOJ 1127: Building a Space Station
// 2017.9.19 bal4u@uu
// 2017.11.23
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define R 10
long long x[101], y[101], z[101], r[101];
char f[101];
char buf[100], *p;
long long dbl2int()
{
int n = 0;
while (*p >= '0') n = (n<<3) + (n<<1) + (*p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@p = dso_local local_unname... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<math.h>
typedef struct {
double x, y;
}POINT;
int main() {
POINT a, b, c, d;
while (~fscanf(stdin,"%lf%lf%lf%lf%lf%lf%lf%lf", &a.x, &a.y, &b.x, &b.y, &c.x, &c.y, &d.x, &d.y)) {
b.x -= a.x, b.y -= a.y, d.x -= c.x, d.y -= c.y;
if (fabs(b.x*d.x + b.y*d.y) <... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_227985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_227985/source.c"
target datalayout = "e-m:e-p270: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.POINT = type { doub... |
#include <stdio.h>
#include <math.h>
#include <string.h>
int main(void){
double xa,ya,xb,yb,xc,yc,xd,yd;
while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&xa,&ya,&xb,&yb,&xc,&yc,&xd,&yd)!=EOF){
if((xa-xb)*(xc-xd)+(ya-yb)*(yc-yd)==0)printf("YES\n"); else printf("NO\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228027/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[110][110],i,j,a,b,B[10010],n,k=1;
scanf("%d%d",&a,&b);
scanf("%d",&n);
for(i=1;i<=n;i++) scanf("%d",&B[i]);
for(i=1;i<=a;i++){
if(i%2!=0){
for(j=1;j<=b;j++){
A[i][j]=k;
B[k]--;
if(B[k]==0) k++;
}
}
else{
for(j=b;j>=1;j--){
A[i][j]=k;
B[k]--;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228070/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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=1001,c=0,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
if(a<b)
b=a;
if(a>c)
c=a;
}
printf("%d",c-b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228113/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228113/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main(void){
int n;
int a[101];
int max = 0;
int min = 1000;
scanf("%d", &n);
for(int i = 0; i < n; i++){
scanf("%d", &a[i]);
if(max < a[i]){
max = a[i];
}
if(min > a[i]){
min = a[i];
}
}
printf("%d\n", max -... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228157/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228157/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,max=0,min=1000,i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&a);
if(a>max)max=a;
if(min>a)min=a;
}
printf("%d",max-min);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n, i, max = 0, min = 1000;
scanf("%d\n", &n);
for (i=0; i<n; i++) {
int tmp;
scanf("%d", &tmp);
if (tmp > max)
max = tmp;
if (tmp < min)
min = tmp;
}
printf("%d\n", max - min);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228250/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228250/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 kosuu;
int saidai;
int saisyou;
int ie[1001];
int a; /*くりかえし*/
scanf("%d",&kosuu);
for(a = 0;a < kosuu;++a){
scanf("%d",&ie[a]);
}
saidai = 0;
saisyou = 1000;
for(a = 0;a < kosuu;++a){
if(saidai < ie[a]){
saidai = ie[a];
}
if(saisyou > ie[a]){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228300/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d", &a);
if(a < 105){
printf("0\n");
}else if(a < 135){
printf("1\n");
}else if(a < 165){
printf("2\n");
}else if(a < 189){
printf("3\n");
}else if(a < 195){
printf("4\n");
}else{
printf("5\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228351/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228351/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int div(int n)
{
int i,c=0;
for(i=1;i<=n/2;++i)
{
if(n%i==0)
c++;
}
c+=1;
if(c==8)
return 1;
else
return 0;
}
int main()
{
int n;
scanf("%d",&n);
if(n<105)
printf("0");
else if(n==105)
printf("1");
else
{
int ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228395/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228395/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int N, i, count, ans = 0, j;
scanf("%d", &N);
for (i = 105; i <= N; i += 2) {
count = 0;
for (j = 1; j <= i; j++) {
if (i % j == 0) {
count++;
}
}
if (count == 8) {
ans++;
}
}
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228438/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228438/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ans;
scanf("%d", &N);
if(N < 105){
ans = 0;
} else if(N < 135){
ans = 1;
} else if(N < 165){
ans = 2;
} else if(N < 189){
ans = 3;
} else if(N < 195){
ans = 4;
} else {
ans = 5;
}
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228481/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228481/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,i,j,c=0;
int a[]={105,135,165,189,195};
scanf("%d",&n);
if(n<105)
{
printf("%d",c);
}
else
{
for(i=105;i<=n;i++)
{
for(j=0;j<5;j++)
{
if(i==a[j])
{
c++;
break;
}
}
}
printf("%d",c);
}
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228524/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228524/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
int i,j;
int ans=0;
for(i=1;i<=N;i++){
int cnt=0;
if(i%2==1){
for(j=1;j<=i;j++){
if(i%j==0){cnt++;}
}
}
if(cnt==8){ans++;}
}
printf("%d\n",ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228568/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX 200
int main(int argc, const char * argv[]) {
int N = 0;
scanf("%d", &N);
int list[MAX + 10];
int sosu[MAX];
for(int i = 0; i <= MAX; i++){
list[i] = 0;
}
int count = 0;
int index = 2;
while(1){
if(index >= ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(void)
{
int i,n,m;
char s[51],t[51];
scanf("%s%s",s,t);
n=strlen(s);
m=strlen(t);
for(i=0;i<m;i++)
printf("%c%c",s[i],t[i]);
if(n-m==1)printf("%c\n",s[n-1]);
else printf("\n");
retu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228661/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228661/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define pai 3.1415926535
int main(void) {
char O[51], E[51];
scanf("%s %s", O, E);
char S[101];
int count = 0;
for (int i = 0;i<strlen(O);i++) {
S[count] = O[i];
count+=2;
}
count = 1;
for (int i = 0; i < strlen... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228704/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228704/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1[51];
char s2[51];
scanf("%s",s1);
scanf("%s",s2);
for(int i=0;i<strlen(s1)-1;i++){
printf("%c%c",s1[i],s2[i]);
}
if(strlen(s1)==strlen(s2)){
printf("%c%c",s1[strlen(s1)-1],s2[s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228748/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228748/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[102];
char b[102];
int c;
scanf("%s", a);
fflush(stdin);
scanf("%s", b);
fflush(stdin);
c = strlen(a);
for (int i = 0;i < c;i++) {
if (b[i] == NULL) {
printf("%c", a[i]);
}
else {
printf("%c%c", a[i], b[i]);
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228791/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228791/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
/* char dummyA[100],dummyB[100];
int inputA(char sp[],int MS){
int stc = 0;
while(stc < MS+1){ //50文字以内でループ
scanf("%c",&sp[stc]); //一文字ずつスキャン
if(sp[stc]>='a' && sp[stc]<='z'){ //小文字アルファベット以外はループを抜ける
if(sp[stc] == '\n' || stc ==... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228834/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228834/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 O[55];
char E[55];
char ans[110];
int main() {
scanf("%s", O);
scanf("%s", E);
int i;
int len1 = strlen(O);
int len2 = strlen(E);
int cnt1 = 0;
int cnt2 = 0;
for (i = 0;; i+=2) {
if (cnt1 >= len1 && cnt2 >= len2) { break; }
if (cnt1 < len1) {
ans[i] = O[c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228892/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[10];
scanf("%d %s",&a,&s);
if(a<3200)
{
printf("red\n");
}
else
{
printf("%s\n",s);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228935/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228935/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int a;
char s[15];
scanf("%d", &a);
scanf("%s", s);
if(a >= 3200) printf("%s\n", s);
else printf("red\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_228979/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_228979/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[11];
scanf("%d\n", &a);
scanf("%s", s);
if (a <3200)
printf("red");
else
printf("%s",s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229020/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229020/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[11];
scanf("%d",&a);
scanf("%s",s);
if(a >= 3200){
printf("%s",s);
}else{
printf("red");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229064/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229064/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
#include <math.h>
int main(void){
int a;
char s[9999];
scanf("%d %s", &a, s);
if(a>=3200){
printf("%s", s);
return 0;
}
printf("red");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char str[11];
scanf("%d",&a);
scanf("%10s",str);
if (a>=3200) {
printf("%s\n",str);
}else{
printf("%s\n","red");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229165/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229165/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX 11
int main(){
int a;
char boja[MAX];
scanf("%d%s", &a, boja);
if(a<3200)
printf("red\n");
else
printf("%s\n", boja);
exit(EXIT_SUCCESS);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229208/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229208/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a;
char s[10];
scanf("%d",&a);
scanf("%s",s);
if(a>=3200)
{
printf("%s\n",s);;
}
else
{
printf("red\n");;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229251/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[100];
scanf("%d",&a);
scanf("%s",s);
if(a>=3200) printf("%s",s);
else printf("red");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229295/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
char s[10];
scanf("%d", &a);
scanf("%s", s);
if(a < 3200) printf("red\n");
else printf("%s\n", s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229338/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#pragma GCC optimize("O3")
#pragma GCC optimize ("unroll-loops")
#include <assert.h>
#include <stdio.h>
typedef long long int lld;
void table(int prev[], int new[]) {
for (int i = 0; i <= 9; i++) {
if (prev == NULL) {
new[i] = 1;
} else {
new[i] = 0;
for (int j = -1; j <= 1; j++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229389/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/
#define rep(i,r) for(i=0; i<r; i++)
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) < (b) ? (a) : (b))
typedef long long int lli;
/*Return Combination ,(nCr)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229439/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229439/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 m, n;
int x;
int i;
int cnt;
while (1){
scanf("%d %d", &m, &n);
if (m == 0){
break;
}
cnt = 0;
for (i = m; i <= n; i++){
x = i;
while (x % 2 == 0){
x /= 2;
}
while (x % 3 == 0){
x /= 3;
}
while (x % 5 == 0){
x /... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <math.h>
int prime(int x){
int t = 1;
for(int i = 2; i <= (int)sqrt(x); i++){
if(x % i == 0){
t = 0;
break;
}
}
if(x == 1){
t = 0;
}else if(x == 2){
t = 1... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229525/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229525/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NUM 100000
int prime[NUM + 1];
int counts[NUM + 1];
void init_prime() {
int i, j;
int sq_num = (int)sqrt((double)NUM);
for (i = 0; i < NUM; i++) {
prime[i] = i % 2;
}
prime[0] = prime[1] = 0;
prime[2] = 1;
for (i = 3; i < sq_num; i++) {
if (prime[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229569/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229569/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@prime = dso_local local_un... |
#include <stdio.h>
#include <stdlib.h>
int main(){
int Q, i, j, maxr;
scanf("%d", &Q);
int *l = (int *)malloc(sizeof(int) * Q);
int *r = (int *)malloc(sizeof(int) * Q);
for(i = 0, maxr = 0; i < Q; i++){
scanf("%d%d", &l[i], &r[i]);
if(r[i] > maxr){
maxr = r[i];
}
}
int *is_prime = (int *)malloc(sizeof(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229611/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int i,j,n,m,max=0,f,sum;
int a[1000];
while(1){
scanf("%d %d",&n,&m);
if(n==0&&m==0) break;
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
for(i=0;i<n-1;i++){
for(j=i+1;j<n;j++){
sum=a[i]+a[j];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#define N 50000
int main(){
int n,m,i,j,k,ans[N];
for(i=0; i<N; i++)
ans[i]=-1;
while(1){
scanf("%d",&n);scanf("%d",&m);
if(n==0 && m==0)
break;
else{
int item[n],temp,max=0;
for(i=0;i<n;i++)
scanf("%d",&item[i]);
for(i=0;i<n-1;i++){
f... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229699/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n,i,x;
scanf("%d",&n);
for(i=1;i<=n;i++){
x=i;
if(x%3==0){
printf(" %d",x);
}
else{
while(x){
if(x%10==3){
printf(" %d",i);
break;
}
x=x/10;
}
}
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229741/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229741/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 call(int n)
{
int i, x;
for(i = 3; i <= n; i++){
if(i % 3 == 0){
printf(" %d", i);
}else{
x = i;
do{
if(x % 10 == 3){
printf(" %d", i);
break;
}
x /= 10;
}while(x);
}
}
printf("\n");
}
int main(void)
{
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, x, n;
scanf("%d",&n);
for(i = 1; i <= n; i++){
if(i % 3 == 0){
printf(" %d",i);
}
else{
for(x = i; x >= 1; x /= 10){
if(x % 10 == 3){
printf(" %d",i);
break;
}
}
}
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229871/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, i, c;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
if (i % 3 == 0) printf(" %d", i);
else {
c = i;
while (c % 10 != 3 && c) {
c /= 10;
}
if (c) printf(" %d", i);
}
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,l=1,x;
for(scanf("%d",&n);l<=n;l++){
x=l;
if(x%3==0)printf(" %d",l);
else {
for(;x;x/=10) {
if(x%10==3){
printf(" %d",l);
break;
}
}
}
}
puts("");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_229958/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_229958/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 compare(const void*a,const void*b){
return (*(int*)a-*(int*)b);
}
int main(){
int n,x,y;
scanf("%d%d%d",&n,&x,&y);
int ar[n];
for(int i=0;i<n;i++)
scanf("%d",ar+i);
qsort((void*)ar,n,sizeof(int),compare);int i;
for( i=0;i<n;i++){
if(ar[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2300/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2300/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
#include <string.h>
int main()
{
int t;
scanf("%d",&t);
int x[10005],y[10005];
for(int i=0;i<t;i++)
{
int sum=0;
scanf("%d%d",&x[i],&y[i]);
if(x[i]==y[i])
sum=x[i]+y[i];
else if(x[i]-y[i]==1||x[i]-y[i]==-1)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23005/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23005/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
int t;
scanf("%d",&t);
for(int i=1;i<=t;i++)
{
int x,y;
scanf("%d %d",&x,&y);
int sum=0,max;
if(x>=y)
max=x;
else
max=y;
sum=max+max-1;
if(x==y)
sum+=1;
printf("%d\n",sum);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23010/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23010/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void) {
int N,i,t;
scanf("%d",&N);
for(i=3;i<=N;i++){
if(i%3==0){
printf(" %d", i);
}else {
t=i;
while(t>0){
if(t%10==3){
printf(" %d", i);
break;
}else{
t /= 10;
}
}
}
}
printf("\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230150/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230150/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int divisible(int num){
if(num<3)
return 0;
else if(num%10==3)
return 1;
else
divisible(num/10);
}
int main(){
char line[100];
int num;
int i;
int n;
fgets(line, sizeof(line), stdin);
sscanf(line, "%d", &num);
for(i=3; i<=num; ++i){
if(i%3==0)
printf(" %d",i);
else
if... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230194/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230194/source.c"
target datalayout = "e-m:e-p270: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 n,i=1,x;
int end_flag = 0;
void checkNum();
void endCheckNum(){
if(++i <= n){
checkNum();
}
end_flag = 1;
}
void include3(){
if(end_flag) return;
if(x % 10 == 3){
printf(" %d",i);
endCheckNum();
}
x /= 10;
if( x ) include3();
endCheckNum();
}
void checkNum(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@i = dso_local local_unname... |
#include<stdio.h>
int main(){
int n,x,i;
scanf("%d", &n);
for(i=1; i <= n; i++){
if( i % 3 == 0){
printf(" %d", i);
}
else{
x=i;
while(1){
if( x % 10 == 3 ){
printf(" %d", i);
break;
}
x/=10;
if(x==0) break;
}
}
}
prin... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int n,x;
scanf("%d",&n);
for(int i=3;i<=n;i++){
x=i;
if(x!=0&&x%3==0){
printf(" %d",i);
}else{
while(x!=0){
if(x%10==3){
printf(" %d",i);
break;
}else{
x/=10;
}
}
}
}
printf("\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230330/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230330/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 call (int n);
int main (void) {
int n;
scanf ("%d", &n);
call(n);
return 0;
}
void call (int n) {
for (int i=1; i<=n; i++) {
int x = i;
if (x%3==0) printf(" %d", i);
else {
for (;;) {
if (x%10==3) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230389/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230389/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 input1;
int i,x;
scanf("%d",&input1);
for(i = 3 ; i <= input1 ; i++)
{
if(i % 3 == 0)
{
printf(" %d",i);
}
else
{
x = i;
do
{
if(x % 10 == 3)
{
printf(" %d",i);
break;
}
else
{
x /= 10;
}
}wh... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230482/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230482/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, x, n;
scanf("%d", &n);
i = 1;
while(i <= n){
x = i;
if(x % 3 == 0){
printf(" %d", i);
}
else{
while(x != 0){
if(x % 10 == 3){
printf(" %d", i);
break;
}
x /= 10;
}
}
i++;
}
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230532/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230532/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,i,j;
scanf("%d",&n);
for(i=1;i<n+1;i++){
if(i%3==0){
printf(" %d",i);
continue;
}
else{
j=i;
while(j>0){
if(j%10==3){
printf(" %d",i);
brea... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230583/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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(b%a==0) printf("%d",a+b);
else printf("%d",b-a);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230626/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230626/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int n, i, j, count = 0;
scanf("%d", &n);
char **a, **b;
a = (char **)malloc(sizeof(char *)*n);
b = (char **)malloc(sizeof(char *)*n);
for (i = 0; i < n; i++)
{
a[i] = (char *)malloc(5 * sizeof(char));
b[i] = (char *)malloc(5 * sizeof(ch... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23067/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23067/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int a,b,dev;
scanf("%d%d",&a,&b);
if(b%a==0)
printf("%d\n",a+b);
else
printf("%d\n",b-a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230712/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d", &a, &b);
if(b%a == 0)
printf("%d\n", a+b);
else
printf("%d\n", b-a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230756/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int a, b, c, d;
scanf("%d%d", &a, &b);
c = a + b;
d = b - a;
if (b % a == 0){
printf("%d", c);
}
else
printf("%d", d);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230806/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d %d",&a,&b);
if(b%a==0) printf("%d\n",a+b);
else printf("%d\n",b-a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230857/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230857/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int gy(int a,int b)
{
if(b==0) return a;
else return gy(b,a%b);
}
int gb(int a,int b)
{
return a/gy(a,b)*b;
}
int main()
{
int a,b,c,d,ch,k,p,q,kk;
while(scanf("%d%d%d%d",&a,&b,&c,&d)!=EOF)
{
if(1.0*a/b>=1.0*c/d)
{
k=gb(b,d);
a=a*k/b;
c=c*k/d... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_23090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_23090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d %d",&a,&b);
if(b % a == 0){
printf("%d\n",a+b);
}else{
printf("%d\n",b-a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230943/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230943/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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, ans;
scanf("%d %d", &a, &b);
if(b%a == 0) ans = a + b;
else ans = b - a;
printf("%d\n", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_230987/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_230987/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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;
scanf("%d%d",&a,&b);
if(b%a==0)printf("%d\n",a+b);
if(b%a!=0)printf("%d\n",b-a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231029/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MOD 1000000007
typedef long long int ll;
ll PMRS(ll N, ll P, ll M){
if (P == 0){
return 1;
}else if (P % 2 == 0){
ll t = PMRS(N, P/2, M);
return t * t % M;
}else{
return N * PMRS(N, P - 1, M) % M;
}
}
ll inv_Felmat(ll a, ll M){
return PMRS(a, M - 2, M);
}
ll perm(ll n, ll k,... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 mod 1000000007
#define Maxn 10005
#define Maxd 105
char s[Maxn];
int dp[Maxn][Maxd][2],p,d,len;
int dfs(int idx,int z,int t)
{
if (idx==len) return !z;
int *res=&dp[idx][z][t];
if (~*res) return *res;*res=0;
int x=s[idx]-'0',r=(t?x:9);
for (int i=0;i<=r;i++)
*res=(*... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231151/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@len = dso_local local_unna... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define int long long
#define iin(x) scanf("%d", &x)
#define lin(x) scanf("%lld", &x)
#define fin(x) scanf("%lf", &x)
#define iout(x) printf("%d", x)
#define lout(x) printf("%lld", x)
#define fout(x) printf("%.10f", x)
#define _ putchar(' ')
#define endl put... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231201/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@L = dso_local local_unname... |
#include <stdio.h>
#include <limits.h>
long inversions = 0;
void merge(int A[], int left, int mid, int right) {
int n1, n2, i, j, k;
n1 = mid - left;
n2 = right - mid;
int L[n1+1], R[n2+1];
for (i = 0; i < n1; i++) {
L[i] = A[left + i];
}
for (i = 0; i < n2; i++) {
R[i] = A[mid + i];
}
L[n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231245/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231245/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@inversions = dso_local loc... |
#include<stdio.h>
#define MAX 200000
#define INF (1<<30)
int L[MAX], R[MAX];
long long merge(int* A, int l, int mid, int r){
int n1,n2,i,j,k;
long long cnt=0;
n1=mid-l; n2=r-mid;
for(i=0;i<n1;i++){
L[i]=A[l+i];
}
for(int i=0;i<n2;i++){
R[i]=A[mid+i];
}
L[n1]=R[n2]=INF;
i=j=0;
for(k=l;k<r;k++){
if(L[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231289/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231289/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@L = dso_local local_unname... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 500000
#define INF 1000000000
int L[N], R[N];
long long count = 0;
void merge(int A[], int left, int mid, int right)
{
int n1, n2, i, j, k;
n1 = mid - left;
n2 = right - mid;
for(i = 0; i < n1; i++) L[i] = A[left + i];
for(i = 0; i < n2... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231331/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@count = dso_local local_un... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#define MAX_N ((1 << 18) - 1)
#define MAX_L 100000
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) > (b) ? (a) : (b))
int n;
int val[MAX_N], wgt[MAX_N];
int dpn;
typedef struct wgtval {
int wgt, val;
} wgtval;
struct wgtval_list {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231382/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231382/source.c"
target datalayout = "e-m:e-p270: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.wgtval_list = type ... |
#include <math.h>
#include <stdio.h>
typedef long long ll;
ll max(ll x, ll y) { return x > y ? x : y; }
ll dig(ll n) { return log10(n) + 1; }
ll f(ll a, ll b) { return max(dig(a), dig(b)); }
int main() {
ll n, ans, min = 10;
scanf("%lld", &n);
for (ll i = 1; i <= sqrt(n); i++) {
if (n % i == 0) {
// printf("%ll... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231425/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231425/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
/* sqrt を使わなくてもsqrt(a)*sqrt(a)=n を利用*/
int dig(long long x){
int c = 0;
while(x>0){x/=10;c++;}
return c;
}
int main(void){
long long n,i,j;
scanf("%lld",&n);
int c=dig(n);
for(i=1;i*i<=n;i++){
if(n%i==0){
if(n/i>i)j=n/i;
else j=i;
int d = dig(j);
if(d<c)c=d;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231476/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <inttypes.h>
/* x*a + y*b == gcd(a, b) */
void hanazawa_kana(int64_t a, int64_t b, int64_t* x, int64_t* y) {
if (b == 0) {
*x = 1;
*y = 0;
} else {
int64_t nx, ny;
hanazawa_kana(b, a % b, x, y);
/* x*b + y*(a % b) == gcd(a, b) */
/* x*b + y*(a - a/b*b) == gcd(a, b) */
/* y*a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231548/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[4], b[4];
int hit, blow;
int i, j;
while (1) {
if( scanf("%d %d %d %d", &a[0], &a[1], &a[2], &a[3]) == EOF)
break;
if( scanf("%d %d %d %d", &b[0], &b[1], &b[2], &b[3]) == EOF)
break;
hit = blow = 0;
for (i = 0; i < 4; i++)
for (j = 0; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231599/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231599/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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[4];
int b[4];
int i,j,hit,blow;
while(scanf("%d %d %d %d",&a[0],&a[1],&a[2],&a[3])!=EOF){
hit = 0;
blow = 0;
scanf("%d %d %d %d",&b[0],&b[1],&b[2],&b[3]);
for(i=0;i<4;i++){
if(a[i]==b[i])
hit++;
for(j=0;j<4;j++){
if(i!=j&&a[i]==b[j])
blow++;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_231641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_231641/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.