Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(){ int x; scanf("%d", &x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108666/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108716/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108716/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int n; scanf("%d",&n); int res=0; while(n--){ int en; scanf("%d",&en); res|=en; } if(res){ printf("HARD\n"); } else{ printf("EASY\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10876/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10876/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d",&n); printf("%d\n",n*n*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108817/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108817/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0; scanf("%d",&i); printf("%d\n",i*i*i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108860/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108903/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108903/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d" , &x); x = x * x * x; printf("%d\n" , x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108954/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108954/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a; scanf("%d", &a); printf("%d\n", a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_108998/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_108998/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d,m,i; scanf("%d %d",&n,&d); scanf("%d",&m); int a[m][2]; int l1,l2,l3,l4; for(i=0;i<m;i++) scanf("%d %d",&a[i][0],&a[i][1]); for(i=0;i<m;i++) { l1=a[i][0]+d; l2=-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10904/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d",&x); x = x*x*x; printf("%d\n",x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109083/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109083/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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: 2020/07/27 * Author: 113896 */ #include <stdio.h> int main() { int x; scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109133/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109177/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdbool.h> bool in_cornfield(int x, int y, int n, int d); int main(){ int n, d; int m; int x, y; scanf("%d%d", &n, &d); scanf("%d", &m); while(m--){ scanf("%d%d", &x, &y); printf("%s\n", in_cornfield(x, y, n, d) ? "YES" : "NO"); } return 0; } bool in_cornfield(int x, int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10922/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10922/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109263/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109263/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109306/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109306/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0; scanf("%d",&i); int m[i]; int check=0; for (int j=0;j<i;j++) { scanf("%d", &m[i]); if (m[i]==1) { check=1; } } if (check==1) printf("Hard"); else printf("Easy"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_10935/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_10935/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; scanf("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109393/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109393/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109443/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109443/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ss(int); /*3乗を求める関数*/ int main(void) { int x; int t; scanf("%d",&x); t=ss(x); printf("%d\n",t); } int ss(int a){ int y=a*a*a; return y; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109494/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109494/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n", x * x * x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109537/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int result; result=0; scanf("%d",&x); if(1<=x&&x<=100){ result=x*x*x; } printf("%d\n",result); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109580/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109580/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0; scanf("%d",&x); printf("%d\n",x*x*x); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109638/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109638/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ // Youprir code here! int n; scanf("%d",&n); printf("%d\n",n*n*n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109681/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109681/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &x); printf("%d\n", x * x * x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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> int main() { int x; scanf("%d", &x); printf("%d\n", x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109775/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109775/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d" , &x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109818/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109818/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a; scanf("%d",&a); printf("%d\n",a*a*a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109861/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109861/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf ("%d",&x); printf("%d\n",x*x*x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109904/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&x); y = x*x*x; printf("%d\n", y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109955/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109955/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&i); i=i*i*i; printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_109999/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_109999/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[27],b[27],c[1010]; while(scanf("%s\n%s\n%s",a,b,c)==3) { unsigned int d[26],i; for(i=0;i<26;i++)d[a[i]-'a']=i; for(i=0;c[i]!='\0';i++) { if(c[i]>='0' && c[i]<='9') { printf("%c",c[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int num; scanf("%d", &num); printf("%d\n", num*num*num); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110083/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110083/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cube(int x) { return (x*x*x); } int main() { int x; scanf("%d",&x); printf("%d\n",cube(x)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110126/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100],b[100]; int i,j,k,n,d=1; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } for(i=0;i<(n-1);i++) { if(a[i+1]>a[i]) { b[i]=1; } else if(a[i+1]==a[i]) { b[i]=2; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11017/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11017/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<string.h> #include<stdbool.h> #include<math.h> #define MAX 2001 typedef long long ll; ll N, A[MAX]; ll hash[MAX]; ll DP[MAX][MAX]; ll max(ll x, ll y) { if (x > y) return x; else return y; } void swap(ll * a, ll * b) { ll buf = *a; *a = *b; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110227/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110227/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @N = dso_local global i64 0...
#include <stdio.h> int main(void){ int N,A[10],i,odd=0,even=0,total=1,kisu=1; scanf("%d",&N); for(i=0;i<N;i++){ scanf("%d",&A[i]); if(A[i]%2==0){ even++; kisu=kisu*2; }else odd++; total=total*3; } printf("%d\n",total-kisu); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110270/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110270/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, X, ans, a = 0, b = 0; scanf("%d %d %d", &A, &B, &X); if ( X % 500 != 0 ) X += 500 - X%500; if ( A < B ) { a = X/1000 + ((X%1000>0)?1:0); } else if ( A > 2*B ){ b = X/500; } else { a = X/1000; X %= 1000; b = X/500; } printf("%d\n", A*a + B*b);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110313/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110313/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i; double positions[1001][2], x, y, rad; positions[1][0] = 1.0; positions[1][1] = 0.0; for (i = 2; i < 1001; i++) { x = positions[i-1][0]; y = positions[i-1][1]; rad = atan2(y, x) + M_PI_2; positions[i][0] = x + cos(rad); positions[i][1] = y + si...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110386/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110386/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(){ int i,flag[26]={},j,flag1=0,k; char s[26],ss[26]; scanf("%s",s); for(i=0;i<strlen(s);i++){ flag[s[i]-'a']=1; } if(strlen(s)!=26){ for(i=0;i<26;i++){ if(!flag[i]){ printf("%s%c\n",s,i+'a'); break; } } } else{ fo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110436/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #define REP(i, a, b) for (i=(a); i<(b); ++i) #define rep(i, n) REP(i, 0, n) int main(void) { int i, j, n; int a[100][100], b[100][100]; while (scanf("%d", &n), n) { memset(b, 0, sizeof(b)); rep(i, n) rep(j, n) scanf("%d", &a[i][j]); rep(i, n) { int m = (1 << 30); re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110487/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110487/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <limits.h> #include <stdbool.h> #define rep(i, n) for(int i=0; i<(n); ++i) #define max 200001 //qsort(str, n, sizeof(int), up_comp); int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;} int down_comp(const void *a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110537/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a<=c && c<=b) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110588/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110588/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a, &b, &c); if(c>=a && c<=b) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110638/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110638/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a<=c&&c<=b) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110681/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110681/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); if(c>=a&&c<=b) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110724/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110724/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); puts(a <= c && c <= b ? "Yes" : "No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110768/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110768/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int A, B, C; scanf("%d", &A); scanf("%d", &B); scanf("%d", &C); if (C >= A && C <= B) puts("Yes"); else puts("No"); //else printf("%d\n", A + B); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110810/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110810/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a, b, c; scanf("%d %d %d", & a, &b, &c); if(c>=a&&c<=b)puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110854/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110854/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int x,y,z; scanf("%d", &x); scanf("%d", &y); scanf("%d", &z); if (z >=x&&z <= y) { printf("Yes\n"); } else { puts("No"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110904/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110904/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmpfunc(const void *a, const void *b){ return *(int*)a - *(int*)b; } int cmpstr(const void* a, const void* b) { const char* aa = (const char*)a; const char* bb = (const char*)b; return strcmp(aa, bb); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110948/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) char a[10][5]={ {}, {'.',',','!','?',' '}, {'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 c[10]={0,5,3,3,3,3,3,4,3,4}; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_110991/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_110991/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @a = dso_local local_unname...
#include <stdio.h> #include <string.h> int main( void ) { int n, sum; char ch[ 9 ][ 6 ] = { ".,!? ", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz" }, key, tmp; for ( scanf( "%d ", &n ); n--; putchar( '\n' ) ) while ( ( key = getchar() ) != '\n' ) { if ( key == '0' ) continue; for ( sum = 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111048/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111048/source.c" target datalayout = "e-m:e-p270: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.ch = private ...
#include<stdio.h> #include<stdbool.h> #include<string.h> #include<math.h> #define rep(i,n) for(int i=0; i <(n); i++) int main(){ int a,b,c,k; scanf("%d%d%d",&a,&b,&c); scanf("%d",&k); int total=0; total = a+b+c; int max=a; if(a<b){ max=b; }else if(a<c){ max=c; } if(b<c){ max=c; } tot...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111091/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111091/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c, ans; double k,l; scanf("%d%d%d%lf",&a,&b,&c,&k); l = pow((double)2,k); if (a >= b && a >= c) ans = a*l + b + c; else if(b >= a && b >= c) ans = a + b*l + c; else ans = a + b + c*l; printf("%d",ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3]; int i, j; for(i = 0; i < 3; i++){ scanf("%d", &a[i]); } int K; scanf("%d", &K); int temp = 0; for(i = 0; i < 2; i++){ for(j = 1; j < 3; j++){ if(a[i] > a[j]){ temp = a[i]; a[i] = a[j]; a[j] = temp; } } } int count = 0; while(cou...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111185/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111185/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int A, B, C, K, i; scanf("%d %d %d", &A, &B, &C); scanf("%d",&K); int max=A; if(max<B) max=B; if(max<C) max=C; int sum=A+B+C; for(i=0;i<K;i++){ sum+=max; max*=2; } printf("%d\n",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111228/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 Beginner Contest 096 B - Maximum Sum 結果: */ //#include<stdio.h> //#include<string.h> //#include<math.h> //#include<stdlib.h> //#define DEBUG1 //#define DEBUG2 //#define DEBUGF // //#ifdef DEBUG1 //#ifdef DEBUG2 //#ifdef DEBUGF //#endif //#define int long long #include<stdio.h> #include<math.h> #include<s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a,b,c,k,i,t; scanf("%d %d %d %d",&a,&b,&c,&k); if(a<b) { t=b;b=a;a=t; } if(a<c) { t=c;c=a;a=t; } for(i=0;i<k;i++) { a=2*a; } printf("%d\n",a+b+c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111321/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,m,a,b,error,mex; error = -1; scanf("%d",&n); scanf("%d",&m); mex = m; for(i=0;i<n;i++) { scanf("%d %d",&a,&b); m += (a-b); if(m < 0) error = 0; if(mex < m) mex = m; } error != -1?printf("0\n"):printf("%d\n",mex); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111365/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 acs(const void *a, const void *b) { return *(int*)a - *(int*)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int*)b - *(int*)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char*)a -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111408/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define N 10 #define M 200 void minCost(int w[][N], int m[][N]){ int i, j, k, D; int pre[N][N]; for (i = 0; i < N; i++){ for (j = 0; j < N; j++){ m[i][j] = w[i][j]; pre[i][j] = i; } } for (k = 0; k < N; k++){ for (i = 0; i < N; i++){ for (j = 0; j < N; j++){ D = m[i][k] +m[k...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111451/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,J,M,j,m,a,b,c,e,f; scanf("%d %d %d %d %d",&d,&J,&M,&j,&m); a=J/j; b=J%j; if(b!=0){ a=a+1; } c=M/m; e=M%m; if(e!=0){ c=c+1; } if(a<=c){ f=d-c; }else{ f=d-a; } printf("%d\n",f); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111495/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111495/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c, d, l, n, x, z; scanf("%d %d %d %d %d", &l, &a, &b, &c, &d); n = ceil((double)a / (double)c); x = ceil((double)b / (double)d); if(n >= x) { z = l - n; }else{ z = l - x; } printf("%d\n", z); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111538/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111538/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m; int data[10]; for(i=1;i<=5;i++){ scanf("%d",&data[i-1]); } j=data[1]/data[3]; if(data[1]%data[3]!=0){ j++; } m=data[2]/data[4]; if(data[2]%data[4]!=0){ m++; } if(j>=m){ printf("%d\n",data[0]-j); }else{ printf("%d\n",data[0]-m); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111581/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111581/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j; scanf("%d%d%d%d%d",&a,&b,&c,&d,&e); for(i=0;;i++){ if(b<1&&c<1){ printf("%d\n",a); break; } a--; b=b-d; c=c-e; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111631/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111631/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; while(scanf("%d",&x) != EOF){ int count=0; for(int i= 0; i<=9; i++){ for(int j = 0; j<= 9; j++){ for(int k = 0; k<=9; k++){ for(int l = 0; l<=9; l++){ if(i+j+k+l==x){ count++; } } } } } printf("%d\n",count); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i=0,j,n,trues[100]={0}; while(scanf("%d",&n)!=EOF) { for(a=0;a<10;a++) for(b=0;b<10;b++) for(c=0;c<10;c++) for(d=0;d<10;d++) if(n==a+b+c+d) trues[i]++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111718/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111718/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int i, n, a, b, c, d; while (scanf("%d", &n) != EOF) { i = 0; for (a = 0; a<10; a++) for (b = 0; b<10; b++) for (c = 0; c<10; c++) for (d = 0; d<10; d++) if (a + b + c + d == n)i++; printf("%d\n", i); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111769/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111769/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int r; int i,t,s,k; while(scanf("%d", &n)!=EOF){ r = 0; for(i = 0;i <= 9 && i<=n;i++){ for(t = 0;t <= 9 && i+t<=n;t++){ for(s = 0;s <=9 && i+t+s<=n;s++){ for(k = 0;k <=9 && i+t+s+k<=n;k++){ if(i+t+s+k==n)r++; } } } } printf("%d\n", r); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111811/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111811/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b,c,n,counter=0; while (scanf("%d",&n) !=EOF) { for (a=0; a<=9; a++) for (b=0; b<=9; b++) for (c=0; c<=9; c++) if (0<=n-a-b-c && n-a-b-c<=9) counter++; printf("%d\n"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111855/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111855/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ; while( scanf( "%d" ,&N ) != EOF ) { long cnt[ 4 + 1 ][ 50 + 1 ] = { 1 } ; int i ,j ,k ; for( i = 1 ; i <= 4 ; ++i ) { for( j = 0 ; j <= N ; ++j ) { if( cnt[ i - 1 ][ j ] > 0 ) { for( k = 0 ; k <= 9 ; ++k ) { if( j + k < 50 + 1 ) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111905/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, l; int input; int count; while (scanf("%d", &input) != EOF){ count = 0; if (input < 37){ for (i = 0; i <= 9; i++){ for (j = 0; j <= 9; j++){ for (k = 0; k <= 9; k++){ for (l = 0; l <= 9; l++){ if (input == i + j + k + l){ count...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_111970/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_111970/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 VAR_MAX 9 int main(void){ int a, b, c, N, count=0; while(scanf("%d",&N)==1){ count=0; for(a=0;a<=VAR_MAX;a++){ for(b=0;b<=VAR_MAX;b++){ for(c=0;c<=VAR_MAX;c++) if(0<=N-a-b-c && N-a-b-c<=VAR_MAX) count++; } } printf("%d\n",count); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112034/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112034/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, k, l, cnt, n; while(scanf("%d",&n)!=EOF) { cnt = 0; for(i = 0; i <= 9; i++) for(j = 0; j <= 9; j++) for(k = 0; k <= 9; k++) for(l = 0; l <= 9; l++) if(i + j + k + l == n) cnt++; printf("%d\n", cnt); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112078/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112078/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 solve(int answer) { int a, ab, abc, abcd; int cnt = 0; for (a = 0; a < 10; a++) { if (answer < a) break; for (ab = a; ab < a + 10; ab++) { if (answer < ab) break; for (abc = ab; abc < ab + 10; abc++) { if (answer < abc) break; for (abcd = abc; abcd < abc + 10; abc...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112128/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112128/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int a,b,c,d,n,count; while(scanf("%d",&n)!=EOF){ count = 0; for(a=0; a<10; a++){ for(b=0; b<10; b++){ for(c=0; c<10; c++){ for(d=0; d<10; d++){ if((a+b+c+d)==n) count ++; } } } } printf("%d\n",count); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112179/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112179/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[50]={0},m,i,j,k,l,c=0; while(scanf("%d",&m)!=-1){ for(i=0;i<10;i++){ for(j=0;j<10;j++){ for(k=0;k<10;k++){ for(l=0;l<10;l++){ if (i+j+k+l==m)n[c]++; } } } } c++; } for(i=0;i<c;i++)printf("%d\n",n[i]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112221/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, cnt; while ( scanf("%d", &n) != EOF ) { cnt = 0; for (int a=0; a<10; a++) { for (int b=0; b<10; b++) { for (int c=0; c<10; c++) { for (int d=0; d<10; d++) { if ( a + b + c + d == n ) c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112272/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112272/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define PEOPLE 100001 //最大出場者数 int a[PEOPLE]; int **b; //各人の勝った相手一覧 int num; //出場者数 int d[PEOPLE]; //各人の勝数 int count[PEOPLE]; /* void mergesort(int *array, int left, int right) { if(left+1<right){} int mid = (left+rught) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112315/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112315/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @d = dso_local local_unname...
#include <stdio.h> int main(void){ int n; scanf("%d", &n); printf("%d\n", (n + 1) / 2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112359/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112359/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int N; scanf("%d",&N); if(N%2==0){ printf("%d\n",N/2); }else{ N=N+1; printf("%d\n",N/2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112401/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112401/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); printf("%d",(a+1)/2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112445/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112445/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int n; scanf("%d", &n); if(n % 2 == 0){ printf("%d\n", n/2); } else printf("%d\n", n/2 + 1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112489/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n; scanf("%d",&n); N=n/2; if(n%2==1) N++; printf("%d\n",N); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112531/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112531/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p; scanf("%d", &n); if (n%2 == 0){ p = (n/2); } else if(n%2!=0){ p = ((n+1)/2); } printf("%d\n", p); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112575/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112575/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <iostream> //#include <vector> //#include <string.h> #pragma warning (push) #pragma warning (disable : 4996) #define mod 1000000007; //using namespace std; int main() { int N; scanf("%d", &N); char ret[3]; if (N % 2 == 1) { sprintf(ret, "%d", (int)(N / 2 +...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112625/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112625/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int N; scanf("%d", &N); if(N%2==0){ printf("%d\n", N/2); }else{ printf("%d\n", N/2+1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112669/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112669/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pege,two,sum; scanf("%d",&pege); if(pege%2==0){ two=pege/2; } else{ two=pege/2+1; } printf("%d\n",two); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112711/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112711/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a; scanf("%d", &a); printf("%d\n", (a & 1) ? a / 2 + 1 : a / 2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112755/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112755/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int N; scanf("%d",&N); if(N%2 == 0){ printf("%d\n",N/2); } else { printf("%d\n",N/2 + 1); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112799/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112799/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 sum, i; char x[1000]; while(scanf("%s", x), x[0] != '0'){ sum = i = 0; while(x[i]) sum += x[i++] - '0'; printf("%d\n", sum); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112841/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112841/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void solve() { int n; scanf("%d",&n); int *arr = (int*)(malloc(sizeof(int)*n)); int i; for(i = 0 ; i < n ; i++) { scanf("%d",arr + i); } int *arr1 = (int*)(malloc(sizeof(int)*n)); int *arr2 = (int*)(malloc(sizeof(int)*n)); int len...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_1129/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_1129/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include <stdio.h> #include <string.h> int main() { int i, total; char digits[1001]; scanf(" %1000s", digits); while (strcmp(digits, "0")) { total = 0; for (i = 0; digits[i] != '\0'; i++) { total += digits[i] - '0'; } printf("%d\n", total); scanf(" %1000s", digits); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112942/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112942/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c; int sum = 0;; while(1){ c = getchar( ); if(c == '\n'){ if(sum == 0) break; else printf("%d\n", sum); sum = 0; } else{ sum += (c - '0'); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_112986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_112986/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); while(t--) { scanf("%d",&n); if(n&1==1) n++; printf("%d\n",n/2); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11305/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11305/source.c" target datalayout = "e-m:e-p270:32:32-p271: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" #include "math.h" int main(int argc, char const *argv[]) { char S[1000000]; scanf("%s", S); int N=strlen(S); int i; int w=0; long long int ans=0; for (i = 0; i < N; i++) { if (S[i]=='W') { ans=ans+i-w; w++; } } if (w==N||w==0) { ans=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113093/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113093/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 NMIN 1 #define NMAX 36 struct Number{ char mark; char value; }; void bubble(struct Number A[],int N){ int i,j; struct Number t; for(i=0;i<N;i++){ for(j=N-1;j>=i;j--){ if(A[j].value<A[j-1].value){ t=A[j]; A[j]=A[j-1]; A[j-1]=t; } } } } v...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113136/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113136/source.c" target datalayout = "e-m:e-p270: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.Number = type { i8,...
#include<stdio.h> int main() { long long int t, n, r; scanf("%lld", &t); while(t--) { scanf("%lld %lld", &n, &r); if(n>r) { printf("%lld\n", (r*(r+1))/2); } else { n--; printf("%lld\n", ((n*(n+1))/2)+1); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_11318/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_11318/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #define MAX_N 100 typedef struct{ char Mark; int num; } Card; void swap(int*,int*); void swap2(char*,char*); void bubbleSort(Card*,int); void selectionSort(Card*,int); void print(Card*,int); int isStable(Card*,Card*,int); int main(){ int N,i; char ch; Card a[MAX_N],b[MAX_N]; scanf("%d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113222/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113222/source.c" target datalayout = "e-m:e-p270: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.Card = type { i8, i...
#include<stdio.h> int main(){ int i,j,N,A[2][36],minj,atmp; char C[2][36],ctmp; scanf("%d",&N); for(i=0;i<N;i++){ scanf(" %c%d",&C[0][i],&A[0][i]); A[1][i]=A[0][i]; C[1][i]=C[0][i]; } for(i=0;i<=N-1;i++){ for(j=N-1;j>=i+1;j--){ if(A[1][j]<A[1][j-1]){ atmp=A[1][j]; A[1][j]=A[1][j-1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_113280/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_113280/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...