Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include <stdio.h>
#define MAX 250
#define MAXTOTAL 10000
int main() {
int n, m;
int a[MAX] = {0};
int b[MAX] = {0};
int all[MAXTOTAL] = {0};
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
all[a[i]]++;
}
scanf("%d", &m);
for (int i =... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7746/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7746/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
for(int i=1 ; i<10001 ; i++){
scanf("%d", &x);
if(x!=0){
printf("Case %d: %d\n", i, x);
}
else break;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77502/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77502/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i = 0, count = 0, data[10000];
while(1) {
scanf("%d", &data[i]);
if (data[i] == 0) break;
i++;
}
count = i;
for (i = 0; i < count; i++) {
printf("Case %d: %d\n", i+1, data[i]);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77546/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77546/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<stdlib.h>
int main()
{
int i,j,n,m;
int *a,*b,maxa=0,maxb=0;
scanf("%d",&n);
a=(int*)malloc(n*sizeof(int));
for(i=0;i<n;i++)
{
scanf("%d",a+i);
if(a[i]>maxa)
maxa=a[i];
}
scanf("%d",&m);
b=(int*)malloc(m*sizeof(int));
for(i=0... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7759/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7759/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i,x;
for(i=1;i<=10000;i++){
scanf("%d",&x);
if(x==0)
break;
printf("Case %d: %d\n",i,x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77632/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77632/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i=0,x;
while(1){
scanf("%d",&x);
if(x==0)break;
i+=1;
printf("Case %d: %d\n",i,x);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77676/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77676/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i, x;
i = 1;
while(1){
scanf("%d", &x);
if( x == 0 ){
break;
}
printf("Case %d: %d\n", i, x);
i++;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77726/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, i=1;
scanf("%d",&x);
while(1){
if(x==0)
break;
printf("Case %d: %d\n",i,x);
scanf("%d",&x);
i++;
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77777/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77777/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdlib.h>
int foo(int a, int mat[], int n)
{
int i = 0, j = n - 1;
while(i < j)
{
while(i < j && mat[i] == a) i++;
while(i < j && mat[j] == a) j--;
if(i >= j)
return 1;
if(mat[i] == mat[j])
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7782/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7782/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdint.h>
typedef void* flori_fexpr;
typedef int64_t flori_int;
flori_fexpr (*flori_new_fident)(char* s);
flori_fexpr (*flori_new_fseq)();
flori_fexpr (*flori_new_farray)();
flori_fexpr (*flori_new_flist)();
flori_fexpr (*flori_new_fblock)();
flori_fexpr (*flori_new_fintlit)(flori_int s);
flori_fexpr (*flo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77863/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77863/source.c"
target datalayout = "e-m:e-p270: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.Array1024_core_prelud... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h> // uint64_t
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
int get_int(void) {
int num;
scanf("%d", &num);
return num;
}
int get_str(char *str, int size)
{
char format[100];
if (size == 0)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77906/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77906/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
void solve(){
int n ,m;
scanf("%d %d",&n,&m);
if(n==1 && m==1)
printf("0\n");
else if(n==1 ||m==1){
printf("1\n");
}
else{
printf("2\n");
}
}
int main(){
int t;
scanf("%d",&t);
while(t--)
solve();
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7795/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7795/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<stdlib.h>
#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
void run(void){
int n;
scanf("%d%*d",&n);
int *a=(int *)calloc(n,sizeof(int));
int *min=(int *)calloc(n+1,sizeof(int))+1;
min[-1]=1000000000;
int p=0;
int i;
for(i=0;i<n;i++){
scanf("%d",a+i)... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_77993/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_77993/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r;
scanf("%d",&r);
printf("%d",3*r*r);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78042/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78042/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdlib.h>
#include <math.h>
int main()
{
int r;
scanf("%d" , &r);
printf("%d\n", 3*r*r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78086/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78086/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r, area;
scanf("%d", &r);
area = 3*r*r;
printf("%d", area);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78143/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78143/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int a,b;
scanf("%d",&a);
b=3*a*a;
printf("%d",b);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78187/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78187/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 k,n,m;
int check(int A[300], int B[300], int seq[600], int seqlen)
{
int curA = 0, curB = 0;
for(int i = 0; i < seqlen; ++i){
if(curA < n && (A[curA] == 0 || A[curA] <= k)){
seq[i] = A[curA];
if(A[curA] == 0)++k;
++curA;
}else{
if(curB < m && (B[curB] == 0 || B[curB] <= k)){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7823/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7823/source.c"
target datalayout = "e-m:e-p270: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 i32 0, al... |
#include<stdio.h>
int main(void)
{
int r,s;
scanf("%d",&r);
s=3*(r*r);
printf("%d",s);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78273/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 r;
scanf("%d", &r);
int x = 3*r*r;
printf("%d\n", x);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78316/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78316/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main()
{
int t,j;
char s[27];
int b[26]={0};
scanf("%d",&t);
for(int i=1;i<=t;i++){
for(j=0;j<26;j++)
b[j]=0;
int flag=0;
int flag2=0;
scanf("%s",s);
int num=strlen(s);
for(j=0;j<num;j++){
if(s[j]=='a')
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7836/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7836/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void)
{
int r = 0;
int a = 0;
do{
scanf("%d", &r);
}while(r < 1 || r > 100);
a = 3 * r * r;
printf("%d", a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78402/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int main(void) {
// 入力
int n;
scanf("%d",&n);
printf("%d\n",3*n*n);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78453/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78453/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<math.h>
#include<stdlib.h>
int main () {
int r;
scanf("%d", &r);
printf("%d\n", 3 * r * r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78497/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78497/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 abso(int x){
if(x>=0){
return x;
}
else{
return -x;
}
}
int main()
{
int t;
scanf("%d", &t);
for (int x = 0; x <t; x++)
{
int xa,xb,xf,ya,yb,yf;
scanf("%d %d",&xa,&ya);
scanf("%d %d",&xb,&yb);
scanf("%d %d",... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_7854/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_7854/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 comp(char a, char b){
if(a==b){
return 1;
}else{
return 0;
}
}
int main(){
char a[5], b[5];
int c1, c2, i , j;
while(1){
c1 = c2 = 0;
scanf("%s %s", a, b);
if(strcmp(a, "0")==0 && strcmp(b, "0")==0){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78583/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78583/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
// AOJ 1189: Prime Caves
// 2017.9.21 bal4u@uu
// 2017.12.22
#include <stdio.h>
#include <string.h>
#define MAX 1020000
#define N 1010
#define SQRT 1009 // sqrt(MAX)
#define max(a,b) ((a)>=(b)?(a):(b))
char prime[MAX+2] = {1,1,0};
void mkprime()
{
int i, j;
for (i = 4; i <= MAX; i += 2) prime[i] = 1;
fo... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78648/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78648/source.c"
target datalayout = "e-m:e-p270: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.PP = type { i32, i32 ... |
#include <stdio.h>
int main(void)
{
int N;
int a[4];
int L, S;
int i, j, cnt, tmp;
while (scanf("%d", &N) != EOF){
if (N == 0000){
break;
}
else if (N % 1111 == 0){
printf("NA\n");
}
else {
cnt = 0;
while (N != 6174){
a[0] = N / 1000;
a[1] = N / 100 % 10;
a[2] = N / 10 % 10;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78699/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78699/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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<math.h>
#include<string.h>
#include<stdbool.h>
typedef long long ll;
typedef long double ld;
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define rrep(i,l,r)for(ll i=(l);i>=(r);i--)
#define INF (1LL<<60)
#define MOD1 1000000007
#... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78741/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78741/source.c"
target datalayout = "e-m:e-p270: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.fr = type { i64, i64 ... |
#include<stdio.h>
#include<ctype.h>
int main(void){
char a,n;
int m[26]={0},ac,i;
while(scanf("%c",&a)!=EOF){
if(isalpha(a)){
if(isupper(a))a=tolower(a);
ac=a-'a';
m[ac]++;
}
}
for(i=0;i,i<26;i++){
n=i+'a';
printf("%c : %d\n",n,m[i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78785/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78785/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void) {
char c;
int i;
int count[26];
for(i=0;i<26;i++)count[i]=0;
while((c=getchar())!=EOF) {
if(c>='a' && c<='z')count[c-'a']++;
else if(c>='A' && c<='Z')count[c-'A']++;
}
for(i=0;i<26;i++) {
printf("%c : %d\n",(char)(i+'a'),count[i]);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78828/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78828/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
char ch='A';
char i=0;
char num=0;
int alphabet[26];
for(num=0;num<26;num++){
alphabet[num] = 0;
}
while ( scanf("%c", &ch) != EOF ){
if (64<ch && ch<91){
alphabet[ch-65]++;
} else if (96<ch && ch<123){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78871/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78871/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 num;
int count[26];
int bb;
char str;
char z;
for (bb = 0; bb < 26; bb++) {
count[bb] = 0;
}
while (scanf("%c", &str) != EOF) {
if ((str >= 'A') && (str <= 'Z')) {
str += 0x20;
}
num = str - 'a';
count[num]++;
}
z = 'a';
for (bb = 0; bb < 26; bb++) {
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78936/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78936/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, i, j;
int hanako[101],taro[101],hsum,tsum, min = 1000, anstaro, anshanako;
while(1){
scanf("%d %d",&x, &y);
hsum = 0;
tsum = 0;
min = 1000;
if(x == 0 && y == 0){
break;
}
tsum = 0;
for(i = 0 ; i < x ; i++){
scanf("%d",&tar... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_78994/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_78994/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int n, m, tarosum, hanasum,taro[100],hana[100],diff,min,input1,input2;
int i, j;
while(1){
tarosum=0;
hanasum=0;
min=201;
input1=0;
input2=0;
scanf("%d %d",&n,&m);
if(n==0 && m==0)break;
for(i=0;i<n;i++){
scanf("%d",&taro[i]);
tar... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79036/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79036/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 func(char c){
if(c=='J')return 1;//001
if(c=='O')return 2;//010
if(c=='I')return 4;//100
}
int dp[1005][9];
char s[1005];
int main(){
int i,j,k,n,id,ans;
char c;
scanf("%d",&n);
scanf("%s",s);
dp[0][1]=1;
for(i=0;i<n;i++){
id=func(s[i]);
for(j=0;j<8;j++){
for(k=0;k<8;k++){
i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79087/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79087/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int n, a;
scanf("%d", &n);
printf("%d: ", n);
a = 2;
while (n >= a * a) {
if (n % a == 0) {
printf("%d ", a);
n /= a;
}
else
a++;
}
printf("%d\n", n);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79137/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79137/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
typedef long long ll;
int main(void) {
ll i, j, k, n;
scanf("%lld", &n);
ll a[n], b[n], suma = 0, sumb = 0, counta, countb;
for(i = 0; i < n; ++i) {
scanf("%lld", &a[i]);
suma += a[i];
}
for(i = 0; i < n; ++i) {
scanf("%lld", &b[i]);
sumb += b[i];
}
counta = sumb - s... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79188/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79188/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a;
scanf("%d %d",&x,&a);
if(x<a){
printf("0\n");
}else{
printf("10\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79238/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79238/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X,A,test;
scanf("%d %d",&X,&A);
if(X<A)
test=0;
else
test=10;
printf("%d",test);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79281/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79281/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,a,flag=0;
scanf("%d %d",&x,&a);
if(x<a){
flag=1;
}
if(flag==1){
printf("0");}
else{
printf("10");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79324/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79324/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,a;
scanf("%d%d", &x, &a);
if(x<a) {
printf("0");
}else {
printf("10");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79368/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79368/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, a;
scanf("%d%d", &x, &a);
if (x < a) {
printf("0");
}
else
{
printf("10");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79410/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79410/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,a;
scanf("%d %d", &x,&a);
if(x<a){
printf("%d\n", 0);
}else{
printf("%d\n", 10);
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79461/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79461/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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=0;
scanf("%d%d",&x,&y);
if(x<y){
printf("0");
}else{
printf("10");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79504/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79504/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, a;
scanf("%d",&x);
scanf("%d",&a);
if(x<a) printf("%d\n",0);
else printf("%d\n",10);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79548/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79548/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,A;
scanf("%d%d",&X,&A);
if(X<0||X>9||A<0||A>9){
while(1){
scanf("%d%d",&X,&A);
if(X>=0&&X<=9&&A>=0&&A<=9){
break;
}
}
}
if(X>=A){
printf("10\n");
}
else{
printf("0");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79591/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79591/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,a;
scanf("%d %d",&x,&a);
printf("%d\n",(x>=a)*10);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79641/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79641/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,A;
scanf("%d %d",&X,&A);
if(X >= A){
printf("10\n");
} else if(X < A) {
printf("0\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79685/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79685/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x,a;
scanf("%d",&x);scanf("%d",&a);
if(x<a)
printf("0");
else
printf("10");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79728/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79728/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, a;
scanf("%d %d", &x, &a);
printf("%d\n", (x<a)?0:10);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79771/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79771/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <math.h>
int main (int argc, char const *argv[])
{
intmax_t X, A;
intmax_t ans = 0;
scanf("%jd%jd", &X, &A);
if (X < A) {
puts("0");
} else {
puts("10");
}
return... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79814/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79814/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x, a;
scanf("%d %d", &x, &a);
printf("%d", x < a ? 0 : 10);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79858/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79858/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main () {
int a,b,c,x;
int count = 0;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
scanf("%d", &x);
int ai, bi, ci;
for(ai = 0 ; ai <= a; ++ai) {
for(bi = 0 ; bi <= b; ++bi) {
for(ci = 0 ; ci <= c; ++ci) {
int total;
total ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79900/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79900/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
int A, B, C, X;
int a, b, c;
int count = 0;
scanf("%d%d%d%d", &A, &B, &C, &X);
for (a = 0; a <= A; a++)
for (b = 0; b <= B; b++)
for (c = 0; c <= C; c++)
if (X == 500*a + 100*b + 50*c)
count++;
printf("%d", count);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79944/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79944/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int a,b,c,x;
int i,j,k,count=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&x);
for(i=0;i<=a;i++){
for(j=0;j<=b;j++){
for(k=0;k<=c;k++){
if(500*i+100*j+50*k==x){
count++;
}
}
}
}
printf("%d",count);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_79988/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_79988/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h>
#include <math.h>
#include <time.h>
#define REP(i,n) for(i=0;i<n;i++)
#define ll long long
int main(void){
int a,b,c,x;
int i,j,k;
int ctr=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&x);
REP(i,a+1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80029/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80029/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main() {
int A,B,C,x;
scanf("%d%d%d%d",&A,&B,&C,&x);
int cnt=0;
int a,b,c;
for(a=0;a<=A;a++){
for(b=0;b<=B;b++){
for(c=0;c<=C;c++){
int goukei=500*a+100*b+50*c;
if(goukei==x){
cnt++;
}
}
}
}
printf("%d",cnt);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80072/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80072/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
#define rep(i, n) for(int i = 0; i < n; i++)
#define in_arr(type, a, n) for(int i = 0; i < n; i++) scanf(type, &((a)[i]));
int main(){
int a, b, c, x, ret = 0;
scanf("%d%d%d%d", &a, &b, &c, &x);
for(int i = 0; i <= a; ++i){
for(int j = 0; j <= b; ++j){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80115/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80115/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a,b,c,x,i,j,k,cnt=0;
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
scanf("%d",&x);
for(i=0;i<=a;i++){
for(j=0;j<=b;j++){
for(k=0;k<=c;k++){
if(i*500+j*100+k*50==x)
cnt++;
}
}
}
printf("%d\n",cnt);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80159/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
int main()
{
int a,b,c,x;
int count = 0;
scanf("%d\n%d\n%d\n%d",&a,&b,&c,&x);
int i,j,k;
for (i=0;i<=a;i++)
for (j=0;j<=b;j++)
for (k=0;k<=c;k++)
{
if(500*i+100*j+50*k==x) count++;
}
printf("%d\n",count);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80201/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80201/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 c, a, b, x, ans = 0, i, j, k;
scanf("%d%d%d%d", &a, &b, &c, &x);
x /= 50;
for(i = 0; i <= a; ++i) {
for(j = 0; j <= b; ++j) {
for(k = 0; k <= c; ++k) {
if(k + 2 * j + i * 10 == x) ++ans;
}
}
}
printf("%d", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80252/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80252/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 point,variable[5];
for(point= 0;point< 5;point++){
scanf("%d",&variable[point]);
if(variable[point] == 0){
printf("%d",point+1);
break;}
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80302/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80302/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x[5];
for(int i=0;i<5;i++){
scanf("%d",&x[i]);
}
for(int i=0;i<5;i++){
if(x[i]==0){
printf("%d",i+1);
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80346/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80346/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main(){
char str[1001],i;
long long int l,j,count=0,t,k,b=0,arr[1001]={0},p;
scanf("%lld",&t);
for(k=0;k<t;k++)
{
scanf("%s",str);
l=strlen(str);
if(l==1)
printf("%c"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8039/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8039/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void)
{
int i[5];
int o;
for(o=0;o<5;o++){
scanf("%d",&i[o]);
if(i[o]==0){
printf("%d",o+1);
return 0;
}
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80432/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80432/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[5];
for(int i=0;i<5;i++){
scanf("%d",&x[i]);
if(x[i]==0){
printf("%d",i+1);
}
}
return 0;} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80476/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80476/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 arr[5];
scanf("%d %d %d %d %d", &arr[0], &arr[1], &arr[2], &arr[3], &arr[4]);
for (int i = 0; i < 5; i++) {
if (arr[i] == 0) {
printf("%d", i + 1);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80519/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80519/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 x1, x2 ,x3 ,x4 ,x5;
scanf("%d",&x1);
scanf("%d",&x2);
scanf("%d",&x3);
scanf("%d",&x4);
scanf("%d",&x5);
if (x1 != 1) {
printf("1");
} else if (x2 != 2) {
printf("2");
}else if (x3 != 3) {
printf("3");
}else if (x4 != 4) {
printf("4");
}else{
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80562/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80562/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 i;
int a[5];
for(i = 1;i <= 5;i++){
int index;
scanf("%d", &index);
if(index == 0){
printf("%d", i);
break;
}
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80605/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80605/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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[10];
int i;
for(i=0; i<5; i++) scanf("%d", &x[i]);
for(i=0; i<5; i++) if(x[i]==0) printf("%d", i+1);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80656/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80656/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 m,i,p,s,t,x,y,a[1000];
scanf("%d",&m);t=0;p=0;
for(i=1;i<=m;i++)
{ scanf("%d",&a[i]);t=t+a[i];}
scanf("%d %d",&x,&y);s=0;
for(i=1;i<=m;i++)
{
s=s+a[i];
if(((s>=x)&&(s<=y)) &&((t-s>=x)&&(t-s<=y)))
{printf("%d\n",i+1);p=1;bre... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_807/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_807/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr cons... |
#include <stdio.h>
#include <stdlib.h>
int main(void){
int x[6];
int i;
scanf("%d %d %d %d %d", &x[1],&x[2],&x[3],&x[4],&x[5]);
for(i=1;i<=5;i++){
if(x[i]==0)printf("%d", i);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80742/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80742/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include <stdlib.h>
#include<ctype.h>
//qsort
int compare_int(const void *a, const void *b)
{
return *(int*)a - *(int*)b;
}
//比較
int max(int a, int b){
if (a>b) return a;
else return b;
}
int min(int a,int b) {
if(a>b) return b;
else return a;
}
//main関... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80786/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80786/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
if(N>999) printf("ABD\n");
else printf("ABC\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80829/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80829/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(){
int a;
scanf("%d",&a);
if(a>=1000)printf("ABD");
else printf("ABC");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80872/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80872/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
if(N < 1000){
printf("ABC\n");
}else{
printf("ABD\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80922/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80922/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
if (1<=N && N<= 999)
{
printf("ABC");
}
else if (1000<= N && N<=1998)
{
printf("ABD");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_80966/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_80966/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n>0&&n<=999)
printf("ABC\n");
else if(n>999&&n<=1998)
printf("ABD\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81015/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81015/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a;
scanf("%d",&a);
if(a<1000)
printf("ABC\n");
else
printf("ABD\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81059/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81059/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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);
if(N<1000){
printf("ABC\n");
}else{
printf("ABD\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81101/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81101/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
#define int long long
signed compare(const void *a, const void *b){
int sub = *(int *)a - *(int *)b;
if(sub < 0){
return -1;
}
else if(sub > 0){
return 1;
}
else{
return 0;
}
}
signed main(){
int N, M, i, j, ans = 0;
scanf("%lld%lld", &N, &M);
int *A = (int *)mal... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81145/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81145/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void)
{
char s[3];
int i,a = 0,b = 0;
scanf("%s", &s);
for (i = 0; i < 3; i++){
if (s[i] == 'A') a++;
else b++;
}
if (a == 3 || b == 3){
printf("No");
}else{
printf("Yes");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81189/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81189/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void)
{
char S[4];
scanf("%s",S);
if((S[0]==S[1])&&(S[1]==S[2]))
printf("No\n");
else printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81231/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81231/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(void){
char s[4];
scanf("%s",s);
if(s[0]==s[1]&&s[1]==s[2])
printf("No");
else
{
printf("Yes");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81275/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81275/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
#pragma GCC optimize("O3")
#pragma GCC target("avx")
#pragma GCC optimize("unroll-loops")
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <stdbool.h>
#define LL long long
#define DB double
#define MIN(x,y) ((x)<(y)?(x):(y))
#define MAX(x,y) ((x)<(y)?(y):(x))
#define FOR(i,a,n) for(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81325/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81325/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@fact = dso_local local_unnam... |
#include <stdio.h>
int main(void)
{
char s[3];
scanf("%s", &s);
if((s[0] != s[1]) || (s[1] != s[2])){
printf("Yes");
}
else{
printf("No");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81369/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81369/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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)
{
char S[4];
char A[4]={'A','A','A'};
char B[4]={'B','B','B'};
scanf("%s",S);
if((strcmp(S,B)==0) || (strcmp(S,A)==0)){
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81411/source.c"
target datalayout = "e-m:e-p270: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.A = private unn... |
#include<stdio.h>
#define ll long long
int main(){
ll i,n,t,ans=0,m;
scanf("%lld",&t);
for(i=0;i<t;i++){
scanf("%lld%lld",&n,&m);
if(m-n>=2)
ans++;
}
printf("%lld",ans);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_8147/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_8147/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(void) {
char buf[10];
fgets(buf, 5, stdin);
if(buf[0] == buf[1] && buf[0] == buf[2])
puts("No");
else
puts("Yes");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81512/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81512/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@stdin = external local_unnam... |
#include<stdio.h>
int main(void){
char S[3];
scanf("%s", S);
if(S[0] == S[1] && S[1] == S[2]) printf("No\n");
else printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81556/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81556/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int comp(const void *a, const void *b){
return *(int*) a - *(int*) b;
}
int main(){
int vec[100], n, q, dif = 0;
scanf("%d", &q);
for(int i = 0; i < q; ++i){
dif = 0;
scanf("%d", &n);
for(int j = 0; j < n; ++j){
scanf("%d", &vec[j]);
}
qsort(vec, n, sizeof(int), ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_816/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_816/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr cons... |
#include <stdio.h>
int main(){
char s[3];
scanf("%s",s);
if(s[0]==s[1] && s[1]==s[2]){
printf("No");
} else {
printf("Yes");
}
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81642/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81642/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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()
{
char n,a;
scanf("%c %c",&n,&a);
if (n > a)
printf(">");
else if (n == a)
printf("=");
else
printf("<");
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81686/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81686/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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() {
char character_x, character_y;
scanf("%c %c", &character_x, &character_y);
if(character_x > character_y) {
printf(">\n");
} else if(character_x < character_y) {
printf("<\n");
} else {
printf("=\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81729/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81729/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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() { char a,b; scanf("%c %c", &a, &b); if (a > b) puts(">"); else if (a == b) puts("="); else puts("<"); return 0; } | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81787/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81787/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
#include<string.h>
int main()
{
char a[2],b[2];
scanf("%s %s", a,b);
if(strcmp(a,b)==0) printf("=\n");
else if(strcmp(a,b)>0) printf(">\n");
else printf("<\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81837/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81837/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 X,Y;
scanf("%c %c",&X,&Y);
if ( X>=65&&X<=70&&Y>=65&&X<=70 )
if ( X>Y ){
printf(">");
}
else if ( X<Y ) {
printf("<");
}
else printf("=");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81880/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81880/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main() {
int a,b;
scanf("%x %x", &a, &b);
if (a < b)
printf("<");
else if (a > b)
printf(">");
else
printf("=");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81930/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81930/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <math.h>
int main(void) {
long long h, w;
scanf("%lld %lld", &h, &w);
if (h == 1 || w == 1) {
printf("1\n");
return 0;
}
long long sum;
sum = ceil((double)(h * w) / 2);
printf("%lld\n", sum);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_81974/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_81974/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.