Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> #include <stdlib.h> #include <string.h> int top = 0, S[1000]; void push(int x) { S[++top] = x; } int pop(void) { top--; return S[top+1]; } int main(void) { int a, b; top = 0; char s[100]; while(scanf("%s",s) != EOF) { if(s[0] == '+') { a = pop(); b = pop(); push(a ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286792/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286792/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @top = dso_local local_unna...
#include<stdio.h> #include<stdlib.h> #include<string.h> int top, S[1000]; void push(int x) { // topを加算してからその位置へ挿入 // topはスタックポインタ変数 S[++top] = x; } int pop() { // topを一つ落とす top--; // topが指していた要素を返す return S[top+1]; } int main() { int a, b; top = 0; char s[100]; while (sc...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286835/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286835/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @S = dso_local local_unname...
#include <stdio.h> #include <stdlib.h> //atoi関数 void push(int); int pop(); int isEmpty(); int S[100],top; int main(){ int x; char s[100]; int a,b; while( scanf("%s", s) != EOF ){ if ( s[0] == '+' ){ a = pop(); b = pop(); push(a+b); } else if ( s[0] == '-' ){ a = pop(); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286886/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286886/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100 void push(int); int pop(void); int S[N],top; int main(){ int x,i,j; char s[N]; while( scanf("%s", s) != EOF ){ if ( s[0] == '+' ){ i=pop(); j=pop(); push(i+j); } else if ( s[0] == '-' ){ i=pop(); j=pop(); push(j-i); } else if ( s[0] == '*' ){ i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286943/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286943/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<stdlib.h> void push(int); int pop(); int head,Str[100000]; int main() { char str[100000]; int a,b; head=0; while(scanf("%s",str) != EOF) { if(str[0] == '+') { a = pop(); b = pop(); push(a+b); continue; } if(str[0] == '-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_286994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_286994/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @head = dso_local local_unn...
#include <stdio.h> #include <stdlib.h> #include <string.h> #define N 100 int top,arr[N]; void push(int); int pop (); int main (){ int x,y; top=0; char input[N]; while(scanf("%s",input)!= EOF){ if(input[0]=='+'){ x=pop(); y=pop(); push(x+y); } else if (input[0] =='-'){ x=pop(); y=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287043/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287043/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @top = dso_local local_unna...
#include<stdio.h> #include<stdlib.h> #include<string.h> int top,S[1000]; void push(int x){ S[++top]=x; } int pop(){ top--; return S[top+1]; } int main(void){ int a,b; top=0; char s[100]; while(scanf("%s",s)!=EOF){ if(s[0]=='+' ){ a=pop(); b=pop(); push(a+b); } else if(s[0]=='-'){ b=pop(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287087/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287087/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @S = dso_local local_unname...
#include <stdio.h> void swap(int *a,int *b) { int t; t=*a; *a=*b; *b =t; } int main(void) { int t,n,x,a,b; scanf("%d",&t); while(t--) { scanf("%d %d %d %d",&n,&x,&a,&b); if(a>b) swap(&a,&b); b-=(a-1); a=1; b+=x; if(b>n) b=n; printf("%d\n",b-a); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28713/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28713/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 top, S[1000]; void push(int x){ S[++top] = x; } int pop(){ top--; return S[top+1]; } int main() { int a, b; top = 0; char s[100]; while(scanf("%s", s) != EOF){ if(s[0] == '+') { a = pop(); b = pop(); push(a + b); } else if (s[0] == '-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287173/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287173/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @S = dso_local local_unname...
#include<stdio.h> #include<assert.h> #include<math.h> #include<string.h> int stack[110]; int top = 0; void push(int v){ stack[top++] = v; } int pop(){ return stack[--top]; } int getInt(char *s) { int i,ret=0; int size = strlen(s); for(i=0;i<size;i++) { ret += (s[i]-'0')*pow(10,size-i-1); } retur...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287216/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287216/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @top = dso_local local_unna...
#include<stdio.h> #include<stdlib.h> #define MAX 1000 void initialize(); int isEmpty(); int isFull(); void push(int); int pop(void); int stack[MAX]; int top; int main(){ int i=1; int a,b,x; char s[100]; while(scanf("%s", s) != EOF){ if(s[0] == '+'){ push(pop()+pop()); } else if(s[0] ==...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287302/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287302/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<stdlib.h> int S[100000],top; void push(int n){ S[++top] = n; } int pop(){ top--; return S[top+1]; } int main(){ char stack[100000]; int status,a,b; while(1){ status = scanf("%s", stack); if( status == -1) break; if( stack[0] == '+'){ a = p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287346/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287346/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @S = dso_local local_unname...
#include<stdio.h> int main() { int t; int max,min,sum; int a,b,x,n; scanf("%d",&t); for(int i=1;i<=t;i++) { scanf("%d %d %d %d",&n,&x,&a,&b); max=a>b?a:b; min=a<b?a:b; max=max+x; if(max>n) { x=max-n; max=n; min=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28739/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28739/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <stdlib.h> #include <stdio.h> //#pragma warning(disable:4996) typedef int i_t; int main(void){ i_t j,t,x,y; scanf("%i",&t); for (j = 0; j < t; j++) { scanf("%i %i",&x,&y); if(x<4) { if(x==2){ if(y<4) printf("YES\n"); else printf("NO\n"); }else if(y<=x) printf("YES\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28744/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28744/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> typedef long long ll; int main(void) { int n,k,c; scanf("%d%d%d",&n,&k,&c); char str[n+1]; int l[k],r[k],j=0; scanf("%s",str); for(int i=0;i<k;i++){ while(str[j]=='x') j++; l[i]=j; j+=c+1; } j=n-1; for(int i=k-1;i>=0;i--){ while(str[j]=='x') j--; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287483/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287483/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { double a,t,r; scanf("%lf%lf%lf", &a,&t,&r); a /= r; printf("%f\n", t/a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287526/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287526/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.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) #defin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287577/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287577/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dist = dso_local local_unn...
#include<stdio.h> #include<string.h> int main() { long long int n,x,a,b,ans,max,min,temp,start,end,t; scanf("%lld",&t); while(t--){ scanf("%lld%lld%lld%lld",&n,&x,&a,&b); if(a>b){ min=b; max=a; } else{ min=a; max=b; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28762/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28762/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 check (int year) { int ret; if (year % 400 == 0) { ret = 1; } else if (year % 100 == 0) { ret = 0; } else if (year % 4 == 0) { ret = 1; } else { ret = 0; } return ret; } int main(void) { int start = 0; while (1) { i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287663/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287663/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,cnt=0; while(1){ scanf("%d %d",&a,&b); if(a==0&&b==0) break; else if(cnt!=0)printf("\n"); cnt=0; for(i=a;i<=b;i++){ if(i%400==0){ printf("%d\n",i); cnt++; } e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287728/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287728/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 abs(int x) { return x > 0 ? x : -x; } int main(int argc, char* argv[]) { int t, n, x, a, b, ans; scanf("%d", &t); while (t--) { scanf("%d%d%d%d", &n, &x, &a, &b); ans = abs(b-a) + x; if (ans > n-1) ans = n-1; printf("%d\n", ans); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28780/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28780/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,r; while(1){ scanf("%d",&n); if(n==-1){ break; }else if(n<10){ r=1150; }else if(n<20){ r=1150+125*(n-10); }else if(n<30){ r=2400+140*(n-20); }else{ r=3800+160*(n-30); } printf("%d\n",4280-r); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287843/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287843/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { long long i,n,buy,tbuy = 0; scanf ("%lld",&n); for (i = 1;i <= n;i++){ scanf("%lld",&buy); tbuy = tbuy + buy; } printf("%lld\n",tbuy / n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287900/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287900/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int n, i; int p; double sum; int ave; while (scanf("%d", &n) != EOF) { if (n != 0) { sum = 0; for (i = 0; i < n; i++) { scanf("%d", &p); sum += p; } ave = sum / n; printf("%d\n", ave); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_287951/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_287951/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int cmpint(const void *x, const void *y) { return *(int *)x - *(int *)y; } int main() { int n, s[100], sum = 0; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d", &s[i]); sum += s[i]; } if (sum % 10 != 0) { printf("%d\n", sum); return 0; } int dec = sum; qs...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288000/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288000/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(int argc, char *argv[]){ int n, min, total; scanf("%d", &n); int point[n]; min = 100; total = 0; for(int i=0; i<n; i++){ scanf("%d", &point[i]); if(point[i]<min && point[i]%10 != 0){ min = point[i]; } } for(int j=0; j<n; j++){ total += point[j]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288051/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288051/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 chara[10000],n; int search(int num,int color){ int s,e,sum,total,p; s=num; e=num; sum=1; total=0; while(1){ do{ p=sum; if(s>0){ if(chara[s-1]==color){ s--; sum++; } } if(e<n-1){ if(chara[e+1]==color){ e++; sum++; } } }while(sum-p>0); if(sum<4) b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288101/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288101/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @chara = dso_local global [...
#include <stdio.h> int main() { int n,m,i,p; int ac[100005]={0},wa[100005]={0}; int WA=0,AC=0; char s[3]; scanf("%d%d", &n,&m); for(i=0; i<m; i++){ scanf("%d",&p); scanf("%s",s); if(ac[p]==1) continue; else if(s[0] == 'A') { WA += wa[p]; ac[p]++; AC++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288152/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288152/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SWAP(type,a,b) { type work = a; a = b; b = work; } /* 基準値を選ぶ */ int select_pivot(int* array, int begin, int end) { return array[(begin + end) / 2]; // 中央の要素を基準値とする } /* クイックソート (再帰部分、昇順) */ void quick_sort_rec(int* array,char results[][5], int begin, int e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288196/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288196/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include<string.h> int main(void){ int WA[100000],isAC[100000],N,M,p,i,ACs=0,pe=0; char s[2]; scanf("%d %d",&N,&M); for(i=0;i<100000;i++){ WA[i] = 0; isAC[i] = 0; } for(i=0;i<M;++i){ scanf("%d %s",&p,s); if(strcmp(s,"WA")==0 && isAC[p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288246/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288246/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<math.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b)) #define ABS(a) ((a)>(0)?(a):-(a)) typedef struct segment{ int l,r; int index; } node; int cmp(const void *a,const void *b){ node *p=(node *)a; node *q=(nod...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28829/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28829/source.c" target datalayout = "e-m:e-p270: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.segment = type { i32,...
#include<stdio.h> int main(void){ int a,b; scanf("%d%d",&a,&b); if(a<b){ printf("a < b\n"); }else if(a>b){ printf("a > b\n"); }else if(a=b){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288354/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288354/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); if (a < b){ printf("a < b\n"); } else if (a > b){ printf("a > b\n"); } else { printf("a == b\n"); } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288398/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288398/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); if(a > b) printf("a > b\n"); else if(a == b) printf("a == b\n"); else printf("a < b\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288448/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288448/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int a ,b; scanf("%d %d", &a, &b); if ( a > b) { printf("a > b\n"); } if ( a == b) { printf("a == b\n"); } if ( a < b) { printf("a < b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288499/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288499/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//AOJ 10003 #include <stdio.h> int main () { int a,b; scanf ("%d %d",&a,&b); if (a == b){ puts("a == b"); }else if (a > b){ puts("a > b"); }else{ puts("a < b"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288541/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288541/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0; scanf("%d %d",&a,&b); if(a<b){ printf("a < b\n"); } else if(a>b){ printf("a > b\n"); } else if(a==b){ printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288613/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288613/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a, b; scanf("%d %d", &a, &b); getchar(); if(a > b){ puts("a > b"); } if(a < b){ puts("a < b"); } if(a == b){ puts("a == b"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288671/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288671/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b; scanf("%d %d", &a, &b); if (a < b) { printf("a < b\n"); } else if (a != b) { printf("a > b\n"); } else { printf("a == b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288714/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288714/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); if(a==b){ printf("a == b\n"); } if(a>b){ printf("a > b\n"); } if(a<b){ printf("a < b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288758/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288758/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b; scanf("%d", &a); scanf("%d", &b); if(a>=b){ if(a>b){ printf("a > b\n"); }else{ printf("a == b\n"); }} else{ printf("a < b\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288808/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288808/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t; scanf("%d%d%d",&a,&b,&c); if(a>b)t=a,a=b,b=t; if(b>c)t=b,b=c,c=t; if(a>b)t=a,a=b,b=t; printf("%d %d\n",a,c); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288859/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288859/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> typedef long long ll; #define rep(i,n) for(int i=0; i<(int)(n); i++) #define REP(i,l,r) for(int i=l; i<(int)(r); i++) #define max(l,r) (l>r?l:r) #define min(l,r) (l<r?l:r) #define swap(l,r) {ll tp=l;l=r;r=tp;} const ll MOD = 1000000007; int main(){ char s[101010]; scanf("%s",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_288909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_288909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @MOD = dso_local local_unna...
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAXN 100005 #define INFINITY 2000000000 int main () { int N; scanf("%d",&N); static int last[MAXN]; int i, j, d1, d2; for (i = 0; i < MAXN; i++) last[i] = -INFINITY; for (i = 0; i < N; i++) { int X, Y; int res = 0; scanf("%d %d",&X,&Y); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_28896/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_28896/source.c" target datalayout = "e-m:e-p270:32:32-p271: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<ctype.h> #define MAX_ROW 160 #define MAX_COL 160 int main(void){ int inputR,inputC; //??\?????°??? R-??????,col-?¨???? int inputDiag; //??\??????????§???? int i,j; //???????????¨?????° int ansR,ansC; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289009/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289009/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ENORMOUS (1<<21) struct Ver{ int weight; int key; struct Ver *next; }; void Input(int); void Create_Vertex(int,int,int); void SSSP(void); int Test_Set(int*); int Heap(int*); int n; int *d; struct Ver *ver; int main(void){ int i; int id; scanf("%d",&n); d=(int*)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289067/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289067/source.c" target datalayout = "e-m:e-p270: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.Ver = type { i32, i...
#include<stdio.h> #include<stdlib.h> #define MAX 10000 #define INF 168435450 typedef struct node{ int flg; int cost; }node; typedef struct edge{ int p_id; int cost; struct edge *next; }edge; edge* makecell(int v,int cost){ edge* new; new=malloc(sizeof(edge)); new->p_id=v; new->cost=cost; new->next=NULL; retu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289117/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289117/source.c" target datalayout = "e-m:e-p270: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.edge = type { i32, ...
#include<stdio.h> #define MAX 10000001 #define INF 20000000 void search(int); typedef struct{ int next;//次に訪れる頂点 int now;//今いる頂点 int cost;//nowからnextまでにかかるコスト(重み) }Dist; int n; int d[MAX];//それぞれの頂点の重み Dist D[MAX]; //スタックかキュー構造で格納している? int main(){ int i, j; int u, k, cnt = 0; scanf("%d", &n)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289160/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289160/source.c" target datalayout = "e-m:e-p270: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.Dist = type { i32, ...
#include <stdio.h> #include <stdlib.h> #define INIT_CAP 10 #define INF 1000000000 inline int nextInt(void) { int ch; int sign, x; do { ch = getchar(); } while (ch < '-'); if (ch == '-') { sign = -1; ch = getchar(); } else sign = 1; x = 0; while (ch >= '0' && ch <= '9') { x = x * 10 + ch - '0'; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289203/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289203/source.c" target datalayout = "e-m:e-p270: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.VecEdge = type { pt...
#include <stdio.h> int main (){ int n, i, j, a; char c; scanf("%d", &n); while(n != 0){ int p[11] = {}, b = 0; for(i = 0; i < 100; i++){ j = i % n; scanf("%c", &c); if(c == 'M'){ p[j]++; } else if(c == 'S'){ b += p[j] + 1; p[j] = 0; } else if(c == 'L'){ p[j] += b + 1; b = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289247/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289247/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int n = 0; int H[100] , W[100]; while (1) { scanf("%d %d", &H[n], &W[n]); if (H[n] == 0 && W[n] == 0) { break; } n++; } for (i = 0; i < n; i++) { for (j = 0; j < H[i]; j++) { for (k = 0; k < W[i]; k++) { printf("#"); } printf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289319/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289319/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int h, w; int y, x; for (;;) { scanf("%d %d", &h, &w); if (h == 0 && w == 0) break; for (y = 0; y < h; y++) { for (x = 0; x < w; x++) putchar('#'); putchar('\n'); } putchar('\n'); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289362/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289362/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int H, W; int i,j; do { scanf("%d %d", &H, &W); if (H == 0 && W == 0) return 0; for (i = 0;i < H; i++) { for (j = 0;j < W; j++) { printf("#"); } printf("\n"); } printf("\n"); } while (1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289405/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289405/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 H,W; int i,j; while( 1 ) { scanf("%d %d",&H,&W); if( H==0 && W==0 ) break; for( i=0; i<H; i++ ) { for( j=0; j<W; j++ ) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289456/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289456/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 h = -1, w = -1; int i, j; while(1) { scanf("%d %d", &h, &w); for(i = 0; i < h; i++) { for(j = 0; j < w; j++) { printf("#"); } printf("\n"); } if ((h == 0)&&(w == 0)) break; printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289506/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289506/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int h; int w; int i,j; for(;;) { scanf("%d %d",&h,&w); if(h == 0 && w == 0) { return 0; } for(i = 0;i < h;i++) { for(j = 0;j < w;j++) { printf("#"); } printf("\n"); } printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289564/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289564/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; while(1){ scanf("%d%d",&a,&b); if(a == 0 && b == 0) break; int i,j; for(i = 0;i < a;i++) { for(j = 0;j < b;j++) printf("#"); puts(""); } puts("");} return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289629/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289629/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> signed main(){ char a; scanf("%c",&a); if(a<='Z'){ printf("A\n"); }else{ printf("a\n"); } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289694/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289694/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char huruf; scanf("%c", &huruf); if (huruf >='a' && huruf <= 'z') { printf("a"); } else if (huruf >= 'A' && huruf <= 'Z'){ printf("A"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289737/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289737/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char a; scanf("%c", &a); if((a>= 'a') && (a<='z')){ printf("a\n"); } if ((a>= 'A') && (a<='Z')){ printf("A\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289780/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289780/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { char al; scanf("%c",&al); if(al>='A' && al<='Z') { printf("A\n"); } else { printf("a\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289830/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289830/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char moji; scanf("%s",&moji); if((moji>='a')&&(moji<='z')) { printf("a\n"); } else if((moji>='A')&&(moji<='Z')) { printf("A\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289874/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289874/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> signed main(){ char a; scanf("%c",&a); if('a'<=a&&a<='z'){ printf("a\n"); }else{ printf("A\n"); } return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289917/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289917/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch; scanf("%c",&ch); if(ch >= 'A' && ch <='Z') { printf("A\n"); } else { printf("a\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_289960/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_289960/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char a; scanf("%c", &a); // if ((a >= 'a') && (a <= 'Z') && (a == 'a')) if ((a >= 'a') && (a <= 'z')) { printf("a"); } else if ((a >= 'A') && (a <= 'Z')) printf("A"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290009/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290009/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int i, n, x, y, a, b; char s[10000]; scanf("%s", s); if (s[0] >= 'a' && s[0] <= 'z') printf("a"); else printf("A"); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290052/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290052/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main (){ char n; scanf("%c", &n); if(n>=65 && n<=90) printf("A\n"); else printf("a\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290096/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290096/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { char s; scanf("%c",&s); if(65 <= s && s <= 90) { printf("A"); } else printf("a"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290139/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290139/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 2000 //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_290182/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290182/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll long long #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 INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290225/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290225/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ long long N; int answer=0,count=0; scanf("%lld",&N); double sqrtN=sqrt(N); for(int i=2;i<=sqrtN;i++){ while(N%i==0){ N/=i; count++; } int j=1; while(count>=j){ answer++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290269/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290269/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l; void f(int n,int a[20]){//kakunou int i; for(i=0;i<l;n/=3)a[i++]=n%3; } int g(int a[20]){ int n=0,i; for(i=l;i;i--)n=n*3+a[i-1]; return n; } int zMIN(int a,int b){ if(b==0)return a; if(a==0||a>b)return b; return a; } int main(){ int i,j,k,n,a[20]; char s[20]; while(scanf("%s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290311/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290311/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @l = dso_local local_unname...
#include<stdio.h> #include<string.h> int main() { int t,n; scanf("%d",&t); while(t--) { scanf("%d",&n); int a[n],m=0,b[n]; char lj[n+1]; scanf("%s",&lj); //getchar(); for(m=0;m<n;m++) a[m]=lj[m]-'0'; //lj[m]=getchar()-'0'; //for(m=0;m<n;m++) printf("%d\n",a[m]); memset(b,0,n); b[0]=1; a[0]++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_29037/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_29037/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
// ABC046 B - AtCoDeerくんとボール色塗り #include <stdio.h> int main(void) { int N, K; long long result; // input scanf("%d %d", &N, &K); result = K; if (N == 1) { printf("%lld\n", result); return 0; } int i; for (i = 0; i < (N - 1); i++) { result *= (K - 1); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290412/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290412/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int N,K,X,Y; scanf("%d%d",&N,&K); X=1; for(int i=0;i<N-1;i++) { X=X*(K-1); } Y=K*X; printf("%d\n",Y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290456/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290456/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n,k; long double ans=1; scanf("%d %d \n",&n,&k); ans *= k; ans *= powl((long double)(k-1),(long double)(n-1)); printf("%ld\n",(long int)ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290542/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290542/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; unsigned long long int k; if(scanf("%d %llud", &n, &k) == -1){ return 0; } unsigned long long int answer = k; int i; if(n != 2){ for(i = 1; i < n; i++){ answer = answer * (k - 1); } } printf("%llu", answer); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290586/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290586/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%s\n",x<1200?"ABC":"ARC"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290629/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290629/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r,c; scanf("%d %d",&r,&c); int a[r][c],i,j; for(i=0;i<r;i++) for(j=0;j<c;j++) scanf("%d",&a[i][j]); int max=0; for(i=0;i<r;i++) { int minrow=a[i][0]; for(j=1;j<c;j++) { if(a[i][j]<minrow) m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_29068/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_29068/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 n,m,i,j;scanf("%d %d",&n,&m); unsigned a[101][101]={0},min,max; for(i=1;i<=n;i++) { for(j=1;j<=m;j++) scanf("%u",&a[i][j]); } for(i=1;i<=n;i++) { min=a[i][1]; for(j=2;j<=m;j++) if(a[i][j]<min) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_29073/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_29073/source.c" target datalayout = "e-m:e-p270:32:32-p271: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> //絶対値 long long int change_plus(long long int a) { if (a < 0) { return -a; } if (a >= 0) { return a; } } //大小比較(大) long long int big(long long int a, long long int b) { if (a >= b) { return a; } else { return b; } } //大小比較(小) long long int small(long lo...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290773/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290773/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); if(x<1200){ printf("ABC\n"); } else{ printf("ARC\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290816/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290816/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 SIZE 105 int main() { int a[SIZE][SIZE], i, j, n, m, min[SIZE], tmin; scanf("%d %d", &n, &m); for (i = 0; i < n; i++) for (j = 0; j < m; j++) scanf("%d", &a[i][j]); for (i = 0; i < n; i++) { min[i] = a[i][0]; for (j = 1; j < m; j++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_29086/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_29086/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,a[1000][1000],r[10000],mi,ma,i,j; scanf("%d%d",&n,&m); mi = 1000000000; for(i=0;i<n;i++){ for(j=0;j<m;j++){ scanf("%d",&a[i][j]); if(a[i][j] < mi) mi = a[i][j]; } r[i] = mi; mi = 1000000000; } ma = 0; for(i=0;i<n;i++){ if(r[i] > ma) ma = r[i]; } pri...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_29091/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_29091/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,price=700; char s[4]; scanf("%s",s); for(i=0;i<3;i++) if(s[i]=='o') price+=100; printf("%d\n",price); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_290960/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_290960/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 BUF_SIZE 512 int map[256] = { ['o'] = 1, ['x'] = 0, }; int main(void) { FILE* fp; fp = stdin; char line[BUF_SIZE]; if(!fgets(line, BUF_SIZE, fp)) return 0; int toppings = 3, i; int res = 700; for(i = 0; i < toppings; i++) { res += map[line[i]] * 100; } printf("%d\n"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291002/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291002/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @map = dso_local local_unna...
#include <stdio.h> int main(void) { int proper=700; char top[100]; int i=0; scanf("%s", top); while(i<3){ if(top[i]=='o'){ proper=proper+100; } i++; } printf("%d\n",proper); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291046/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291046/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100][100],i,j,x[100],temp,flg=0,max; scanf("%d",&a); scanf("%d",&b); for(i=0;i<a;i++) { for(j=0;j<b;j++) { scanf("%d",&c[i][j]); } } for(i=0;i<a;i++) { temp=c[i][0]; for(j=0;j<b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_29109/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_29109/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> int main(void){ int kane=700,i; char s[4]; scanf("%s",s); for(i=0;i<3;i++){ if(s[i]=='o')kane+=100; } printf("%d\n",kane); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291147/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291147/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int s = 700; char a,b,c; char o = 'o'; scanf("%c %c %c",&a,&b,&c); if(a == o){ s += 100; } if(b == o){ s += 100; } if(c == o){ s += 100; } printf("%d",s); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291204/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291204/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h> int coprime(int); int main(){ int i,j,k,l,n; char ch[256],ch2[256]; scanf("%d",&n); fgets(ch,256,stdin); for(i = 0;i < n;i++){ fgets(ch,255,stdin); for(j = 0;j < 26;j++){ for(k = 0;k < 26;k++){ strcpy(ch2,ch); for(l = 0;l < strlen(ch);l+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291248/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291248/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #define max(a,b) (a>b)?a:b int main(void){ int N,W,i,j; int *v,*w,*dp; scanf("%d%d",&N,&W); v=calloc(N,sizeof(int)); w=calloc(N,sizeof(int)); dp=calloc(W+1,sizeof(int)); for(i=0;i<N;i++){scanf("%d%d",&v[i],&w[i]);} for(i=0;i<N;i++){ for(j=W;j>=w[i];j--){ dp[j]=max(dp[j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291299/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291299/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 max(int a,int b){ if(a>b){ return a; }else{ return b; } } int main(void) { int n,W,i; scanf("%d %d",&n,&W); int v[n],wei[n]; for(i = 0; i < n; i++){ scanf("%d %d",&v[i],&wei[i]); } int dp[110][10010]; for(int w = 0; w <= W; w++){ dp[0][w] = 0; } for(i = 0; i < n; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291341/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291341/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int i; long long int a,b; long long int c; scanf("%d ",&n); for( i=0;i<n;i++){ scanf("%lld %lld ",&a,&b); c = a+b; printf("%lld\n",c); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291385/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291385/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> int comp(const void *px, const void *py){ char x = *(char*)px; char y = *(char*)py; return (x>y)?1:(x<y)? -1:0; } int main(void){ char w[101]; int count[100]; bool yn=true; scanf("%s",w); qsort(w,strlen...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291442/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291442/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, char *argv[]) { char w[101] = {}; scanf("%s", w); int x = (int)'a'; int y = (int)'z'; int arr[100] = {}; int k; k = 0; while(w[k] != 0){ arr[(int)w[k++] - x]++; } for(int i = 0; i <= y - x; i++){ if(arr[i] % 2 == 1){ printf("No\n"); break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291493/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291493/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(void){ char w[101]; scanf("%s",w); int l=strlen(w); int al[26]={0}; for(int i=0;i<l;i++){ al[w[i]-'a']++; } for(int i=0;i<26;i++){ if(al[i]%2==1){ printf("No"); return 0; } } printf("Yes"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291536/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <string.h> #include <stdio.h> #define REP(i, a, b) for(long long int i = a; i < b; i++) int main(void) { int a[26]; REP(i, 0, 26) { a[i] = 0; } char s[200]; scanf("%s", s); REP(i, 0, strlen(s)) { a[s[i] - 97]++; } REP(i, 0, 26) { if (a[i] % 2 != 0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291587/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291587/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//gcc -std=gnu11 -O2 -o a.out Main.c -lm //http://abc044.contest.atcoder.jp/tasks/abc044_b #include <stdio.h> #include <math.h> #include <stdlib.h> #include <stdint.h> #include <stdint.h> #include <math.h> #include <string.h> int main(void) { #define N_MAX 100 int ret; int i,j; char strBuf[N_MAX+1]; int flag = 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291637/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291637/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> typedef struct { int s, v; long n; } pair; long dp[16][1024]; int _c = 0; pair lazy[1000000]; int append(int s, int v, long n) { lazy[_c++] = (pair){s, v, n}; return (0); } int apply(void) { int it = _c - 1; while (it >= 0){ dp[lazy[it].s][lazy[it].v] += lazy[it].n; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_291688/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_291688/source.c" target datalayout = "e-m:e-p270: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.pair = type { i32, ...