Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main(void) { char c; while(scanf("%c",&c)) { if(c==10) break; if(c>=97&&c<=122) printf("%c",c-32); else printf("%c",c); } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271390/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271390/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cap[1001]; int i, strl; scanf("%[^\n]",cap); strl = strlen(cap); for(i=0;i<=strl;++i){ if(cap[i]<='z' && cap[i]>='a'){ cap[i] = cap[i]-0x20; } } printf("%s\n",cap); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271462/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271462/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 t[150001]; int awaken[150001]; int main() { int n, k, q; scanf("%d %d %d", &n, &k, &q); int i, j; for(i = 1; i <= n; i++) { scanf("%d", &t[i]); awaken[i] = 0; //printf("? %d\n", t[i]); } t[0] = -1; if(k > 6) { k = 6; } int window[6]; int min_in_window = -1; for(i = 0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27152/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27152/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main(void){ int i; char str[1000]; for(i = 0 ;; i ++){ str[i] = getchar(); if(str[i] == '\n'){ str[i] = '\0'; break; } } for(i = 0;;i ++){ if(str[i] >= 'a' && str[i] <= 'z'){ str[i] -= 32; } if(str[i + 1] == '\0'){ break; } } printf("%s\n",str); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271592/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271592/source.c" target datalayout = "e-m:e-p270: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> #include<stdlib.h> void run(void){ int n; scanf("%d",&n); int *dp=(int *)calloc(n+1,sizeof(int)); int i; for(i=1;i<=n;i++) dp[i]=1000000000+1; dp[0]=-1; int len=1; while(n--){ int a; scanf("%d",&a); int l=0; int r=len; while(r-l>1){ int m=(l+r)/2; if(dp...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271635/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271635/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #define lli long long int #define min(a,b) ((a)<(b)?(a):(b)) #define max(a,b) ((a)>(b)?(a):(b)) #define abs(a) ((a)<0?-(a):(a)) int main(void){ /* === input paramater === */ int n; int *a; /* === operate paramater === */ int i; int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271679/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271679/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,card[4][13] = {}, j, k; char str; scanf("%d", &i); k = 0; while(1){ scanf("%c %d", &str, &j); if(str == 'S'){ card[0][j-1] = 1; k++; }else if(str == 'H'){ card[1][j-1] = 1; k++; }else if(str == 'C'){ card[2][j-1] = 1; k++; }else if(str == 'D'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271729/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271729/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,i,j; int card[4][13]={{},{}}; int key,num; char mark; scanf("%d",&n); for(i=0;i<n;i++){ scanf(" %c %d",&mark,&num); if(mark=='S')key=0; if(mark=='H')key=1; if(mark=='C')key=2; if(mark=='D')key=3; card[key][num-1]++; } for(i=0;i<4;i++){ if(i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271772/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271772/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,x,cards[4][13]; char ch,suit[]="SHCD"; scanf("%d",&n); for(i=0;i<4;i++){ for(j=0;j<13;j++){ cards[i][j]=0; } } for(i=0;i<n;i++){ scanf("%*c%c %d",&ch,&x); for(j=0;j<4;j++){ if(suit[j]==ch){ cards[j][x-1]=1; break; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271815/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271815/source.c" target datalayout = "e-m:e-p270: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.suit = privat...
#include <stdio.h> int main() { int num; char suit; int i, j; int n; int s[13]={0}, h[13]={0}, c[13]={0}, d[13]={0}; scanf("%d", &n); for(i=0;i<n*2;i++){ scanf("%c %d", &suit, &num); if(suit=='S') s[num-1]=1; if(suit=='H') h[num-1]=1; if(suit=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_271866/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_271866/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 card(int n); char red[1005] = { 0, }; char blue[1005] = { 0, }; int main() { int T; scanf("%d", &T); int n; while (T--) { scanf("%d", &n); scanf("%s", &red); scanf("%s", &blue); card(n); } return 0; } int card(int n) { int equal = 0; for (int i = 0; i < n; i++) { if (red...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27196/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27196/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @red = dso_local global [1005...
#include <stdio.h> int main() { int i, H, W; char s[102][102]; scanf("%d %d", &H, &W); for (i = 1; i <= H; i++) scanf("%s", &(s[i][1])); int j, dist[102][102] = {}, tmp[2]; if (s[1][1] == '#') dist[1][1] = 1; for (i = 2; i <= H; i++) dist[i][1] = (s[i][1] == s[i-1][1])? dist[i-1][1]: dist[i-1][1] + 1; for (j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272528/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272528/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i,j,max,r,a[10000],t; while(scanf("%d %d",&n,&m),n||m){ for(i=0;i<n;i++){ scanf("%d",&a[i]); } for(i=j=r=max=0;i<m;i++){ scanf("%d",&t); for(;a[j]<t&&j<n;j++){ if(a[j]-r>max)max=a[j]-r; r=a[j]; } if(t-r>max)max=t-r; r=t; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272571/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272571/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int a, b, c, d, e, f, g, h, i, j; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); scanf("%d", &e); scanf("%d", &f); scanf("%d", &g); scanf("%d", &h); scanf("%d", &i); scanf("%d", &j); printf("%d\n", a+b+c+d+e+f+g+h+i+j); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272621/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272621/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1,s2,s3,s4,s5,s6,s7,s8,s9,s10; int sum; scanf("%d %d %d %d %d %d %d %d %d %d",&s1,&s2,&s3,&s4,&s5,&s6,&s7,&s8,&s9,&s10); sum=s1+s2+s3+s4+s5+s6+s7+s8+s9+s10; printf("%d\n",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272665/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272665/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, m, i; scanf("%d%d", &n, &m); char a[n], b[m]; scanf("%s%s", a, b); if(((a[0]=='<')&&(b[0]=='^'))||((a[0]=='>')&&(b[m-1]=='^'))||(a[n-1]=='<'&&b[0]=='v')||(a[n-1]=='>'&&b[m-1]=='v')){ printf("NO"); }else{ printf("YES"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27273/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef long long ll; typedef int keytype; void quicksort(keytype a[], int first, int last) { int i, j; keytype x, t; x = a[(first + last) / 2]; i = first; j = last; for ( ; ; ) { while (a[i] < x) i++; while (x < a[j]) j-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272773/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272773/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 main(void) { int n, d, x, a[100], ans = 0; scanf("%d %d", &n, &d); scanf("%d", &x); for (int i = 0; i < n; i++) { scanf("%d", &a[i]); } for (int i = 0; i < n; i++) { ans += (d + a[i] - 1) / a[i]; } printf("%d\n", ans + x); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272816/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272816/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 nop,i,que,rem; scanf("%d",&nop); if(nop<5) { printf("+"); for(i=0;i<24;i++) { printf("-"); } printf("+"); printf("\n"); printf("|"); if(nop>0) { printf("O."); for(i=0;i<10;i++) { printf("#"); printf("."); } printf("|D|)\n"); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27286/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27286/source.c" target datalayout = "e-m:e-p270:32:32-p271: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){ static int n,d,x ; scanf ("%d%d%d",&n,&d,&x) ; for (int i=0; i<n; i++){ int a[i] ; scanf ("%d",&a[i]) ; x += ((d-1)/a[i])+1 ; } printf ("%d\n",x) ; return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272902/source.c" target datalayout = "e-m:e-p270: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.n = internal global i...
#include <stdio.h> int main(void){ int N,D,X,i,j,Y; scanf("%d",&N); scanf("%d %d",&D,&X); int A[N]; for(i=1;i<=N;i++){ scanf("%d",&A[i]); } Y = 0; for(i=1;i<=N;i++){ for(j=1;j<=D;j++){ if((j-1)%A[i] == 0){ Y ++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272953/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272953/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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<string.h> #include<stdlib.h> #include<math.h> //for #define REP(i,n) for(int i=0,i##_len=(int)(n);i<i##_len;i++) #define REPS(i,n) for(int i=1,i##_len=(int)(n);i<=i##_len;i++) #define RREP(i,n) for(int i=(int)(n)-1;i>=0;i--) #define RREPS(i,n) for(int i=(int)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_272997/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_272997/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @diff = dso_local local_unn...
#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 200000 int upchar(const void* left, const void* right){ return strcmp( (char*)left, (char*)right ); } void main(){ int n, cnt=1; char s[N][11]; scanf("%d",&n); for(int i=0; i<n; i++) scanf("%s",&s[i]); qsort(s, n, sizeof(char)*11, upc...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273082/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> static int compareFunction(const void *lhs, const void *rhs) { // 昇順(char) return strcmp(lhs, rhs); } int main() { int amount; scanf("%d", &amount); char kind[amount][11]; for (int i = 0; i < amount; i += 1) { scanf("%s", *(kind + i)); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273147/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273147/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 tsort long #define smaxn 200000 //最大要素数 #define smxbit 50 //要素のうち最大の数値のビット数 #define snobit 17 //1-smxbitの間で調整、増やせば速いがメモリを消費する #define rev 1 //0で昇順、1で降順 #define snosc (1<<(snobit+1)) int sort(tsort *vlist,int *plist,int n){ int h,i,j,k,l,m,s,p,qlist[smaxn],c[snosc][3],ss; #if rev ss=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273204/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273204/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,g,b; scanf("%d %d %d",&r,&g,&b); if((g*10+b)%4==0) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273248/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273248/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, g, b, x; scanf("%d %d %d", &r, &g, &b); x = g * 10 + b; if (x % 4 == 0) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273291/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273291/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r, g, b, ans; scanf("%d %d %d", &r, &g, &b); ans = 100*r + 10*g + b; if(ans % 4) printf("NO\n"); else printf("YES\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273334/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273334/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int a,b,c; scanf("%d%d%d",&a,&b,&c); a = a*100+b*10+c; if(a%4 == 0) printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273378/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273378/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if((100*a+10*b+c)%4==0){ printf("YES"); }else{ printf("NO"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273428/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273428/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,g,b; scanf("%d%d%d",&r,&g,&b); if((100*r+10*g+b)%4==0)printf("YES\n"); else printf("NO\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273471/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273471/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 <stdlib.h> #include <string.h> #define MAX_INPUT_LEN ( 1000 ) char str[MAX_INPUT_LEN + 1] = ""; int main() { int red = 0; int green = 0; int blue = 0; int num = 0; /* Get input data */ scanf("%d %d %d", &red, &green, &blue); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273514/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273514/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @str = dso_local local_unna...
#include <stdio.h> #include <stdlib.h> int main(void){ //int r,g,b; char r,g,b; char str[4]; scanf("%c %c %c", &r,&g,&b); //printf("%c", (char)r); str[0]=r; str[1]=g; str[2]=b; //printf("%s\n", str); if((atoi(str))%4==0){ printf("YES\n"); }else{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273565/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273565/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <limits.h> #include <stdbool.h> #define rep(i, n) for(int i=0; i<(n); ++i) #define max 200001 //qsort(str, n, sizeof(int), up_comp); int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;} int down_comp(const void *a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273622/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <string.h> /*以下便利なマクロを定義する。*/ #define rep(i, min, max) for(i=min; i<=max; i=i+1) #define if_forall(i, min, max, prop)\ \ rep(i, min, max)\ {\ if(!(prop))\ {\ break;\ }\ }\ \ if(i==max+1)\ #define if_exists(i, m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273666/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<string.h> #include<math.h> #include<limits.h> int max(int a, int b){ return a >= b ? a : b; } int min(int a, int b){ return b >= a ? a : b; } int sei(int a){ return a>0 ? a : 0; } int factorial(int n) { if (n > 0) return n*factorial(n - 1); else return 1; } int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273709/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 A[300002]; int B[300002]; int FT[300002]; int P[300002]; int M[300002]; void U(int v, int p, int n) { while (p <= n) { if (v < FT[p]) { FT[p] = v; } else { break; } p += p & -p; } } int Q(int p) { int r = 1000000001; while (p) { if (FT[p] < r) { r = FT[p]; } p...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27376/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27376/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @FT = dso_local local_unnamed...
#include <stdio.h> #include <string.h> #include <stdlib.h> typedef long long ll; typedef char keytype; int gcd(int a, int b){ return (a % b) ? gcd(b, a % b) : b;} int lcm(int a, int b){ return (a / gcd(a, b)) * b;} /* a[0], ..., a[n-1] の数の最大公約数 */ int ngcd(int n, int a[]) { int i, d; d = a[0]; for (i = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273824/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273824/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @inf = dso_local local_unna...
#include<stdio.h> int main(void){ int l,i,j,sum=0,ban; scanf("%d",&l); int num[3+1][l+1]; for(i=1;i<=3;i++){ for(j=1;j<=l;j++){ scanf("%d",&num[i][j]); if(i==3&&j==l-1){ break; } } } for(i=1;i<=l;i++){ ban=num[1][i]; sum+=num[2][ban]; if(num[1][i]+1==num[1][i+1]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273868/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273868/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,A[20],B[20],C[20]; scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &A[i]); } for (int i = 0; i < N; i++) { scanf("%d", &B[i]); } for (int i = 0; i < N - 1; i++) { scanf("%d", &C[i]); } int sum = 0; for (int i = 0; i < N; i++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273910/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273910/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[20]; int b[50]; int c[50]; int sum = 0; scanf("%d", &n); for (int k = 0; k < n; k++) { scanf("%d", &a[k]); } for (int k = 0; k < n; k++) { scanf("%d", &b[k]); } for (int k = 0; k < n-1; k++) { scanf(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273954/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273954/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/*2019/08/25 */ #include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #define MOD 1000000007 #define MIN 999999999 #define MAX -999999999 typedef long long int ll; typedef unsigned long long int ull; void llswap(ll *x,ll *y){ll temp;temp=*x;*x=*y;*y=temp;} void swap(int *x,int *y){int tmp;tmp=*x;*x=*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_273998/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_273998/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int n; scanf("%d", &n); int a[n]; int b[n]; int c[n-1]; for(int i = 0; i < n; i++) { scanf("%d", &a[i]); a[i]--; } for(int i = 0; i < n; i++) { scanf("%d", &b[i]); } for(int i = 0; i < n - 1; i++) { scanf("%d", &c[i]); } int satisfied = b[a[0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274047/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274047/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int n; scanf("%d",&n); int a[n],b[n],c[n-1]; for(int d=0;d<n;d++){scanf("%d",&a[d]);} for(int e=0;e<n;e++){scanf("%d",&b[e]);} for(int f=0;f<n-1;f++){scanf("%d",&c[f]);} int ans; ans=0; for(int i=0;i<n;i++){ ans+=b[a[i]-1]; if(a[i]+1==a[...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274090/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274090/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ int n; scanf("%d", &n); int a[n], b[n], c[n]; int i; for(i=0;i<n;i++){ scanf("%d", &a[i]); } for(i=0;i<n;i++){ scanf("%d", &b[i]); } for(i=0;i<n-1;i++){ scanf("%d", &c[i]); } int ans = 0; int pre = n; for(i=0;i<n;i++){ ans += b[a[i] - 1]; if (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274133/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 in[100001]; int m[100001][2]; int main() { int n,k,i,j,t; char c; for(;;){ scanf("%d%d",&n,&k); if(n == 0 && k == 0) break; memset(in,-1,sizeof(in)); memset(m,0,sizeof(m)); for(i=0;i<k;i++){ scanf("%d",&j); in[j] = 1; } c = in[1];...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274177/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,n,sum;while(scanf("%d %d %d",&a,&b,&n)!=EOF){a%=b;sum=0;for(;n;n--){a*=10;sum+=a/b;a%=b;}printf("%d\n",sum);}return 0;}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274234/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274234/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> typedef struct SRunner runner; struct SRunner{ int id; double time; int elected; }; int main( void ){ int i, j, counter; runner r[ 3 ][ 8 ]; runner *first, *second; // input for( i = 0; i < 3; i++ ){ for( j = 0; j < 8; j++ ){ scanf( "%d%lf", &r[ i ][ j ].id, &r[ i ][ j ].time ); r...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274292/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274292/source.c" target datalayout = "e-m:e-p270: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.SRunner = type { i3...
#include<stdio.h> int main(void){ int a; int n; int i; int s,f; int sum = 0; int t; while(scanf("%d",&a)){ if(a == 0){ break; } scanf("%d",&n); for(i = 0;i < n;i++){ scanf("%d %d",&s,&t); sum = sum + t - s; } if(sum >= a){ printf("OK\n"); } else{ printf("%d\n",a - sum); } sum =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274335/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274335/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t, n, s, f, total; /* 1行目 1日の目標時間t(整数) 2行目 勉強の回数 n(整数) 3行目 第1の勉強の開始時刻s 終了時刻f(整数 整数;半角空白区切り) : n+2行目 第nの勉強の開始時刻s 終了時刻f */ while(scanf("%d\n", &t)==1) { if(!t) break; total = 0; scanf("%d\n", &n); for(i=0;i<n;i++) { scanf("%d %d\n", &s, &f); total = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274379/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274379/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main(void){ long int x, count, sum; count = 0; sum = 100; scanf("%ld",&x); while(1){ sum += sum/100; count++; if(sum >= x){ printf("%ld",count); break; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274421/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274421/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, y=100; int i=0; scanf("%ld", &x); do{ i++; y = y * 1.01; } while(x > y); printf("%d\n", i); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274472/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274472/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%ld",&x); long i; i = 100; long counter; counter = 0; while (x > i) { i += i/100; counter++; } printf("%ld",counter); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274522/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274522/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; long int x,n=100; scanf("%ld",&x); while(1){ n=n*1.01; i++; if(n>=x){ printf("%d",i); return 0; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274573/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274573/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { unsigned long level_deposit, deposit = 100; short output_year = 0; scanf("%ld", &level_deposit); if (level_deposit < 101 || level_deposit > 1000000000000000000) { return 1; } while(deposit < level_deposit) { deposit = deposit + deposit / 100; output_year += 1;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274616/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274616/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
/* 20160719 JJA Codeforces Round 363 Div.2 */ #define _CRT_SECURE_NO_WARNINGS #define INT_MAX 2000000000 #include <stdio.h> #include <stdlib.h> int main() { int n; int *arr; int *p; int min=INT_MAX; int tmp; int is=0; scanf("%d", &n); arr = (int*)malloc(sizeof(int)*n); p = (int*)malloc(sizeof(int)*n); getch...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27466/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27466/source.c" target datalayout = "e-m:e-p270:32:32-p271: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){ unsigned long long x; scanf("%lld",&x); unsigned long long s = 100; int count = 0; while(s < x){ unsigned long long temp = s; s = temp*1.01; count ++; } printf("%d",count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274702/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x; scanf("%lld",&x); long long a=100; int c=0; while(1){if(a>=x){ printf("%d",c); return 0;} c++; a+=a/100; // printf("%d %d\n",c,a); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274746/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274746/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 X, n, a, i; scanf("%lld", &X); n=100; i=0; while (1) { a=n/100; n+=a; i++; if (n>=X) break; } printf("%lld", i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274797/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274797/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rev(int n) { int out; //printf("(%d ", n); out = 0; while (n > 0){ out = out * 10 + (n % 10); n /= 10; } //printf("%d)", out); return (out); } int main(void) { int n; int i; scanf("%d", &n); i = 0; while (1){ if (n - i >= 0){ if (rev(n - i) == n - i){ print...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274883/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274883/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> void quicksort(int s,int e,int* array){ int i,j,k; i=s-1; j=e; while(i<j){ while(++i<e&&array[i]<array[e]); while(--j>=s&&array[j]>=array[e]); if(i<j){ array[i]+=array[j]; array[j]=array[i]-array[j]; array[i]-=array[j]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274940/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274940/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 comp(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main() { int i, n[1000000 + 1], num; scanf("%d", &num); for (i = 0;i < num;i++) scanf("%d", &n[i]); qsort(n, num, sizeof(int), comp); for (i = 0;i < num;i++) { printf("%d", n[i]); if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_274991/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_274991/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #define N ((int)1e6) int d[N]; inline int swap(int *a, int *b) { int t = *a; *a = *b; *b = t; return (1); } void comb_sort(int *ary, int n) { int ok, i, h = n; for (ok = 0; (h > 1 ? h = h * 10 / 13, 1 : 0) || ok; ) for (ok = i = 0; i < n - h; i++) if (ary[i] > ary[i + h]) ok = swap(ary + i, ary...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275033/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275033/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 quicksort( int x[], int left, int right ) { int i, j, pivot, temp; i = left; j = right; pivot = x[(left+right)/2]; while (1) { while ( x[i] < pivot ) { i++; } while ( pivot < x[j] ) { j--; } if ( i >= j ) { break; } temp = x[i]; x[i] = x[j]; x[j] = temp; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275077/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275077/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[51]="qwertyuiop"; char b[51]="asdfghjkl;"; char c[51]="zxcvbnm,./"; char e[411]; int main() { int le,i,j,pd; char d,o; scanf("%c",&d); scanf("\n"); scanf("%s",e); le=strlen(e); for(i=0;i<le;i++) { o=e[i]; pd=0; for(j=0;j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27512/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27512/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @a = dso_local local_unnamed_...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int acs(const void *a, const void *b) { return *(int*)a - *(int*)b; } /* 1,2,3,4.. */ int des(const void *a, const void *b) { return *(int*)b - *(int*)a; } /* 8,7,6,5.. */ int cmp_char(const void *a, const void *b) { return *(char*)a -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275163/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 rev(int n) { int r = 0; while (n > 0) { r = r * 10 + n % 10; n /= 10; } return r; } int pal(int n) { return n == rev(n); } int main() { int a, b, n, cnt; scanf("%d%d", &a, &b); cnt = 0; for (n = a; n <= b; n++) if (pal(n)) cnt++; printf("%d\n", cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275206/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275206/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a[1000000],cs[1000000],q[1000000]; int main() { int i,n,m,pos,j,sum=0,k; cs[0]=1; scanf("%d", &n); for(i=1;i<=n;i++) { scanf("%d", &a[i]); sum+=a[i]; } for(i=1,j=1,k=1;i<=sum;i++,j++) { cs[i]=k; if(j==a[k]) { k++;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27525/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27525/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @cs = dso_local local_unnamed...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int compare_int(const void *a, const void *b) { return *(int*)a - *(int*)b; } int main() { int A,B; int i; int number; char s[10]; int cnt=0; // int k=0; scanf("%d", &A); scanf("%d", &B); for(i=0;i<=B-A;i++){...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275293/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275293/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, h; int cnt = 1; scanf("%d", &n); scanf("%d", &h); int hmax = h; for (int i = 1; i < n; i++) { scanf("%d", &h); if (hmax <= h) { cnt += 1; hmax = h; } } printf("%d", cnt); return 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275336/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275336/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; do { scanf("%d", &N); } while (N < 1 || N > 20); int H[N]; for (int i = 0; i < N; i++) { do { scanf("%d", &H[i]); } while (H[i] < 1 || H[i] > 100); } int m; int n = 1; for (int i = 1; i < N; i++) { m = 0; for (int j = i - 1; j >=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275422/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275422/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#if 0 cat <<EOF >mistaken-paste #endif // thx Ebi-chan! #pragma GCC diagnostic ignored "-Wincompatible-pointer-types" #define _USE_MATH_DEFINES #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> #include <time.h> #define BIG 2000000007 #define VERYBI...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275466/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275466/source.c" target datalayout = "e-m:e-p270: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.hwll = type { i64, ...
#include <stdio.h> int main(void) { int N=0; int i=0; int max=0; int ans=1; scanf("%d", &N); int H[100]; for(i = 0; i < N; i++){ scanf("%d", &H[i]); } max = H[0]; for(i = 1; i < N; i++){ if(max <= H[i]){ ans++; max = H[i]; } } printf("%d\n", ans); ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275516/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275516/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int N; int H[101]; int ans = 1; scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &H[i]); } for (int j = 1; j < N; j++) { for (int k = 0; k < j; k++) { if (H[k] > H[j]) { break; } if...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275602/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275602/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,j,result = 1; int H[20]; scanf("%d",&N); for(i = 0;i < N;i++){ scanf("%d",&H[i]); } for(i = 1;i < N;i++){ for(j = 0;j < i;j++){ if(H[j] > H[i]){ goto loop; } } result++; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275653/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275653/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x,x2,a,i,count; a = count = 0; scanf("%d\n",&x); for (i = 0; i < x; i++){ scanf("%d\n",&x2); if (a == 0){ a = x2; } if (a <= x2){ count++; a = x2; } } printf("%d...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275697/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void solve(int w,int h); int main(void){ int w,h; while(scanf("%d%d",&w,&h) && w && h){ solve(w,h); } return 0; } void solve(int w,int h){ unsigned short map[52][52]; struct q{ short ii,jj; }next[2500]; int i,j,k,di,dj; int q_num,island; bool flg=true...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275783/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275783/source.c" target datalayout = "e-m:e-p270: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.q = type { i16, i16...
#include <stdio.h> #include <string.h> #include <stdlib.h> #define ROW_MAX 50 #define COL_MAX 50 #define BUF_SIZE 130 int get_int2(int *a1, int *a2) { #ifdef BUF_SIZE char line[BUF_SIZE]; if(!fgets(line, BUF_SIZE, stdin)) return -1; sscanf(line, "%d %d", a1, a2); #else #error #endif return 0; } // <arr[0]> <...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275862/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275862/source.c" target datalayout = "e-m:e-p270: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.point2d = type { i3...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #define MAX 50 int main(void){ int input[MAX]; int i,j; double x1,x2; for(i=0;i<50;i++){ scanf("%d",&input[i]); if(input[i]==-1){ break; } } for(j=0;j<i;j++){ x1=(doubl...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275905/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> typedef struct town { char name; struct town *zero; struct town *ichi; }town; void make_map(void); town a, x, y, z, w, b, n; int main(void) { char input[101]; int i; town *now; make_map(); scanf("%s",input); while (input[0] != '#') { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_275978/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_275978/source.c" target datalayout = "e-m:e-p270: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.town = type { i8, p...
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include<stdio.h> int gcd(int, int); int main() { int x, y; for(;~fscanf(stdin,"%d%d", &x, &y);fprintf(stdout,"%d\n", gcd(x, y))); return 0; } int gcd(int x, int y) { int tmp; if (x < y) { tmp = x; x = y; y = tmp; } if (x%y == 0) return y; gcd(x%y, y); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276027/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276027/source.c" target datalayout = "e-m:e-p270: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 ,b ,x; while( scanf( "%d %d" ,&a ,&b ) != EOF ){ x = b; while ( 1 ){ if( a % b == 0 ){ break; } x = a % b; a = b; b = x; } printf( "%d\n" ,x ); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276078/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276078/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[9]; int c=0,i=0; scanf("%s",s); for(i=0;i<3;i++){ if(s[i]=='1'){ c+=1; } } printf("%d\n",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276135/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276135/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s, i=0; scanf("%d", &s); i=(s%2)+((s/10)%2)+((s/100)%2); printf("%d\n", i); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276179/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276179/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ch[4]; int count = 0; scanf("%s", ch); for (int i = 0; i < 3; i++){ if (ch[i] == '1') count++; } printf("%d", count); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276221/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276221/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 str[4]; scanf("%s", str); int ma = 0; for (int i =0; i < 3; ++i){ if (str[i] == '1') ma += 1; } printf("%d\n", ma); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276265/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276265/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[10]; scanf("%s",s); printf("%d\n", (s[0]-'0')+(s[1]-'0')+(s[2]-'0')); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276308/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276308/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[4]; int ans=0; scanf("%s",s); for(int i=0;i<3;i++){ if(s[i] == '1'){ ans++; } } printf("%d\n",ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276351/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276351/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[5]; scanf("%s", s); int i, ans = 0; for(i = 0; i < 3; i++) { if (s[i] == '1') ans++; } printf("%d\n", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276395/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276395/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { char str[4]; int i, cnt = 0; scanf("%s", str); for(i = 0; i < 3; ++i) { if(str[i] == '1') { ++cnt; } } printf("%d\n", cnt); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276438/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276438/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 g; scanf("%d",&g); switch (g){ case 0: printf("0\n"); break; case 1: printf("1\n"); break; case 10: printf("1\n"); break; case 11: printf("2\n"); break; case 100: printf("1\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276489/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 s1, s2, s3; scanf("%1d%1d%1d", &s1, &s2, &s3); printf("%d\n", s1 + s2 + s3); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276546/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276546/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> //getchar putchar (f)scanf (f)printf int main(int argc, char **argv){ int t = 1; scanf("%d",&t); while(t--){ int i,l,r,a; scanf("%d%d%d",&l,&r,&a); int L,R = r/a + r%a; if(r/a > l/a){ L = r/a - 1 + a - 1; if(L > R) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27659/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27659/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 n,i,p,c,ans=0; int a[100000],x[100000],y[100000]; int main(){ scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&a[i]); x[i]=-1; y[i]=-1; } for(i=0;i<n;i++){ p=i; c=0; while(x[p]==-1){ x[p]=c; c++; y[p]=i; p=(p+a[p])%n; } if(y[p]==i)ans+=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276632/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276632/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ans = dso_local local_unna...
#include <stdio.h> typedef struct { int key, id; } data; typedef struct { data obj[400001]; int size; } min_heap; void push(data x, min_heap* h) { int i = ++(h->size); data tmp; h->obj[i] = x; while (i > 1) { if (h->obj[i].key < h->obj[i>>1].key) { tmp = h->obj[i>>1]; h->obj[i>>1] = h->obj[i]; h->o...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276683/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276683/source.c" target datalayout = "e-m:e-p270: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.min_heap = type { [...
#include <stdio.h> int main(void) { int a, b, c; scanf("%d %d %d", &a, &b, &c); int weeks = c / (7 * a + b); int rem = c % (7 * a + b); int remm; if (7 * a < rem) { remm = 7; } else if (rem % a == 0) { remm = rem / a; } else { remm = rem / a + 1; } printf("%d\n", weeks * 7...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276726/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276726/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main() { int t,n,i,j,s=0,w=0; char ss[50],c; scanf("%d",&t); while(t--) { scanf("%s",ss); scanf(" %c",&c); for(i=0;i<strlen(ss);i+=2) if(ss[i]==c) { printf("YES\n"); s=1; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_27677/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_27677/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 <float.h> #include <limits.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> // 内部定数 #define D_VTX_MAX 100000 // 最大頂点数 #define D_EDGE_MAX 100000 // 最大辺数 // 内部構造体 - 辺情報 typedef struct Edge { int miVNo; // 接続先頂点 struct Edge *mzpNex...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276812/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276812/source.c" target datalayout = "e-m:e-p270: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> int main(void) { int n,m; scanf("%d %d",&n,&m); long long int h[n]; for (int i=0;i<n;i++){ scanf("%lld",&h[i]); // printf("%lld\n",h[i]); } int flag[n]; for (int i=0;i<n;i++) flag[i]=1; int a[m]; int b[m]; for (int i=0;i<m;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_276856/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_276856/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,c,n,min,mina,minb,t; scanf("%lld %lld %lld",&n,&a,&b); n=6*n; min=30*n; if(a*b>=n) printf("%lld\n%lld %lld\n",a*b,a,b); else if(a<=b) { for(c=a;c*c<=n;++c) { if(n%c==0&&(n/c)>=b) { prin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2769/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2769/source.c" target datalayout = "e-m:e-p270:32:32-p271: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...