Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
int main(){
int n;
scanf("%d",&n);
int h[n];
for(int a=0;a<n;a++){
scanf("%d",&h[a]);}
int count,count2;
count=0;count2=0;
for(int b=0;b<n-1;b++){
if(h[b]>=h[b+1]){count++;if(b==n-2){if(count>count2){count2=count;}}}
else{if(count>count2){count2=count;}... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329674/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329674/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y,count=0,j=0;
scanf("%d",&i);
int ara[i],ara2[i];
//scanf("%d",&i);
for(int y=0;y<i;y++){
scanf("%d",&ara[y]);
}
for( x=0;x<i-1;x++){
if(ara[x]>=ara[x+1]){
count++;
}
else{
if(count>0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329717/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329717/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n = 0;
int *h;
int candidate = 0;
int x = 0;
scanf("%d", &n);
h = (int *)malloc(sizeof(int) * n);
for(int i = 0; i < n; i++){
scanf("%d", &h[i]);
}
for(int j = 0; j < n-1; j++){
if(h[j] >= h[j+1]){
candidate++;
}
else{
if(x < candidate){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329760/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329760/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) > (b) ? (b) : (a))
#define abs(x) ((x) > 0 ? (x) : -(x))
#define MOD (ll)1000000007 //10^9 + 7
#define endl printf("\n")
typedef long lon... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329803/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329803/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<stdint.h>
#include<inttypes.h>
typedef int32_t i32;
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define ALLOC(size,type) ((type*) calloc ((size), sizeof (type)))
typedef struct arm {
i32 x, y;
} node;
int cmp (const void *a, const... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329847/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329847/source.c"
target datalayout = "e-m:e-p270: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.arm = type { i32, i... |
#include <stdio.h>
#include<math.h>
int main() {
long long n, k, i, mod = 1e9+7, sum=0;
scanf("%lld %lld", &n, &k);
for(i=k; i<=n+1; i++){
sum += i*n - i*i + i + 1;
sum %= mod;
}
printf("%lld", sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329890/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329890/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include<math.h>
int main(void){
int N, K, m=pow(10,9)+7;
long long j, i=0;
scanf("%d%d" , &N, &K);
for(j=K ; j<=N+1 ; j++){
i =i+(j*(N-j+1)%m)%m+1;
i =i%m;
}
printf("%lld" ,i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329933/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329933/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){
// Your code here!
long int n,k;
scanf("%ld %ld", &n,&k);
long int a =0;
for (int i=0;i<n+2-k;i++) {
a+=((n-(k+i-1))*(k+i))+1;
}
printf("%ld",a%1000000007);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_329977/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_329977/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
char a[100],b[100],c[100];
scanf("%s%s%s",a,b,c);
printf("%c%c%c\n",a[0],b[0],c[0]);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330018/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330018/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
char str[101];
for(int i=0; i < 3; i++) {
scanf("%s", str);
printf("%c", str[0]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330061/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330061/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h>
int main()
{
char s1[100],s2[100],s3[100];
scanf("%s %s %s",s1,s2,s3);
printf("%c%c%c",toupper(s1[0]),toupper(s2[0]),toupper(s3[0]));
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330111/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330111/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s,temp;
while(scanf("%c",&s)){
if(s==' '){
scanf("%c",&temp);
break;
}
}
printf("A");
printf("%c",temp);
printf("C");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330155/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330155/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str1[101], str2[101], str3[101];
scanf("%s", str1);
scanf("%s", str2);
scanf("%s", str3);
printf("%c%c%c\n", str1[0], str2[0], str3[0]);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330256/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330256/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[1000008];
int i,j,L1=1,L2=1;
long long a1=0,a2=0;
scanf("%s",s);
for(i=0;s[i]!='^';i++)
;
j=i;
for(i=j-1;i>=0;i--) {
if(s[i]!='=') a1+=(s[i]-48)*L1;
L1++;
}
for(i=j+1;s[i]!='\0';i++) {
if(s[i]!='=') a2+=(s[i]-48)*L2;
L2++;
}
if(a1>a2) printf("left");... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3303/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3303/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
int main()
{
int x,a,b;
int X,A,B,P,Q;
scanf("%d %d %d",&x,&a,&b);
if(x>=1 && x<=1000)
{
X=x;
}
if(a>=1 && a<=1000)
{
A=a;
}
if(b>=1 && b<=1000)
{
B=b;
}
if(A!=B)
{
if(X>A)
{
P=X-A;
}
else
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330357/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330357/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
int main(){
int x,a,b;
scanf("%d%d%d",&x,&a,&b);
if(abs(x-a)<abs(x-b))puts("A");
else puts("B");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330414/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330414/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, disA, disB;
scanf("%d %d %d", &x, &a, &b);
disA = x - a;
if(disA<0)
disA = (-1)*disA;
disB = x - b;
if(disB<0)
disB = (-1)*disB;
if(disA<=disB)
printf("A");
else
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330458/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330458/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MIN 1
#define MAX 1000
int main()
{
int x, a, b;
scanf("%d %d %d", &x, &a, &b);
if ((x >= MIN && x <= MAX) && (a >= MIN && a<= MAX) && (b >= MIN && b <= MAX)) {
if (abs(x - a) < abs(x - b)) {
printf("A\n");
}
if (abs(x - a... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330537/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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 0600 Baumkuchen
// 2017.12.5 bal4u@uu
#include <stdio.h>
#include <stdlib.h>
int a[100002], p[100002];
long long s[100002];
char buf[15], *bp;
int getint()
{
int n = 0;
while (*bp >= '0') n = (n<<3) + (n<<1) + (*bp++ & 0xf);
return n;
}
int main()
{
int n, i, ii, f;
long long sum, l, m, r;
fgets(bp=bu... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330601/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330601/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@bp = dso_local local_unnam... |
#include <stdio.h>
int main(void){
int a,b;
scanf("%d%d",&a,&b);
printf("%d",a+(b/2));
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330645/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330645/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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);
printf("%d\n", (b/2)+a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330702/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330702/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_330746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330746/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, s;
scanf("%d%d", &x, &y);
s = x + y / 2;
printf("%d", s);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330797/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330797/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
int cmp(const void *a , const void *b)
{
return *(int *)a - *(int *)b;
}
double max(double a,double b)
{
if(a<b)
return b;
return a;
}
int min(int a,int b)
{
if(a>b)
return b;
return a;
}
int mod(int a)
{
if(a<0)
return -a;
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33084/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33084/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X, Y;
scanf("%d %d", &X, &Y);
printf("%d\n", X+Y/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330883/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330883/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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
//Ver.20180717
#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){i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_330926/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_330926/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h>
int N, K, temps[5001];
double max = 0;
void solve(int amt)
{
double total = 0;
for(int i = 0; i < amt; i++)
{
total += temps[i];
}
if(total / amt > max)
{
max = total / amt;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33097/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33097/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@max = dso_local local_unname... |
#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_331011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331011/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int a,b;
scanf("%d %d",&a,&b);
printf("%d\n",a+b/2);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331055/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
const int INF=100000;
char str[100],*p,s[60][60];
int d[60][60];
int queue(int H,int W);
typedef struct{
int xx;
int yy;
} coordinate;
int main(void){
int H,W,i,j,distance,count,ans;
fgets(str,sizeof(str),stdin);
p=strtok(str," \n");
H=atoi(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331105/source.c"
target datalayout = "e-m:e-p270: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.coordinate = type {... |
#include<stdio.h>
#include<string.h>
int main(void)
{
char s[101];
char ss[201];
char p[101];
scanf("%s",s);
scanf("%s",p);
strcpy(ss,s);
strcat(ss,s);
if(strstr(ss,p)!=NULL)
puts("Yes");
else
puts("No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331156/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331156/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p[101],s[101];
int i=0,j=0,k=0,l=0,m=0;
int ans=0;
for(i=0; i<101; i++){
scanf("%c",&s[i]);
if(s[i]=='\n')break;
}
for(j=0; j<101; j++){
scanf("%c",&p[j]);
if(p[j]=='\n')break;
}
for(k=0;k<i;k++){
if(s[k]==p[0]){
for(l=0; l<j; l++){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331220/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331220/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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], p[101], s2[202] = "";
char *ret;
scanf("%s", s);
scanf("%s", p);
strcat(s2, s);
strcat(s2, s);
ret = strstr(s2, p);
if (ret == NULL) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331279/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331279/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
int main() {
char s[200];
char p[100];
scanf("%s", s);
scanf("%s", p);
sprintf(s, "%s%s", s, s);
if (strstr(s, p) != NULL) {
printf("Yes\n");
}
else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331329/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331329/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1[100];
char s2[100];
char s3[100];
int len;
int flag=0;
char tmp;
int i;
char *p;
scanf("%s",s1);
strcpy(s3,s1);
len=strlen(s3);
scanf("%s",s2);
while(1){ // ????????????????????°??¶????????¢
tmp=s3[0];
for(i=1;i<len;i++){
s3[i-1]=s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331387/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331387/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 moji1[1000], moji2[1000], moji3[1000];
scanf("%s%s", moji1, moji2);
strcpy(moji3, moji1);
strcat(moji1, moji3);
if(strstr(moji1, moji2) != NULL) printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331437/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331437/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p[100],s[100],t[100]={0};
int i,k,result=0,ls,lp;
scanf("%s", p);
scanf("%s", s);
lp=strlen(p);
ls=strlen(s);
for(i=0;i<lp;i++){
for(k=0;k<ls;k++){
t[k]=p[(i+k)%lp];
}
if(strcmp(s,t)==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331488/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331488/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, const char * argv[]) {
char s[101];
char p[101];
char t;
int a,b;
int i,j;
scanf("%s",s);
scanf("%s",p);
a=(int)strlen(s);
b=(int)strlen(p);
for(i=0;i<a-1;i++){
if(strstr(s,p)!=NULL){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331530/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331530/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
// 循環文字列sと文字列pが与えられ、sの連続した文字でpが作れるかを判定
int main()
{
char achInputS[100], achInputP[100];
int iLengthS, iLengthP;
int iCnt1, iCnt2;
scanf("%s", achInputS);
scanf("%s", achInputP);
iLengthS = strlen(achInputS);
iLengthP = strlen(achInputP);
// achInputSはループするように添え字を剰余にして... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331589/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331589/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str1[201], str2[101], str3[101];
scanf("%s%s",str1,str3);
strcpy(str2, str1);
strcat(str1, str2);
if ( strstr(str1, str3) == NULL ) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331631/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331631/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
char s[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_331675/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331675/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str1[200],str2[100];
scanf("%s %s",str1,str2);
sprintf(str1, "%s%s", str1, str1);
if (strstr(str1, str2)==NULL)printf("No\n");
else printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331718/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331718/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sn=0,pn=0,t;
char s[101],p[101];
scanf("%s",s);
scanf("%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;
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331761/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331761/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 moving_north(int *top, int *bottom, int *front, int *back);
void moving_south(int *top, int *bottom, int *front, int *back);
void moving_east(int *top, int *bottom, int *right_side, int *left_side);
void moving_west(int *top, int *bottom, int *right_side, int *left_side);
//ダイスの構造... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331811/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331811/source.c"
target datalayout = "e-m:e-p270: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>
struct DICE {
int d1,d2,d3,d4,d5,d6;
};
void MoveDice(struct DICE *p,char c);
int main(){
struct DICE p;char compass;struct DICE *pp;
scanf("%d %d %d %d %d %d\n",&p.d1,&p.d2,&p.d3,&p.d4,&p.d5,&p.d6);
scanf("%c", &compass);
while(compass!='\n'){
MoveDice(&p,compass);
scanf("%c", &compass);
}
printf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331855/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331855/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
%struct.DICE = type { i32, ... |
#include <stdio.h>
int main(void){
int a[10],c,i;
char b[101];
for(i=1;i<=6;i++)
scanf("%d",&a[i]);
scanf("%s",b);
for(i=0;b[i] !='\0';i++){
if(b[i]=='N'){
c = a[1];
a[1] = a[2];
a[2] = a[6];
a[6] = a[5];
a[5] = c;}
if(b[i]=='S'){
c = a[1];
a[1] = a[5];
a[5] = a[6];
a[6] = a[2];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331899/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331899/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
typedef struct{
int data;
}dice;
int main(void)
{
int i;
int da[5];
char move[101];
int length;
dice temp_a;
dice temp_b;
for(i=0; i<6; i++){
scanf("%d",&da[i]); /*?????¢?????°???*/
}
dice one[6] = {
{da[0]},
{da[1]},
{da[2]},
{da[3]},
{da[4]},
{da[5]},
};
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331941/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331941/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
// ITP1_11_A: Dice I
// 2018.3.9
#include <stdio.h>
#include <string.h>
struct DICE{
int top;
int south;
int east;
int west;
int north;
int bottom;
};
void Roll_to_East(struct DICE *p)
{
int temp[4];
temp[0] = p->top;
temp[1] = p->east;
temp[2] = p->bottom;
temp[3] = p->west;
p->top = te... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_331985/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_331985/source.c"
target datalayout = "e-m:e-p270: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>
struct _six {
int f1;
int f2;
int f3;
int f4;
int f5;
int f6;
} six;
char cmd[105];
int main() {
#ifdef TEST
freopen("input", "r", stdin);
#endif
scanf("%d", &six.f1);
scanf("%d", &six.f2);
scanf("%d", &six.f3);
scanf("%d", &six.f4);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332027/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332027/source.c"
target datalayout = "e-m:e-p270: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._six = type { i32, ... |
#include <stdio.h>
struct dice {
int nums[7]; // ラベルに対応する数値
};
int main()
{
struct dice dice;
char order[101];
scanf("%d %d %d %d %d %d\n", &dice.nums[1], &dice.nums[2], &dice.nums[3], &dice.nums[4], &dice.nums[5], &dice.nums[6]);
scanf("%s\n", order);
for (int i = 0; order[i] != '\0'; ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332070/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332070/source.c"
target datalayout = "e-m:e-p270: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 { [7 x ... |
#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];
a[5] = a[6];
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332120/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332120/source.c"
target datalayout = "e-m:e-p270: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<string.h>
int key[7];
void N(){
int change = key[1];
key[1] = key[2];
key[2] = key[6];
key[6] = key[5];
key[5] = change;
}
void S(){
int change = key[1];
key[1] = key[5];
key[5] = key[6];
key[6] = key[2];
key[2] = change;
}
void W(){
int change = key[1];
key[1] = key[3];
key[... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332164/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@key = dso_local global [7 ... |
#include <stdio.h>
int main(void) {
int start, count, i, end, n, nums[51], sec = 0;
nums[50] = 0;
while(scanf("%d",&n), n != 0 ) {
for(i = 0; i < n; i++ ) {
scanf("%d",&nums[i]);
}
for(i = 0; i < n; i++ ) {
start = nums[i];
count = 0;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332207/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332207/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count(const char *s, const char c) {
int cnt = 0;
for (; *s != '\0'; s++) {
if (*s == c) {
cnt++;
}
}
return cnt;
}
void rm(char *s, const char c) {
int i;
for (i = 0; s[i] != '\0'; i++) {
if (s[i] == c)
break;
}
for (; s[i] != '\0'; i++) {
s[i] = s[i +... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332272/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332272/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int descending_compare(const void *a, const void *b){
if (*(long long*)a > *(long long*)b){
return -1;
}else if (*(long long*)a == *(long long*)b){
return 0;
}else{
return 1;
}
}
int ascending_compare(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332322/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332322/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@mod = dso_local local_unna... |
#include <stdio.h>
#include <string.h>
int main(void){
char s[101];
scanf("%s",s);
for(int i=0;i<strlen(s);i++){
if((i%2==0 && s[i]=='L') || (i%2!=0 && s[i]=='R')){
printf("No");
return 0;
}
}
printf("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332366/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332366/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <string.h>
int main(){
char S[200];
scanf("%s", S);
int len=strlen(S);
for (int i = 0; i <len ; ++i) {
if(i%2==0){
if(S[i]=='L'){
printf("No");
return 0;
}
}else{
if(S[i]=='R'){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332423/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332423/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
char s[100];
int i=0,j=0;
scanf("%s",s);
while(1){
if(s[i]=='\0'){
printf("Yes\n");
break;
}
if(s[i]=='U'||s[i]=='D'){
j++;
}
if(i%2==0){
if(s[i]=='R'){
j++;
}
}
if(i%2==1){
if(s[i]=='L'){
j++;
}
}
i++;
if(i!=j){
printf("No\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332474/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332474/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100];
scanf("%s", a);
int l=strlen(a);
int i, c=0,c1=0,s;
for(i=0;i<l;i++) {
if(i%2==0)
{if(a[i]=='R'||a[i]=='U'||a[i]=='D')
c++;}
else if(i%2==1){
if(a[i]=='L'||a[i]=='U'||a[i]=='D')
c1++;}
}
s=l/2;
if((l%2==1&&c==(s+... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332524/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332524/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
char s[105];
scanf("%s", s);
for(i=0; s[i]!='\0'; i+=2)
{
if(s[i]=='L')
{
printf("No\n");
return 0;
}
}
for(i=1; s[i]!='\0'; i+=2)
{
if(s[i]=='R')
{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332568/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332568/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 tmp[101]={'\0'};
scanf("%s",tmp);
for(int i=0;tmp[i];i++){
if(i%2==0){
if(tmp[i]=='L'){
puts("No");
return 0;
}
}
else{
if(tmp[i]=='R'){
puts("No");
return 0;
}
}
}
puts("Yes");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332618/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332618/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 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 INF 1000000000
typedef struct LIST{
int to,cost;
struct LIST *next;
}Edge;
typedef struct{
int num,dist;
}Pos;
Edge** init(int v){
Edge **edge... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332676/source.c"
target datalayout = "e-m:e-p270: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.LIST = type { i32, ... |
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main(void) {
int n, a, b,plana,planb;
scanf("%d %d %d", &n, &a, &b);
plana = n * a;
planb = b;
if (plana <= planb) {
printf("%d", plana);
}
else {
printf("%d", planb);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,count,n,v,sum;
scanf("%d %d",&n,&v);
if(v>=n-1)
{
count=n-1;
}
else
{
sum=0;
for(i=2;i<=n-v;i++)
{
sum=sum+i;
}
count=sum+v;
}
printf("%d\n",count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33277/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33277/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void){
int A,B,C,X,cou=0,v[3];
char S[10];
scanf("%d %d %d",&A,&B,&C);
if(A*B>=C){
printf("%d",C);
}else{
printf("%d",A*B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332812/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(A*N<B){
printf("%d\n",A*N);
}
else{
printf("%d\n",B);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,c,p,mul;
scanf("%d %d %d",&h,&c,&p);
mul=h*c;
if(mul<p) printf("%d\n",mul);
else printf("%d\n",p);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332906/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332906/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
typedef long long (ll);
#define A 1005
#define M 1000000007
ll z[A],y[A],xy[A],nx[A],x[A][A],zz[26],xz[26];
char s[A][A],t[A][A],u[A];
ll rll()
{
ll a;
scanf("%lli",&a);
return a;
}
double rd()
{
double a;
scanf("%lf",&a);
return a;
}
void p... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33295/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33295/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,j;
int n,a,b;
scanf("%d %d %d",&n,&a,&b);
if(n*a > b){
printf("%d\n",b);
}else{
printf("%d\n",n*a);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_332993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_332993/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int a,b;
scanf("%d",&k);
scanf("%d %d",&a,&b);
for(int i=a;i<=b;i++){
if(i%k==0){
printf("OK\n");
return 0;
}
else{
continue;
}
}
printf("NG\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333042/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333042/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int k,a,b;
scanf("%d %d %d",&k,&a,&b);
int i;
int res = 0;
for(i = 1;i < 1000;i++){
if(k*i >= a && k*i <= b)
res = 1;
}
if(k*0 >= a && k*0 <=b)
res =1;
if(res == 1)
printf("OK");
else
printf("NG");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333086/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333086/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 K, A, B, yes = 0;
scanf("%d\n%d %d", &K, &A, &B);
for(; A <= B; A++) {
if (A % K == 0) {
yes++;
break;
}
}
printf(yes ? "OK\n" : "NG\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333129/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333129/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d %d %d", &k, &a, &b);
for(int i = a; i <= b; i++) {
if(i % k == 0) {
puts("OK");
return 0;
}
}
puts("NG");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333172/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333172/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
scanf("%d",&k);
scanf("%d %d",&a,&b);
if((b/k)*k>=a) {
printf("OK\n");
}
else printf("NG\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333215/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333215/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int k, a, b;
scanf("%d", &k);
scanf("%d%d", &a, &b);
int largest = (b / k) * k;
if (a <= largest) {
puts("OK");
} else {
puts("NG");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333259/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333259/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int a, b;
scanf("%d",&k);
scanf("%d%d",&a,&b);
int sum=0;
for(int i=a; i<=b; i++)
{
if(i%k==0)
{
sum++;
printf("OK\n");
break;
}
}
if(sum==0)
printf("NG\n");
return 0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
int i;
int flag = 0;
scanf("%d%d%d", &k, &a, &b);
for (i = a; i <= b; i++) {
if (i % k == 0) {
flag = 1;
break;
}
}
if (flag == 1) {
printf("OK\n");
} else {
printf("NG\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333367/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333367/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//AtCoder用
//プリプロセッサ系
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
#include <stdbool.h>
#define MOD 1000000007
#define INFTY 2147483646
#define DEBUG 1
#define END printf("\n");return 0;
#define QS09(how_data,data) qsort(data,how_data,sizeof(long),(int (*)(const void ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333417/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333417/source.c"
target datalayout = "e-m:e-p270: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._GD = type { i64, i... |
#include<stdio.h>
int main()
{
int k,a,b,s;
scanf("%d %d %d",&k,&a,&b);
if(a%k==0) printf("OK\n");
else {
s=a/k +1;
if((k*s)<=b)
{
printf("OK\n");
}
else printf("NG\n");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333460/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333460/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)
{
unsigned long int a, b, c;
int i;
scanf("%ld%ld%ld", &a, &b, &c);
if ((0 == b % a) || (0 == c % a) || (c / a != b / a)) {
printf("OK");
}
else {
printf("NG");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333503/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333503/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,count;
count=0;
scanf("%d",&K);
scanf("%d %d",&A,&B);
for(i=A;i<B+1;i++){
if(i%K==0) count=1;
}
if(count==1) printf("OK");
else printf("NG");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333547/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333547/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int k,a,b,i;
scanf("%d%d%d",&k,&a,&b);
for(i=a;i<=b;i++){
if(i%k==0){
printf("OK\n");
return 0;
}
}
printf("NG\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333590/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333590/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
typedef enum{
win,
lose
}res;
int GCD(int a, int b){
if(b == 0){
return a;
}
else{
return GCD(b, a % b);
}
}
res judge(int *A, int N){
int i, evennum = 0, onenum = 0, odd, gcd = A[0];
for(i = 0; i < N; i++){
gcd = GCD(A[i], gcd);
}
for(i = 0; i < N; i++){
A[i]... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333633/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333633/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",&D,&T,&S);
if(S*T>=D) printf("Yes");
if(S*T<D) printf("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333677/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333677/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
int main()
{
int nn;
int ii;
scanf("%d",&nn);
for (ii=1;ii<=nn;ii++)
{
int i,n;
scanf("%d",&n);
int ans=0;
int a[100005],num[200005];
memset(num,0,sizeof(num));
for (i=1;i<=n;i++)
{
scanf("%d",&a[i]);
num[a[i]]++;
}
for (i=1;i<=n;i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33372/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33372/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 d,t,s;
scanf("%d %d %d", &d,&t,&s);
double time = (double)d / s;
if(time > t){
printf("No");
}
else{
printf("Yes");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333763/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333763/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 away,mintue,speed;
scanf("%d %d %d",&away,&mintue,&speed);
if(mintue*speed>=away)
printf("Yes");
else
printf("No");
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333806/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333806/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void) {
int t;
scanf("%d",&t);
while(t--)
{
char s[500000];
scanf("%s",s);
char A='?';
int sum=0;
if(s[1]==s[0])
{
s[1]=A;
}
for(int i=2;s[i]!='\0';i++)
{
if(s[i]==s[i-1])
{
s[i]=A;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33385/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33385/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
int main(void){
int i, j, T, N, cnt, A[50], res[100];
scanf("%d", &T);
while(T--){
scanf("%d", &N);
for(i=0; i<N; ++i){
scanf("%d", A+i);
}
memset(res, 0, sizeof(res));
for(i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33390/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33390/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 D, T, S;
if (scanf("%d%d%d", &D, &T, &S) != 3) return 1;
puts(S * T >= D ? "Yes" : "No");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333943/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333943/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
int main(void) {
int d, t, s;
scanf("%d %d %d", &d, &t, &s);
float res = (float) d / (float) s;
if ((float) t < res) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_333994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_333994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void) {
int n, k, p,i;
scanf("%d",&n);
for(i=0;i<n;i++) {
scanf("%d%d",&k,&p);
if(k%p) printf("%d\n",k%p);
else printf("%d\n",p);
}
return(0);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334036/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int a, b, c, d, e;
scanf("%d", &a);
for (e = 1; e <= a; e++)
{
scanf("%d %d", &b, &c);
d = b%c;
if (d == 0)
printf("%d\n", c);
else
printf("%d\n", d);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main() {
int t, n;
scanf("%d", &t);
for (int i = 0; i < t; i++) {
scanf("%d", &n);
int arr[n];
for (int j = 0; j < n; j++) {
scanf("%d", &arr[j]);
}
int res = 0;
arr[n-1]++;
res++;
for (int j = n-2; j >= 0; j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33413/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33413/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i;
char m[1001];
scanf("%s",m);
for(i=0;i<1000;i++){
if(m[i]=='\0')break;
m[i]=m[i]-3;
if(m[i]<65){
m[i]=m[i]+26;
}
}
printf("%s\n",m);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334173/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334173/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[26]={'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'};
char m[26]={'D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','A','B','C'};
char bm[1024],bs[1024];
int i,j... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334238/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@__const.main.s = private u... |
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
scanf("%d",&n);
int a[n];
for(int i=0;i<n;i++)
scanf("%d",&a[i]);
int h[(2*n)+5];
for(int i=0;i<(2*n)+5;i++) h[i]=0;
int count=0;
h[a[0]]=1;
for(int i=1;i<n;i++)
{
if(h[a[i]])
{
a[i]++;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33431/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,j,k;
int min,minp;
int color_id[30][6];
int color_buf[2][6];
char color_name[12];
int count;
while(1) {
scanf("%d",&n);
if(n==0)break;
for(i=0;i<n;i++) {
for(j=0;j<6;j++) {
scanf("%s",color_name);
switch(color_name[0]) {
case 'R':
color_buf... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334360/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334360/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define LIMIT 100010
//union-find
int uniroot[LIMIT+10],unicnt[LIMIT+10];
void ufinit(int n){for(int i=0;i<n;i++){uniroot[i]=i;}}//unicnt[i]=1;}}
int root(int x){return uniroot[x]!=x?uniroot[x]=root... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334410/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@uniroot = dso_local local_... |
#include <stdio.h>
int main() {
int n, a, b;
int total = 0;
scanf("%d %d %d", &n, &a, &b);
for (int i=1; i<=n; i++){
int temp = i;
int sum = 0;
while (temp != 0){
sum += (temp % 10);
temp /= 10;
}
if (sum >= a && sum <= b){
total += i;
}
}
printf ("%d", total);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_334454/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_334454/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.