Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main() { int N; scanf("%d",&N); if(N>0&&N<10) { printf("%d",N); } else if(N>=10&&N<100) { printf("9"); } else if(N>=100&&N<1000) { printf("%d",(N-99)+9); } else if(N>=1000&&N<10000) { printf("909"); } else if(N>=10000&&N<100000) { printf("%d",(N-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371448/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371448/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,temp,result,count,res; int arr[7]={0,9,9,909,909,90909,90909}; while(scanf("%d",&N)!=EOF) { count=0; temp=N; while(temp!=0) { temp=temp/10; count++; } if(count%2==0) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371491/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371491/source.c" target datalayout = "e-m:e-p270: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.arr = private...
#include<stdio.h> #include<math.h> int main(){ double N; scanf("%lf",&N); int a; double S=0; a= floor(log10(N))+1; //桁数 int i; if(a==1){ S=N; } else if(a%2==0){ for(i=0;i<(a/2);i++){ S=S+9*pow(100,i); // printf("i=%d\n",i); //printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371534/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371534/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main(void) { int n, m, count = 0; int ans; scanf("%d", &n); m = n; while(m > 0){ m /= 10; count++; } if(count == 1){ ans = n; }else if(count == 2){ ans = 9; }else if(count == 3){ ans = 9 + n - 99; }else if(count == 4){ ans = 9 + 90...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371578/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371578/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <inttypes.h> int N; int64_t W; int64_t w[128], v[128]; int memo[128][128][334]; int64_t search(int idx, int count, int delta) { int64_t answer, candidate; int64_t current; if (idx >= N) return 0; if (memo[idx][count][delta]) return ~memo[idx][count][delta]; answer = search(idx + 1, ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371620/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371620/source.c" target datalayout = "e-m:e-p270: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...
#include <stdio.h> int main(void) { int m, f, r; int i, n; int data[1000]; // A==1, B==2, C==3, D==4, F==5 i = 0; while (scanf("%d %d %d", &m, &f, &r), m != -1 || f != -1 || r != -1){ if (m == -1 || f == -1){ data[i] = 5; } else if (m + f >= 80){ data[i] = 1; } else if (m + f >= 65){ data[i] ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371664/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371664/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// // main.c // 16 // // Created by x14005xx on 2016/05/10. // Copyright (c) 2016??´ Isikawa yuuki. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]){ int m=0, f=0, r=0, q=0;//????????£?¨? while(1){ scanf("%d %d %d",&m,&f,&r);//m,f,r?????\??? if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371714/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371714/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,f,r; int tmp; char rank; while(1){ scanf("%d %d %d",&m,&f,&r); if(m==-1&&f==-1&&r==-1)break; //成績判定 tmp=m+f; if(m==-1||f==-1)rank='F'; else if(tmp<30)rank='F'; else if(tmp<50) if(r<50)rank='D';else rank='C'; else if(tmp<65)rank='C'; else if(tmp<80)rank='B'; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371772/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371772/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int m,f,r; char rank; while(1){ scanf(" %d %d %d",&m,&f,&r); if(m == -1){ rank = 'F'; if(f == -1 && r == -1){ return 0; } }else if(f == -1){ rank = 'F'; }else...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371815/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371815/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,f,r,i; while(1){ scanf("%d %d %d%*c",&m,&f,&r); if(m==-1&&f==-1&&r==-1) break; if(m==-1||f==-1) printf("F\n"); else{ if(m+f>=80) printf("A\n"); else if(m+f>=65) printf("B\n"); else if(m+f>=50) printf("C\n"); else if(m+f>=30){ if(r>=50)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371859/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371859/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 m,f,r; while(1){ scanf("%d%d%d" , &m , &f , &r); if(m==-1 && f==-1 && r==-1)break; if(m==-1 || f==-1)printf("F\n"); else if(m+f >= 80)printf("A\n"); else if(m+f >= 65)printf("B\n"); else if(m+f >= 50)printf("C\n"); else if(m+f >= 30){ if(r >= 50)printf("C\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371909/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371909/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS //#define _USE_MATH_DEFINES #include<stdio.h> //#include<stdlib.h> //#include<math.h> #include<string.h> //#include<time.h> //#define pi acos(-1.0) #define P(type,x) fprintf(stdout,"%"#type"\n",x) #define max(a,b) a>b?a:b int dp[1001][1001]; int main() { int w[1001], v[1001]; int i, j,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_371952/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_371952/source.c" target datalayout = "e-m:e-p270: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_unn...
#include<stdio.h> int main(){ int a[1001],b[1001],w,n,dp[1002][1002],i,j,c=1; for(i=0;i<1001;i++){ dp[0][i]=0; } while(1){ scanf("%d\n",&w); if(w==0){ break; } scanf("%d\n",&n); for(i=0;i<n;i++){ scanf("%d,%d\n",&a[i],&b[i]); } for(i=0;i<n;i++){ for(j=0;j<=w;j++){ if(j<b[i]){ dp[i+1][j]=dp[i][j]; } else{ if(dp[i][j]<dp...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372052/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372052/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main() { int m,d,s,r,a,b,p; scanf("%d %d",&m,&d); if(m==1 || m==3 || m==5 || m==7 || m==8 || m==10 || m==12) p=31; else if(m==2) p=28; else p=30; if(a%7==0) a=p/7; else a=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37211/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37211/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
/* Coached by rainboy */ #include <stdio.h> long long solve(int n, long long x) { long long k; k = (1LL << n - 1) + 3 * ((1LL << n - 1) - 1); if (n == 0) return 1; else if (x == 1) return 0; else if (x <= 1 + k) return solve(n - 1, x - 1); else if (x == 1 + k + 1) return (1LL << n) - 1 + 1; else if (x ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372175/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372175/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//set many funcs template //Ver.20180717 #include<stdio.h> #include<string.h> #include<stdlib.h> #include<stdbool.h> #include<time.h> #define inf 1072114514 #define llinf 4154118101919364364 #define mod 1000000007 #define pi 3.1415926535897932384 int max(int a,int b){if(a>b){return a;}return b;} int min(int a,int b){i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372225/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372225/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> #include<float.h> int main(void){ int k,n; double xa,ya,ra,xb,yb,rb; double d[4]; scanf("%d",&n); int ans[n]; for(k=1;k<=n;k++){ scanf("%lf %lf %lf %lf %lf %lf",&xa,&ya,&ra,&xb,&yb,&rb); d[0] = sqrt(pow(xb-xa,2.0) + pow(yb-ya,2.0)); d[1] = ra + rb; d[2] =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372276/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372276/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i, n; double xa, ya, ra, xb, yb, rb, rd; scanf ("%d", &n); for (i=0; i<n; i++){ scanf ("%lf%lf%lf%lf%lf%lf", &xa, &ya, &ra, &xb, &yb, &rb); rd = hypot (xa-xb, ya-yb); if (rd <= ra + rb){ if (rd+rb < ra) {printf ("%s\n", "2"); continue;} if (rd+ra < ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372333/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372333/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <math.h> #include <stdio.h> int rel_c_c( double x1, double y1, double r1, double x2, double y2, double r2 ) { double d = hypot( x1 - x2, y1 - y2 ); if ( d > r1 + r2 ) return 0; if ( fabs( r1 - r2 ) <= d && d <= r1 + r2 ) return 1; if ( d < fabs( r1 - r2 ) ) return r1 > r2 ? 2 : -2; } int main( void...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372384/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372384/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* Coached by rainboy */ #include <stdio.h> #include <stdlib.h> #define N 100000 #define L 30 int compare(const void *a, const void *b) { int ia = *(int *) a; int ib = *(int *) b; return ia - ib; } int length(int n) { return n == 0 ? 0 : length(n / 2) + 1; } int main() { static int aa[L + 1][N], kk[L + 1]; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372427/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372427/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.aa = internal global ...
#include <stdio.h> int main(void){ // Your code here! char s[3]; int res= 0,cnt = 0; scanf("%s",s); for (int i = 0; i < 3; i++){ if (s[i] == 'R'){ cnt++; } else{ if (cnt > res){ res = cnt; } cnt = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372478/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372478/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main (void) { char s[3]; int i, ans = 0; scanf("%s", s); if (!strcmp(s, "RRR")) printf("3\n"); else if (s[0] == 'R' && s[1] == 'R') printf("2\n"); else if (s[1] == 'R' && s[2] == 'R') printf("2\n"); else if (!strcmp(s, "SSS")) printf("0\n"); el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372528/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372528/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void main() { char S[256], T[256]; int i; scanf("%s", S); // 元の文字数より1文字多いかチェック if(strlen(S) != 3){ printf("NG\n"); return; } if(!strcmp(S, "SSS")){ printf("0\n"); }else if(!strcmp(S, "SSR")){ printf("1\n"); }else i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372571/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372571/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { char S[3]; int cnt = 0; int flag = 0; scanf("%s", S); for (int i = 0; S[i] ;i++) { if (S[i] == 'R' && flag == 0) { cnt = 1; flag = 1; } else if (S[i] == 'R' && flag == 1) { cnt++; } else { flag = 0; } } print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372621/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372621/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ char s[3]; int count = 0; scanf("%s", s); if(s[0]=='R'&&s[1]=='R'&&s[2]=='R'){ count = 3; } else if(s[0]=='R'&& s[1]=='R' && s[2]!='R'){ count = 2; } else if(s[0]=='R'&&s[1]!='R'&&s[2]=='R'){ count =1; } else if(s[0]=='R'&&s[1]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372665/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372665/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[5]; int ans; scanf("%s",a); if(strcmp(a,"RRR")==0){ ans=3; }else if(strcmp(a,"RRS")==0 || strcmp(a,"SRR")==0){ ans=2; }else if(strcmp(a,"RSS")==0 || strcmp(a,"SRS")==0 || strcmp(a,"SSR")==0 || strcmp(a,"RSR")==0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372708/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372708/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <float.h> #include <inttypes.h> #include <limits.h> #include <signal.h> #include <stdarg.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <math.h> #ifdef __cplusplus #include <bits/stdc++.h> #endif #pragma GCC ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372751/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372751/source.c" target datalayout = "e-m:e-p270: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._IO_FILE = type { i...
#include <stdio.h> int main(){ double xa1,ya1,xa2,ya2,xb1,yb1,xb2,yb2; while(scanf("%lf %lf %lf %lf %lf %lf %lf %lf",&xa1,&ya1,&xa2,&ya2,&xb1,&yb1,&xb2,&\ yb2)!=EOF){ if (xa2<xb1 || xb2<xa1 || ya2<yb1 || yb2<ya1) puts("NO"); else puts("YES"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372809/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372809/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define REP(i,a,b) for(i=a;i<b;i++) #define rep(i,n) REP(i,0,n) #define ll long long void unionInit(int d[],int s){int i;rep(i,s)d[i]=i;} int unionGet(int d[],int n){int t=n,k;while(d[t]!=t)t=d[t];while(d[n]!=n)k=d[n],d[n]=t,n=k;return n;} int u...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37286/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37286/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 argc,const char *argv[]){ int i,n,hanako_point=0,tarou_point=0,result; char hanako[101]={}; char tarou[101]={}; scanf("%d\n",&n); for(i=0;i<n;i++){ scanf("%s %s",tarou,hanako); result=strcmp(tarou,hanako); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372917/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372917/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, i; int taro_count = 0, hanako_count = 0; char taro[101], hanako[101]; scanf("%d", &n); for(i = 0; i < n;i++){ scanf("%s %s",taro, hanako); if(strcmp(taro, hanako) > 0){ taro_count += 3; }else if(strcmp(taro, hanako) < 0){ hanako_count +=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_372968/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_372968/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <inttypes.h> #include <string.h> #include <math.h> typedef uint64_t uint64; typedef uint32_t uint32; typedef int64_t int64; typedef int32_t int32; #define finc(i,a,b) for(int32 i=(a);i<=(b);i++) #define fdec(i,a,b) for(int32 i=(b);i>=(a);i--) #define in(i,b...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37301/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37301/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <stdbool.h> #include <stdio.h> #include <string.h> int main() { int h, w, x, y; bool isOK; char a[8][9], s[16][16]; scanf("%d%d", &h, &w); for (int i = 0; i < h; i++) { scanf("%s", a[i]); } for (int i = 0; i < 1 << (h + w); i++) { x = y = 0; isOK = true; memset(s, '.', sizeof(s)); s[y][x] = '#...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373053/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373053/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 count; scanf("%d %d\n",&h,&w); char p[h][w+1]; int i,j; for(i=0;i<=h;i++){ for(j=0;j<=w;j++){ char a; scanf("%c",&a); if(a=='#'){ count++;} } } if(count==h+w-1){ printf("Possible...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373097/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373097/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { unsigned int query,now; int i; scanf("%u",&query); now=1; for(i=0;now<query;i++)now*=3; printf("%d\n",i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373147/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373147/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a,b,k; int n = 0; int i; int y[100]={}; scanf("%d%d%d",&a,&b,&k); for(i=1;i<=100;i++){ if(a%i==0 && b%i==0){ y[n] = i; n++; } } printf("%d",y[n-k]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373190/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373190/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <limits.h> #include <math.h> int acs(const void *a, const void *b) { return *(int *)a - *(int *)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int *)b - *(int *)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373233/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373233/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a, b, k, i; int count = 0; int ans = 0; scanf("%d", &a); scanf("%d", &b); scanf("%d", &k); if(a >= b){ for(i = b; i > 0; i--){ if(a % i == 0 && b % i == 0){ count += 1; if(count == k){ ans = i; } } } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373277/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373277/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<math.h> int comparefunc (const void * a, const void * b) { return (*(char*)a)-(*(char*)b); } int main() { int x,det,t,i,j,k,m,n,x1,y1,x2,y2,a,b,c,d; scanf("%d", &t); while(t--){ scanf("%d", &x); if(x>45){ printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37332/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37332/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,k,cnt=0,ans=0,i; scanf("%d %d %d",&a,&b,&k); for(i=100;i>=1;i--){ if(a%i==0 && b%i==0){ cnt=cnt+1; ans=i; } if(cnt==k){ break; } } printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373363/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373363/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 gcd(int x, int y); // 最大公約数を求める関数 int main() { int x, y, K; int gcd_num; int A[100]; int j = 0; scanf("%d", &x); scanf("%d", &y); scanf("%d", &K); gcd_num = gcd(x, y); for(int i = 1; i <= gcd_num; i++){ if( gcd_num % i == 0){ A[j] = i; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373406/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373406/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 test = 0; scanf("%d",&test); for(int z = 0; z < test; z++) { int n = 0; scanf("%d",&n); int arr[n]; for(int i = 0; i<n;i++) scanf("%d",&arr[i]); int left=0,right=n-1; while(right >= left) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37345/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37345/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 int int64; typedef struct indexVal{ int64 val; int index; } node; typedef node dequeval; typedef struct deque { dequeval *array; size_t front; size_t last; size_t mask; } deque; deque* newDeque(void){ const int len=2; deque *d=(deque *)calloc(l...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373493/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373493/source.c" target datalayout = "e-m:e-p270: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.deque = type { ptr,...
#include <stdio.h> #define mod 1000000007; long long nikou(int n, int r); long long c[2001][2001]; int done[2001][2001]={}; int main(void){ int i, j; int n,k; long long b_wake; long long r_wake; long long ans; scanf("%d %d", &n,&k); for(i=1; i<=k; i++){ ans=0; b_wake=0; r_wake=0; if(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373536/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @done = dso_local local_unn...
#include <stdio.h> #include <math.h> int main(void) { int T,n; int x[9]; scanf("%d",&T); for(int t=0; t<T;t++ ) { int b=9 ; scanf("%d",&n); if(n>45) printf("-1"); else { while(n>0) { if(n>b) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37358/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37358/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #define int long long int f(int N){ int ans = 0; while(1){ ans ^= N; if(N % 4 == 0){ return ans; } N--; } } signed main(){ int A, B; scanf("%lld%lld", &A, &B); printf("%lld\n", f(A) ^ f(B) ^ A); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373622/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> char a[4001],b[4001]; int dp[4001][4001]={0}; int main(){ int i,j,n,x,y; while(scanf("%s %s",a,b)!=EOF){ n=0; memset(dp,0,sizeof(dp)); x=strlen(a); y=strlen(b); for(i=1;i<=x;i++){ for(j=1;j<=y;j++){ if(a[i-1]==b[j-1])dp[i][j]=dp[i-1][j-1]+1; else dp[i][j]=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373688/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373688/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @dp = dso_local local_unnam...
#include <stdio.h> int judge(char snake[256]){ int count1, count2, i; if(snake[0] == '>' && snake[1] == '\''){ count1 = count2 = 0; for(i = 2; snake[i] == '='; ++i) count1++; if(snake[i++] == '#'){ for(; snake[i] == '='; ++i) count2++; if(snake[i] == '~' && count1 == count2 && count1 && cou...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373752/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; for(a=1;a<10;a++) for(b=1;b<10;b++) { printf("%dx%d=%d",a,b,a*b); printf("\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373796/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373796/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int x; int y; for (x = 1; x < 10; x++){ for (y = 1; y < 10; y++){ printf("%dx%d=%d\n", x, y, x * y); } } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373839/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373839/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdbool.h> int main(void) { int testCases; scanf("%d", &testCases); while(testCases > 0) { int n; scanf("%d", &n); char s[n]; scanf("%s", s); bool flag = false; if (s[0] == '2' && s[1] == '0' && s[2] == '2' && s[3] == '0') ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37389/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37389/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 i,j; int main(void) { for (i=1;i<=9;i++) { for (j=1;j<=9;j++) printf("%dx%d=%d\n",i,j,i*j); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373947/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373947/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @i = dso_local local_unname...
#include<stdio.h> int main(){ int a,i,n; for (i=1;i<=9;i++){ for(n=1;n<=9;n++){ a = i*n; printf("%dx%d=%d\n",i,n,a); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_373990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_373990/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[301]; int b[301]; int main() { int t; scanf("%d", &t); while (t--) { int i, n, m, j = 1; scanf("%d", &n); m = n; for (i = 1; i <= n; i++) scanf("%d", &a[i]); for (i = 1; i <= n; i++) { if (i % 2 == 1) { b[i] = a[j]; j++; } if (i % 2 == 0) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37404/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37404/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void) { int i, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374083/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374083/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int j; for (i = 1; i <= 9; i++){ for ( j = 1; j <= 9; j++){ printf("%dx%d=%d\n", i, j, i * j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374126/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374126/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i; int t; int n; int C, S; int s; int r; int R; scanf("%d", &n); for (i = 0; i < n; i++) { scanf("%d %d", &C, &S); s = S / C; R = 0; r = S % C; for (t = 0; t < C - r; t++) { R += s * s; } s++; for (t = 0; t < r; t++) { R += s * s; } printf("%d\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37417/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37417/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,j=0; for(i = 1;i<10;i++) { for(j=1;j<10;j++) { printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374212/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374212/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) { printf("%dx%d=%d\n",i,j, (i*j)); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374256/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374256/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main () { long long int t,a,b,v,c,i,j,v5,v2,v1; scanf("%lld",&t); for (j=0;j<t;j++) { scanf("%lld %lld",&a,&b); c=0; v=fabs(a-b); v5=v/5; c=c+v5; v2=(v-5*v5)/2; c=c+v2; v1=(v-5*v5-2*v2); c=c+v1; printf("%lld\n",c); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3743/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3743/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, j, ans; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { ans = i*j; printf("%dx%d=%d\n",i,j,ans); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374342/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374342/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374386/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374386/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a, b, c; for(a=1;a<10;a++){ for(b=1;b<10;b++){ c = a * b; printf("%dx%d=%d\n", a, b, c); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374429/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374429/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; for(i=1; i<10; i++){ for(j=1; j<10; j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374472/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374472/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374515/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374515/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int i=0, j=0; for (i = 1; i <= 9; i++) { for (j = 1; j <= 9; j++) printf("%dx%d=%d\n", i, j, i*j); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374559/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374559/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i; int j; for (i = 1; i <= 9; i++){ for (j = 1; j <= 9; j++){ printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374601/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374601/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i, j; for(i = 1; i < 10; i ++){ for(j = 1; j < 10; j ++){ printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374645/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374645/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int i, j; for (i = 1; i <= 9; i++) for (j = 1; j <= 9; j++) printf("%dx%d=%d\n", i, j, i*j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374689/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374689/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int x,y,z; for (x=1;x<=9;x++){ for (y = 1; y<=9; y++) printf("%dx%d=%d\n", x, y, z=x*y); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374731/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374731/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i, j; for(i=1; i<=9;i++) { for(j=1; j<=9;j++) { printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374797/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(){ int n; int c,s; int i,j; int result; int first,second; int f_num,s_num; scanf("%d",&n); for(i=0;i<n;i++){ result=0; scanf("%d %d",&c,&s); if(c<s){ if(s%c==0){ first=s/c; for(j=0;j<c;j++) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37484/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37484/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void) { int i, j; for (i = 1; i < 10; i++){ for (j = 1; j < 10; j++){ printf("%dx%d=%d\n", i, j, j * i); } } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_374890/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_374890/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; for(i=1;i<10;i++) { for(j=1;j<10;j++) { printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; for (i = 1; i <= 9; i++ ) { for ( j = 1; j <= 9; j++) { printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c,a=1,b=1; for(a=1;a<10;a++){ for(b=1;b<10;b++){ c=a*b; printf("%dx%d=%d\n",a,b,c); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375156/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375156/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { int t; scanf("%d",&t); for(int i=0;i<t;i++) { int a,b,count=0; scanf("%d %d",&a,&b); if(a>b) { int s=a; a=b; b=s; } count=(b-a)/5; b=b-count*5; if((b-a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3752/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, n, result; for (i = 1; i <= 9; i++) { for (n = 1; n <= 9; n++) { result = i * n; printf("%dx%d=%d\n", i, n, result); }; }; return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375242/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375242/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dx%d=%d\n",i,j,i*j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375293/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375293/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375394/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375394/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; for(i=1;i<10;i++){ for(j=1;j<10;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375437/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375437/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++) for(j=1;j<=9;j++) printf("%dx%d=%d\n",i,j,i*j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375480/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375480/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s; for(i = 1;i <= 9;i++ ){ for(j = 1;j <= 9;j++){ s = j * i; printf("%dx%d=%d\n",i,j,s); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375552/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375552/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j; for(i=1;i<10;i++) for(j=1;j<10;j++) { printf("%dx%d=%d\n",i,j,i*j); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375596/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375639/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375639/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j; for(i=1;i<=9;i++){ for(j=1;j<=9;j++){ printf("%dx%d=%d\n",i,j,i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375682/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375682/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { long long int x, y, p, q, l, a, b, ans; int t; scanf("%d", &t); while(t--) { scanf("%lld %lld %lld %lld", &x, &y, &p, &q); a = 0; b = 1000000000000000000/q; ans = -1; while (a <= b && p < q && p > 0) { l = a + (b - a)/2; if(p*l >= x && q*l >= y) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37574/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37574/source.c" target datalayout = "e-m:e-p270:32:32-p271: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, j; for (i = 1; i < 10; i++) { for (j = 1; j < 10; j++) { printf("%dx%d=%d\n", i, j, i*j); } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375783/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375783/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int i,j; for(i=1;i<10;i++)for(j=1;j<10;j++)printf("%dx%d=%d\n",i,j,i*j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375826/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375826/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> int main() { int p,x,y,t,i,j=0,flag=0; scanf("%d %d %d",&p,&x,&y); while((x-50*j)>=y){ t=((x-50*j)/50)%475; for(i=0;i<25;i++){ t=((t*96+42)%475); if(p==t+26){ printf("0"); return 0; } } j++; } for(j=0;j<=20000;j++){ t=((x+50*j)/50)%475; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_37587/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_37587/source.c" target datalayout = "e-m:e-p270:32:32-p271: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=15; scanf("%d%d",&a,&b); if(a+b==c){ printf("+\n"); } else if(a*b==c){ printf("*\n"); } else printf("x\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375912/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375912/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) == 15) { printf("+\n"); } else if((a*b) == 15) { printf("*\n"); } else { printf("x\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_375963/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_375963/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==15) printf("+"); else if(a*b==15) printf("*"); else printf("x"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_376005/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_376005/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ long X,K,D;//初期、回数、移動 scanf("%ld %ld %ld",&X,&K,&D); long Q; if(X<0){ X*=-1; } Q=X/D;//チェックポイント //printf("%d\n",Q); if(K<=Q){ printf("%ld\n",(X-K*D)); }else{ K-=Q; //printf("%d\n",K); if(K%2==0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_376056/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_376056/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main() { long long int n,a,b,i,s,j=0; scanf("%I64d",&n); for(i=0;i<n;i++) { j=0; scanf("%I64d %I64d",&a,&b); if(a==b) { printf("0"); } else { s=abs(a-b); j=j+(s/5); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3761/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3761/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a,b; scanf("%d %d",&a,&b); printf("%d\n",(a-1)*(b-1)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_376157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_376157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", &a, &b); printf("%d\n", (a-1)*(b-1)); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_376207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_376207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> int main(){ int H,W; scanf("%d %d",&H,&W); long area = H * W; long road = H + W - 1; long ans = area - road; printf("%ld\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_376250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_376250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX(p,q) ((p>q)?(p):(q)) #define MIN(p,q) ((p<q)?(p):(q)) #define REP(i,n) for(i=0;i<n;i++) int main(void) { int a,b; scanf("%d%d",&a,&b); printf("%d",(a-1)*(b-1)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_376294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_376294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int A,B; scanf("%d%d",&A,&B); printf("%d",(A-1)*(B-1)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_376344/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_376344/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...