Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main()
{
int n,k,i,j,l,match,compare;
while((scanf("%d %d",&n,&k)) != EOF) {
match = n * (n-1) / 2;
compare = k * n;
if(compare <= match) {
printf("%d\n",compare);
for(i=1;i<=n;++i) {
for(j=1;j<=k;++j) {
l = i + j;
if(l>n) l -= n;
printf("%d %d\n",i,l);
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32956/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32956/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int max=0;
int temp=0;
int h1=0,h2;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&h2);
if(h1>=h2)
temp++;
else{
if(max<temp)
max=temp;
temp=0;
}
h1=h2;
}
if(max<temp)
max=temp;
printf("%d",max);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329602/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329602/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,h[100000];
int max=0;
int count=0;
scanf("%d",&n);
for (int i = 0; i < n; i++)
{
scanf("%d",&h[i]);
}
for (int i = 0; i < n; i++)
{
count=0;
int j;
for (j = i; j < n-1; j++)
{
if(h[j]>=h[j+1]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329646/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329646/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*!
* @file c-football.c
* @version 1.0
* @date 17/04/2014
* @author Anton Leontiev <bunder@t-25.ru>
*
* @copyright
*
* Copyright (c) 2014, Anton Leontiev
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_32969/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_32969/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str.1 = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,i, actual=0,ant=0, resp;
scanf("%d", &n);
int h[n+1];
scanf("%d", &h[0]);
for(i=1;i<n;i++){
scanf("%d", &h[i]);
if(h[i-1]>=h[i]){
actual++;
} else {
if(actual>ant) {
ant=actual;
actual=0;
} else {
actual=0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329732/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329732/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,max = 0, count,H1,H2;
scanf("%d",&N);
scanf("%d",&H1);
count = 0;
for(int i = 1; i < N; i++)
{
scanf("%d\n",&H2);
if(H2 <= H1)
{
count++;
if(max < count)
max = count;
}
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329776/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329776/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int stpint(int *n,int k){
int i,j,r=0,c,a[10]={1,1,1,1,1,1,1,1,1,1};
int m=1;
for(i=0;i<k;i++)m*=i+1;
for(i=0;i<k;i++){
m/=k-i;
for(j=c=0;j<n[i];j++)c+=a[j];
r+=c*m;
a[j]=0;
}
return r;
}
void f(int *d,int n,int k){
int i,j,c,m=1,a[10]={1,1,1,1,1,1,1,1,1,1};
for(i=0;i<k... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329819/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329819/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.f.a = private unna... |
#include <stdio.h>
int main()
{
long long n, k, i;
long long min, max;
long long num = 0;
scanf("%lld%lld", &n, &k);
for (i = k; i <= n + 1; i++) {
min = (i * (i-1) / 2);
max = ((2*n-i+1) * i / 2);
num += max - min + 1;
}
printf("%lld\n", num % 1000000007);
r... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329862/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329862/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m=1e9+7;
int main()
{
long long int n,k,a[200005],c,i,b[200005],j;long long s=0;
scanf("%lld %lld",&n,&k);
a[0]=0;b[n]=n;
for(i=1;i<=200004;i++)
{
a[i]=(a[i-1]+i);
}
for(i=n;i>=0;i--)
{
b[i]=(b[i+1]+i);
}
//for(i=k-1,j=n-... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329912/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329912/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@m = dso_local local_unname... |
#include <stdio.h>
#include <math.h>
int main(void)
{
long int i, n, k, min = 0, max = 0, sum = 0, result = 0;
scanf("%ld %ld", &n, &k);
for( i = 0; i <= n; i++ ){
min += i;
max += n-i;
if( i >= k-1 ){
sum += ( max - min + 1 );
}
}
result = sum % 1000000007;
pr... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
long long p = 1000000007;
long long n, k, x, ans;
int main() {
scanf("%lld%lld", &n, &k);
for (long long i = k; i <= n + 1; i++) {
x = (2 * n - i + 1) * i - (i - 1) * i;
x /= 2;
ans += x + 1;
ans %= p;
}
printf("%lld\n", ans);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330004/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330004/source.c"
target datalayout = "e-m:e-p270: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... |
#include <stdio.h>
int main() {
char a[100],b[100],c[100];
scanf("%s", a, 100);
scanf("%s", b, 100);
scanf("%s", c, 100);
printf("%c%c%c\n", a[0], b[0], c[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330048/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330048/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1002];
int i,h,len,j,n,k;
scanf(" %[^\n]", s);
len=strlen(s);
for(i=0;i<len;i++){
if(i==0) {
k = s[i];
printf("%c",k);
}
}
len=strlen(s);
for(j=0;j<len;j++) {
if (s[j] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330091/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330091/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#include <time.h>
#define _CRT_SECURE_NO_WARNINGS
int main(int argc, char const *argv[])
{
int str[100] = {'\0'};
scanf("AtCoder %s Contest",str);
printf("A%cC",str[0]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330134/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330134/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 s1[120];
char s2[120];
char s3[120];
scanf("%s %s %s",s1,s2,s3);
printf("A%cC\n",s2[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330178/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330178/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 Atcoder[8], s[101], Contest[8];
scanf("%s%s%s", Atcoder, s, Contest);
printf("A%cC\n", s[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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[200],b[200],c[200];
scanf("%s",a);
scanf("%s",b);
scanf("%s",c);
printf("A%cC\n",b[0]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330271/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330271/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,d,e;
scanf("%d %d %d",&x,&a,&b);
d= x>=a ? x-a:a-x;
e= x>=b ? x-b:b-x;
if(d<e) printf("A\n");
else printf("B\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330321/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330321/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <wchar.h>
#include <math.h>
#define N_MAX (100)
#define P_MAX (100)
#define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330365/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330365/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,a,b;
scanf("%d%d%d",&x,&a,&b);
if(abs(x-a) < abs(x-b))printf("A");
else printf("B");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330422/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330422/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
#include <math.h>
int main(void)
{
int x, a, b;
int dist1, dist2;
scanf("%d %d %d", &x, &a, &b);
dist1 = abs(x-a);
dist2 = abs(x-b);
if (dist1<dist2) printf("A");
else printf("B");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330473/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330473/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(){
int x, a, b;
scanf( "%d %d %d", &x, &a, &b );
if( fabs((double)(x-a)) < fabs((double)(x-b)) ){
printf("A");
}else{
printf("B");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330538/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330538/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int a;
int b;
scanf("%d %d %d",&x,&a,&b);
if((x-a)*(x-a)>(x-b)*(x-b))
{
printf("B\n");
}else{
printf("A\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x, y;
scanf("%d %d", &x, &y);
printf("%d", x+y/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,t=0;
while(~scanf("%d%d",&x,&y))
{
if(y%2==0)
{
t=x+(y/2);
}
printf("%d\n",t);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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);
printf("%d",x+(int)y/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,result;
scanf(" %d %d",&x,&y);
if(x>0 && y>0 && x<101 &&y<101 && y%2==0)
{
result=x+y/2;
printf("%d",result);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330769/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330769/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<limits.h>
#include<string.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_330811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330811/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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\n",x + y/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330855/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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);
printf("%d\n",X+Y/2);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_330956/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330956/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main()
{
long long int n,i,j,a[49][49],temp[49][49]={0},p,q,k,l;
scanf("%lli",&n);
j=n*n;
p=k=n/2;
q=l=n-1;
a[p][q]=1;
temp[p][q]=1;
for(i=2;i<=j;i++)
{
k--;
l++;
if(k==-1&&l==n)
{
k=0;
l=n-2;
a[k][l]=i;
//printf("%lli %lli %lli\n",a[k][l],k,l... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 cons... |
#include <stdio.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_331041/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331041/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 h, w; scanf("%d %d", &h, &w);
int field[55][55] = {0}, white = 0;
for(int i=0; i<h; i++){
char s[55]; scanf("%s", s);
for(int j=0; j<w; j++)
if(s[j] == '.'){
field[i+1][j+1] = 1;
white++;
}
}
int table[55][55] = {0}; table[1][1] = 1;
int queue[255... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331085/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331085/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <limits.h>
#include <assert.h>
#define FOR(i,a,n) for(i=(a);i<(n);i++)
#define swap(type,a,b) do{type t=a;a=b;b=t;}while(0)
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#define ll long lo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331128/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331128/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dx = dso_local local_unnam... |
#include <stdio.h>
#include <string.h>
int main(void)
{
char s[101];
char p[101];
int n, m, i, j;
scanf("%s", s);
scanf("%s", p);
n = strlen(s);
m = strlen(p);
for (i = 0; i < n; i++)
{
for (j = 0; j < m; j++)
{
if (s[(i + j) % n] != p[j])
{
break;
}
}
if (j == m)
{
i = -1;
break;
}
}
if (i < 0) {
puts("Yes")... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331179/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331179/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#define dbg(fmt,...) fprintf(stderr,fmt,__VA_ARGS__)
#define dpri(x) dbg(#x ": %d\n", x)
#define dprs(x) dbg(#x ": %s\n", x)
#include <stdio.h>
#include <string.h>
typedef long long ll;
const int MYINF = 1e9+7;
#define slen 210
static char s[slen];
static char p[slen];
int main(int argc, char **argv)
{
int i, len;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331221/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331221/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@MYINF = dso_local local_un... |
#include <stdio.h>
#include <string.h>
int main() {
int i, j, len,lenp, flg;
char s[203] = "", p[101] = "";
scanf("%s", s);
strcat(p,s);
strcat(s,p);
scanf("%s", p);
for( i = 0; i < strlen(s) / 2; i++) {
flg = 1;
for( j = 0; j < strlen(p); j++) {
if(s[i + j] != p[j]) {
flg = 0;
break;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmp(const void *a,const void *b)
{
return (*(int *)a)-(*(int *)b);
}
int main(void) {
int n,i,count=1,max=1;
scanf("%d",&n);
int a[n];
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
qsort(a,n,sizeof(int),cmp);
i=0;
while(i<n-1)
{
if(a[i]==a[i+1])
{
count++;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33133/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(){
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_331373/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331373/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[200];
char p[100];
int i,k,j=0;
scanf("%s",s);
scanf("%s",p);
k = strlen(s);
for(i = k;i <= 2*k;i++){
s[i]=s[i-k];
}
if(strstr(s,p) != NULL){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331423/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331423/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){
char str1[201]={'\0'};
char str2[201]={'\0'};
char p[101];
int i,j,k;
scanf("%s",str1);
strcpy(str2,str1);
strcat(str1,str2);
scanf("%s",p);
if(strstr(str1,p) != NULL){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331467/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331467/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
static int n;
static int m;
static int A[1000];
static int B[1000];
int main(void)
{
int i, j;
scanf("%d %d\n", &n, &m);
for (i = 0; i < n; i++) {
scanf("%d", &A[i]);
}
for (i = 0; i < m; i++) {
scanf("%d", &B[i]);
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33151/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33151/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
// Your code here!
char s[101],p[101];
int i,j,sn=0,pn=0,t;
scanf("%s %s", s, p);
while(s[sn]!='\0') sn++;
while(p[pn]!='\0') pn++;
for(i=0;i<sn;i++){
t=1;
for(j=0;j<pn;j++){
if(s[(i+j)%sn]!=p[j]) t=0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331553/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331553/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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],p[101],t[201];
scanf("%s",&s);
scanf("%s",&p);
strcpy(t,s);
strcat(t,s);
if (strstr(t,p)!=NULL){
printf("Yes\n");
}else{
printf("No\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331597/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331597/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main(){
int i,k,j,p=0,num=0;
int game[1000],bill[1000];
scanf("%d%d",&i,&k);
for(j=0;j<i;j++) scanf("%d",&game[j]);
for(j=0;j<k;j++) scanf("%d",&bill[j]);
for(j=0;j<i;j++){
if(p==k) break;
if(bill[p]>=game[j]){
p++;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33164/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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){
char s[101],p[101];
int i,j,sn=0,pn=0,t;
scanf("%s %s",s,p);
//文字数カウント
while(s[sn] != '\0') sn++;
while(p[pn] != '\0') pn++;
for(i=0;i<sn;i++){
t=1;
for(j=0;j<pn;j++)
if(s[(i+j)%sn] != p[j]) t=0;
if(t) break;
}
if( t )
printf("Yes\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331690/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331690/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 name1[200], name2[100];
scanf("%s%s", name1,name2);
//つなげて検索
sprintf(name1,"%s%s", name1, name1);
if (strstr(name1, name2) == NULL) {
printf("No\n");
}
else {
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331740/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331740/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 const *argv[])
{
int i,j,flag=0,count;
char string[201];
char p[101];
scanf("%s",string);
scanf("%s",p);
for(i=0;;i++){
if(string[i] == '\0'){
count = i;
break;
}
}
for(i=0;i<count;i++){
string[i + count] = string[i];
}
for(i=0;i<100;i++){
for(j=0;;j++)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331784/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331784/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
typedef struct {
int Up;
int South;
int East;
int West;
int North;
int Down;
} Dice;
Dice moveNorth(Dice *d);
Dice moveWest(Dice *d);
Dice moveSouth(Dice *d);
Dice moveEast(Dice *d);
int main(int argc, const char * argv[]) {
int d[6];
int i;
for(i=0;i<6;i++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331827/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331827/source.c"
target datalayout = "e-m:e-p270: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> // printf(), scanf()
#include <string.h> // strlen()
#define MAX_N 100
int dice[6];
void
east()
{
int t = dice[2];
dice[2] = dice[0];
dice[0] = dice[3];
dice[3] = dice[5];
dice[5] = t;
}
void
south()
{
int t = dice[1];
dice[1] = dice[0];
dice[0] = dice[4];
dice[4] = dice[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331892/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331892/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@dice = dso_local global [6... |
#include<stdio.h>
void turn(int *DICE,char com);
int main(void){
int i;
int DICE[6];
char com[105];
for(i=0;i<6;i++){scanf("%d",&DICE[i]);}
scanf("%s",com);
i=0;
while(com[i]!='\0'){
turn(&DICE[0],com[i]);
i++;
}
printf("%d\n",DICE[0]);
return 0;
}
void turn(int *DICE,char com){
int temp;
switch(com){
case 'N':... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331942/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
struct dice{
int d1;
int d2;
int d3;
int d4;
int d5;
int d6;
};
struct dice d;
void W(){
int tmp;
tmp=d.d1;
d.d1=d.d3;
d.d3=d.d6;
d.d6=d.d4;
d.d4=tmp;
}
void N(){
int tmp;
tmp=d.d1;
d.d1=d.d2;
d.d2=d.d6;
d.d6=d.d5;
d.d5=tmp;
}
void S(){
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331986/source.c"
target datalayout = "e-m:e-p270: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, ... |
/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
***********************************************... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33205/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33205/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 f(int map[], int cur)
{
int x[6] = { 0 };
x[cur] = 1;
x[5 - cur] = 1;
for (int i = 0; i < 4; i++)
x[map[i]] = 1;
for (int i = 0; i < 6; i++)
if (x[i] == 0)
return i;
}
int main(int argc, char *argv[])
{
int d[6];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332093/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332093/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
//構造体
typedef struct dice
{
int Upper;
int South;
int East;
int West;
int North;
int Under;
} Dice;
//構造体を初期化する
Dice InitDice(void);
//配列を初期化する
void InitOpe(char* ope, int n);
//要素を入れ替える
Dice ChangeNum_East(Dice Dice);
Dice ChangeNum_West(Dice dice);
Dice ChangeNum_North(Dice dice);
Dice Chan... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332143/source.c"
target datalayout = "e-m:e-p270: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>
#include <string.h>
int i,j,k,l,m;
int n,e,s,w,un,up;
int a[7];
int t;
void input() {
for(i=0;i<6;i++){
scanf("%d",&a[i+1]);
}
}
void N() {
t = a[1];
a[1] = a[2];
a[2] = a[6];
a[6] = a[5];
a[5] = t;
}
void S() {
t = a[1];
a[1] = a[5];... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332187/source.c"
target datalayout = "e-m:e-p270: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>
#include <stdlib.h>
char str[14];
int p[9], num;
int stack[9], top;
void init() {
int i;
for (i = 0; i < 9; i++) p[i] = 0;
for (i = 0; i < 13; i++) p[str[i] - '1']++;
top = 0;
}
void calc(int n) {
if (n < 14 && num > 0) {
int i;
for (i = 0; i < 9; i++) {
if (i < 7 && p[i] &... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332251/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332251/source.c"
target datalayout = "e-m:e-p270: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... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
#include <time.h>
typedef long long ll;
typedef long double ld;
#define INF (1LL<<60)
/*swap 交換*/
void swap(ll *a, ll *b){ll c;c=*b;*b=*a;*a=c;}
/*2つのうち大きい数を返す*/
ll max2(ll a,ll b){return a>=b?a:b;}
/*2つのうち小さい数を返す*/
ll min2(ll a,ll b){return a>=b?... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332301/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332301/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() {
char s[101];
scanf("%s", s);
for (int i = 0; i < strlen(s); i++) {
char c=s[i];
if(i%2==0){
if(c=='L'){
printf("No");
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332352/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332352/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
int get_int();
int max(int a, int b)
{
if (a > b)
{
return a;
}
return b;
}
int min(int a, int b)
{
if (a < b)
{
return a;
}
return b;
}
int main()
{
int i;
int n = get_int();
int v = get_int();
int t = v - 1;
int r = v;
if (v >= n - 1)
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33241/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33241/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ
//char型のポインタ(=配列と意味は同じ)をString型と定義([0]から数える)
typedef char* String;
//S[0]から始まる文字列の長さを求める関数
int string_len(String str){
int len=0;
whil... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332453/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[101];
scanf("%s", s);
int l = strlen(s);
for (int i = 0; i < l; i++){
if (i % 2 == 0){
//奇数番目
if (s[i] == 'L'){
printf("No");
return 0;
}
}else{
//偶数番目
if (s[i] == 'R'){
printf("No");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332497/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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];
scanf("%s",S);
//printf("%c",S[1]);
int size;
size = strlen(S);
int flag = 1;//true
for(int i=0;i<size;i++){
if(i%2==0){
if(strncmp("L",&S[i],1)==0){
flag=0;
//printf("iは%d、Sは%c... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
char S[102];
int i=0,flg = 0;
scanf("%s",S);
while(S[i] != '\0'){
if((i+1) % 2 != 0){
if(S[i] != 'R' && S[i] != 'U' && S[i] != 'D' ){
flg++;
break;
}
}else{
if(S[i] != 'L' && S[i] != 'U' &&... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332598/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332598/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*
* main.c
*
* Created on: 2019/07/21
* Author: family
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main()
{
char S[101] = {0};
int len = 0, i = 0;
int ans = 0;
scanf("%s", S);
len = strlen(S);
for (i = 0; i < len; i = i+2) {
if (S[i] == 'R') {
} else if (... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332640/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332640/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int a[100001];
int com[100001],x[100001],y[100001],b[100001];
int B=2000;
int n,q;
void put(int a[100001]);
int min(int a,int b);
void update(int i,int x);
void find(int s,int t);
int main(void){
put(a);
int i;
scanf("%d %d",&n,&q);
for(i=0;i<q;i++){
scanf("%d %d %d",&com[i],&x[i],&y[i]);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332684/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332684/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@B = dso_local local_unname... |
#include <stdio.h>
int main()
{
int N, A, B;
scanf("%d %d %d", &N, &A, &B);
printf("%d\n", (A * N < B)? A * N: B);
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332727/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332727/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#define ll long long
#define rep(i,l,r) for(ll i=(l);i<(r);i++)
#define max(p,q) ((p)>(q)?(p):(q))
#define min(p,q) ((p)<(q)?(p):(q))
#define chmax(a,b) ((a)=(a)>(b)?(a):(b))
#define chmin(a,b) ((a)=(a)<(b)?(a):(b))
#define abs(p) ((p)>=(0)?(p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332770/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332770/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int min(int a,int b){
if(a < b){
return a;
}
return b;
}
int main(void){
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_332820/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332820/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,fst;
scanf("%d",&N);
scanf("%d",&A);
scanf("%d",&B);
fst=N*A;
if(fst<B){
printf("%d\n",fst);
}
else{
printf("%d\n",B);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332864/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332864/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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);
if(n*a<b) printf("%d",n*a);
else printf("%d",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332914/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332914/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int n,a,b;
scanf("%d %d %d",&n,&a,&b);
if(a*n>b) printf("%d\n",b);
else printf("%d\n",a*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332965/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332965/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 true 1
#define false 0
int main(void)
{
int a=0,b=0,k=0;
int flag=0;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(int i=a;i<=b;i++){
if(i%k==0){
flag=true;
break;
}
}
if(flag==true){
printf("OK");
} else {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333007/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333007/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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);
if (B / K > (A - 1) / K) printf("OK\n");
else printf("NG\n");
fflush(stdout);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,w=0,i;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(i=a;i<=b;i++)
{
if(i%k==0)
{
w=1;
}
}
if(w==1)
{
printf("OK\n");
}
else
{
printf("NG\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333100/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333100/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,mul,count=0;
scanf("%d %d %d",&k,&a,&b);
for(int i=1;i<=b;i++)
{
mul=k*i;
if(mul>=a && mul<=b)
{
printf("OK\n");
count++;break;
}
}
if(count==0)
printf("NG\n");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333144/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333144/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,flag=0;
scanf("%d",&K);
scanf("%d %d",&A,&B);
for(int i=1;K*i<=B;i++){
if(K*i>=A && K*i<=B){printf("OK"); flag=1; break;}
}
if(flag==0) printf("NG");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333188/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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);
if(a%k)
a+(k-a%k)<=b?printf("OK\n"):printf("NG\n");
else
printf("OK\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333230/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333230/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,i;
scanf("%d", &K);
scanf("%d %d",&A,&B);
for(i=K;i<A;i += K){
}
K = i;
if ((A <= K) && (K <= B)){
printf("OK");
}
else{
printf("NG");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333274/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333274/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,comp;
scanf("%d",&K);
scanf("%d %d",&A,&B);
int worst = A/K;
int best = B/K;
while(1){
comp = K*worst;
if(A <= comp && comp <= B){
printf("OK\n");
break;
}else if(comp < A){
worst++;
}else{
printf("NG\n");
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333317/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333317/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, i, mult=0;
scanf("%d", &k);
scanf("%d%d", &a, &b);
for(i=a; b>=i; ++i){
if(i%k==0){
mult = mult + i;
}
}
if(mult>0){
printf("OK");
} else{
printf("NG");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,total=0;
scanf("%d",&a);
scanf("%d %d",&b,&c);
while(total <= c)
{
total += a;
if(total >= b && total <= c)
{
printf("OK");
break;
}
if(total > c)
{
printf("NG");
break;
}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333403/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333403/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d",&k);
scanf("%d%d",&a,&b);
int f=0;
for(int i=a;i<=b;i++){
if(i%k==0){
f=1;
break;
}
}
if(f) printf("OK");
else printf("NG");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333447/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333447/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,i,f=0;
scanf("%d%d%d",&k,&a,&b);
for(i=a;i<=b;i++)
if(i%k==0)
{ f=1;i=b+1;}
if(f==1) printf("OK");
else printf("NG");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333490/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333490/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,a,b;
scanf("%d%d%d",&k,&a,&b);
int i,flag=0;
for(i=a;i<=b;i++){
if(i%k==0)
flag=1;
}
if(flag)
printf("OK");
else
printf("NG");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333533/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333533/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d%d%d",&k,&a,&b);
for(int i = a;i <= b;i++)if(!(i%k)){
puts("OK");
return 0;
}
puts("NG");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333577/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333577/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int findmax(int *a,int s,int n);
void mergsort(int a[],int t[],int size,int n);
void merg(int a[],int t[],int l1,int u1,int l2,int u2);
void copy(int a[],int t[],int n);
long long int min( long long int a,long long int b)
{
if(a<b)
return(a);
else
return(b);
}
long long int ma... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33362/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33362/source.c"
target datalayout = "e-m:e-p270: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_unnamed_... |
#include<stdio.h>
int main(void){
int D,T,S;
scanf("%d%d%d", &D, &T, &S);
if((float)D/T<=S)printf("Yes");
else printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333663/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333663/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
double a;
scanf("%d %d %d",&x,&y,&z);
a=(double)x/z;
if(a<=y)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333713/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333713/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 D, T, S, A;
scanf("%d%d%d",&D,&T,&S);
A = (S*T) - D;
if(A>=0){printf("Yes");}
else{printf("No");}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333757/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333757/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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(D<=T*S)
printf("Yes");
else
printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333843/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333843/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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(d <= t*s){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333887/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333887/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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>S*T)
{
printf("No");
}
else
{
printf("Yes");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333937/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333937/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define rep(i,r,l) for(int i = r; i < l; i++)
#define elif else if
#define ll long long
int nextint(void){int n;scanf("%d",&n);return n;}
void printint(int d){printf("%d\n",d);}
int main(void){
int d = nextint();
int t = nextint();
int s = next... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333980/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333980/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(a,b) ((a)>(b)?(a):(b))
typedef long long int ll;
int main() {
int r,c,k;
scanf("%d %d %d",&r,&c,&k);
if (r>c*k) printf("No\n");
else printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334022/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334022/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, k, p;
int co[1000];
scanf("%d", &n);
for(i = 0; i < n; i++){
scanf("%d%d", &k, &p);
if(k < p) co[i] = k;
else if(k%p != 0) co[i] = k%p;
else if(k%p == 0) co[i] = p;
}
for (i = 0; i < n; i++){
printf("%d\n", co[i]);
}
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334066/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334066/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,x;
scanf("%d",&N);
int K[N];
int P[N];
for(i=0;i<N;i++){
scanf("%d %d",&K[i],&P[i]);
}
for(i=0;i<N;i++){
if(K[i]%P[i]==0)
printf("%d",P[i]);
else if(K[i]<P[i])
printf("%d",K[i]);
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334109/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334109/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int min(int a,int b){if(a<b){return a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334152/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334152/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@factorial = dso_local loca... |
#include <stdio.h>
#include <string.h>
char a[1001],b[29]={'X','Y','Z','A','B','C','D','E','F','G'
,'H','I','J','K','L','M','N'
,'O','P','Q','R','S','T','U'
,'V','W','X','Y','Z'};
int main(){
int i,j,c,d;
scanf("%s",&a);
c=strlen(a);
for(i=0;i<c;i++){
for(j=3;j<29;j++){
if(a[i]==b[j]){
d=j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334196/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334196/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@b = dso_local local_unname... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.