Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include<stdio.h> int main() { long long int n,x,c=0; scanf("%lld", &n); while(n>=1) { x=1; while(x<=n) { x=x*2; } n=n%(x/2); c++; } printf("%lld", c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2635/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2635/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr co...
#include<stdio.h> int main(void){ double r; double s; double l; double pi = 3.141592653589793; scanf("%lf",&r); s =pi*r*r; l =pi*2*r; printf("%f %f\n",s,l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263542/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263542/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> #include<assert.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #defin...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263586/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263586/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { double r=0; double area =0; double length=0; scanf("%lf",&r); area = r*r*M_PI; length =2*r*M_PI; printf("%f %f\n",area,length); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263629/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263629/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { double r; scanf("%lf", &r); printf("%lf %lf\n", r*r*M_PI, 2*r*M_PI); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263672/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263672/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ double r; double face,circle; scanf("%lf",&r); face = r*r*M_PI; circle = r*2*M_PI; printf("%f ",face); printf("%f\n",circle); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263722/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263722/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { double r, pi = 3.141592653589793; scanf("%lf", &r); printf("%lf %lf\n", pi*r*r, 2 * pi*r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263766/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263766/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ double A=0.0,B=0.0,r; scanf("%lf",&r); A = 2*r*3.141592653589; B = r*r*3.141592653589; printf("%f %f\n",B,A); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263816/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263816/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,r,s,i,p; scanf("%d %d",&k,&r); if(k%10==0) { s=1; } else if(k-r==0) { s=1; } else{ for(i=1;i<10;i++) { p=k*i; if(p%10==0) { s=i; break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26386/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26386/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 M_PI 3.14159265358979 int main() { double r, l, S, pi; pi = M_PI; scanf ("%lf", &r); l = 2 * r * pi; S = r * r * pi; printf ("%lf %lf\n", S, l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263902/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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 M_PI 3.141592653589 #include <stdio.h> int main(void){ double r; scanf("%lf", &r); printf("%lf %lf", (double)r*r*M_PI, (double)2*M_PI*r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263946/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263946/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <ctype.h> int main(void) { char s1[100],s2[100],s3[100]; scanf("%s %s %s",s1,s2,s3); s1[0] = toupper(s1[0]); s2[0] = toupper(s2[0]); s3[0] = toupper(s3[0]); printf("%c%c%c\n",s1[0],s2[0],s3[0]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_263997/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_263997/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> char s1[100],s2[100],s3[100]; int main() { scanf("%s[^\t]",s1); scanf("%s[^\t]",s2); scanf("%s[^\t]",s3); printf("%c%c%c\n",s1[0]-32,s2[0]-32,s3[0]-32); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264039/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264039/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #include <math.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) #define MIN(a, b) ((a) < (b) ? (a) : (b)) #define MAX...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264082/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264082/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<ctype.h> int main() { char a[102],b[102],c[102]; scanf("%s %s %s", a, b, c); printf("%c%c%c\n", toupper(a[0]), toupper(b[0]), toupper(c[0])); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264125/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264125/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc,char **argv) { char s1[11],s2[11],s3[11]; scanf("%s%s%s",s1,s2,s3); s1[0] = s1[0] - 32; s2[0] = s2[0] - 32; s3[0] = s3[0] - 32; printf("%c%c%c\n",s1[0],s2[0],s3[0]); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264169/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264169/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { char a[100],b[100],c[100]; int i,j; scanf("%s%s%s", a,b,c); printf("%c%c%c", a[0]-32,b[0]-32,c[0]-32); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264211/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264211/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 I64 long long int int main() { int t; scanf("%d",&t); while(t--) { I64 n; scanf("%I64d",&n); printf("%I64d\n",n); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26427/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26427/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> void merge(int *p1, int *p2, int *c, int n1, int n2) { int i = 0, j = 0, k = 0; while(i < n1 && j < n2) { if(*(p1 + i) < *(p2 + j)) *(c + k++) = *(p1 + i++); else *(c + k++) = *(p2 + j++); } while(i < n1) *(c + k++) = *(p1 + i++); while(j < n2) *(c + k++) = *(...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26432/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26432/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ...
#define _CRT_SECURE_NO_WARNINGS #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <inttypes.h> #include <limits.h> #include <ctype.h> #include <stdint.h> #include <string.h> #include <wchar.h> #include <math.h> #define N_MAX (100) #define P_MAX (100) #define DP_ARRAY_SIZE (N_MAX * P_MAX / 32 + 1) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264363/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264363/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdlib.h> #include <string.h> #include <math.h> #include <stdio.h> int main(int argc, const char * argv[]) { char s[101]; scanf("%s",s); long l=strlen(s); int alp[26]={0},ans=200; for(int i=0;i<26;i++){ int count=0; for(long j=l-1;j>=0;j--){ if(s[j]=='a'+i){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264428/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264428/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,m,i,l[1024],c,z,p; while(scanf("%d%d",&n,&m) , n != 0){ for(i = 0;i <= 1023;i++){l[i] = 1;} z = n; p = 1; c = 0; while(1){ if(l[p]){c++;} if(c == m){ l[p] = 0; z--; if(z == 1){break;} c = 0; } p++; if(p == n + 1){p = 1;} } for(i =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264486/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264486/source.c" target datalayout = "e-m:e-p270:32:32-p271:32: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<math.h> #include<string.h> #include<stdlib.h> #include<stdarg.h> #include<malloc.h> int main() { int i, j, n, m, box[1000]={0}; while(1){ scanf("%d%d", &n, &m); if(n==0 && m==0) break; for(i=0; i<1000; i++) box[i] = ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264536/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264536/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&test); for(int i=0;i<test;i++) { int n; scanf("%d",&n); printf("%d\n",n); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26458/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26458/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> int *temp; void MergeSort(int x[ ], int left, int right) { int mid, i, j, k; if (left >= right) /* 配列の要素がひとつなら */ return; /* 何もしないで戻る */ /* ここでは分割しているだけ */ mid = (left + right) / 2; /*...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264622/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264622/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @temp = dso_local local_unn...
/** * AOJ #1159: Next Mayor (ICPC Domestic 2009) */ #include <stdio.h> #define MAX_N 50 /** * Return the id of the winner of the game with n people and p pebbles. */ int winner(int n, int p) { static int kept[MAX_N]; int bowl, person, i; /* initialize */ for (i = 0; i < MAX_N; i++) kept[i] = 0; bowl =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264666/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @winner.kept = internal unn...
#include<stdio.h> int main(void){ int i; int num_candidate,num_stone,num_stone2; while(1){ scanf("%d %d",&num_candidate,&num_stone); //????£??????°??????????????° int candidate[50]={0}; num_stone2=num_stone; int j=0; while(candidate[j]!=num_stone){ //??????????£?????????¨???????????????????...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264709/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int n, p, q, i, j, owan, buf[51]; while (1) { // 人数読み込み scanf("%d %d", &n, &p); if (n == 0 && p == 0) break; // 初期化 owan = p; for (i = 0; i < n; i++) buf[i] = 0; for (q = 0; !(owan == 0 && buf[q] == p); q = (q + 1) % n) { if (owan != 0) { buf[q]++; owan--; } e...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264752/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264752/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t; long long int n; scanf("%d",&t); while(t--){ scanf("%lld",&n); printf("%lld\n",n); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26481/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26481/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
// AOJ 1028: ICPC: Ideal Coin Payment and Change // 2017.10.14 #include <stdio.h> int n[6]; int c[6] = { 500, 100, 50, 10, 5, 1 }; int k[1001]; int pay(int p) { int i, k, cnt; for (cnt = 0, i = 0; i < 6; i++) if (c[i] <= p) { k = p/c[i]; if (k > n[i]) k = n[i]; cnt += k; p -= c[i]*k; } if (p > 0) return -...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264860/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @c = dso_local local_unname...
#include <stdio.h> int main (void) { int X,Y; scanf("%d%d",&X,&Y); if((X*Y)%2==0) printf("No\n"); else printf("Yes\n"); return 0 ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264903/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264903/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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%2==0){ printf("No"); } else{ printf("Yes"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264947/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264947/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 number_a, number_b; scanf("%d %d", &number_a, &number_b); if(number_a * number_b % 2 == 0) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_264990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_264990/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,result; scanf("%d %d",&a,&b); if(a==2||b==2){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265032/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265032/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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==2 || b==2){ printf("No"); } else{ printf("Yes"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265076/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265076/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void) { int a,b; scanf("%d %d",&a,&b); if(a*b%2==1){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265119/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265119/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() /*this code is written by 190042146*/ { int t, i, n; scanf("%d", &t); for (i=0;i<t;i++) { scanf("%d",&n); printf("%d\n",n); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26517/source.c" target datalayout = "e-m:e-p270:32:32-p271: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; int B; scanf("%d %d",&A,&B); if((A*B)%2==0) { printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265212/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265212/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { for(;;){ int p,q; int x, y, s; int n; int i,j,t=0; int go; scanf("%d %d %d",&x,&y,&s); // 前率,後率,前合計 if(x==0) break; for(i=1;i<=s-1;i++) { for(j=1;j<=s-1;j++) { p=i*(100+x)/100; q=j*(100+x)/100; if(p+q==s) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265270/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265270/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// Aizu 1192: Tax Rate Changed // 2017.9.14 bal4u@uu #include <stdio.h> int main() { int x, y, s, p1, p2, t, ans; while (scanf("%d%d%d", &x, &y, &s) && x) { for (ans = 0, p1 = 1; p1 < s; p1++) for (p2 = p1; p2 < s; p2++) { if ((p1*(100+x))/100 + (p2*(100+x))/100 != s) continue; if ((t = (p1*(100+y))/100 + (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265313/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265313/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ struct place{ char x,y,dir; } now; unsigned int m,n; int k; char input[32],command[16]; while(scanf("%u%u%*c",&m,&n) && m && n){ now=(struct place){1,1,0}; while(scanf("%31[^\n]%*c",input) && strcmp(input,"STOP")){ if(!strcmp(inpu...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265357/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265357/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdbool.h> #include <math.h> int main(void){ char S[100001]; scanf("%s", S); int c['z'-'a'+1] = {0}; int len = strlen(S); for(int i = 0; i < len; i++){ c[S[i]-'a']++; } int f = 1; for(int i = 0; i <= 'z'...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265414/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265414/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[100001]; int keys[26]; scanf("%s", s); for(int i = 0; i < 26; i++){ keys[i] = 0; } for(int i = 0; s[i] != '\0'; i++){ keys[s[i] - 'a']++; } for(int i = 0; i < 26; i++){ if(keys[i] == 0){ printf("%c\n", i + 'a');...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265465/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265465/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> int main(){ int i,j,k; char S[1000000]; scanf("%s",S); int flg[26]; for(i=0;i<strlen(S);i++){ flg[(int)S[i]-97]=1; } for(i=0;i<26;i++){ if(flg[i]==0){ printf("%c\n",i+97); return 0; } } puts("None"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265508/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <string.h> #include <stdio.h> #define REP(a) for(i = 0; i < a; i++) int main(void) { char a[100005]; int i,m = 'a'; scanf("%s",a); REP(26) { if (strchr(a, m) == NULL) { printf("%c",m); goto end; } m++; } printf("None"); end: printf("\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265551/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265551/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main() { int i, cc[26] = { 0 },len, index, flag=0; char str[100001]; scanf("%s", &str); len = strlen(str); for (i = 0; i < len; i++) { index = ((int)str[i] - 97); cc[index] = 1; } for (i = 0; i < 26; i++) { if (cc[i] == 0) { printf("%c\n", (i+97)); flag...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265595/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265595/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int x, y, h, w, l, n, i, sum = 0;; scanf("%d", &n); while ( n != 0) { for (i = 0; i < n; i++ ) { scanf("%d %d %d %d", &x, &y, &h, &w); l = x + y + h; if ( l <= 60 && w <= 2 ) sum += 600; else if ( l <= 80 && w <= 5) sum += 800; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265638/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265638/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<math.h> int main(void) { int n=1, i, j,k,x[1000],y[1000]; double distance1 = 0,distance2=0,distance3=0,distance=0,max=0; scanf("%d", &n); for (i = 1;i <= n;i++) { scanf("%d", &x[i]); } for (j = 1;j <= n;j++) { scanf("%d", &y[j]); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265702/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int n; scanf("%d", &n); int x[n], y[n]; for( i = 0; i < n; ++i ) scanf("%d", &x[i]); for( i = 0; i < n; ++i ) scanf("%d", &y[i]); int p; double D; for( p = 1; p < 4; ++p ){ D = 0; for( i = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265746/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265746/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 func(const void *a, const void *b){ return *(long long int*)a-*(long long int*)b; } int main() { int n,i,count0=0,count,answer; long long int a[1005]; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%lld",&a[i]); if(a[i]==0) count0++...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26579/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26579/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> #include <math.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <limits.h> #define mod 1000000000+7 #define N 400000+5 #define rep(i,n) for(i=0;i<n;i++) #define rrep(i,n) for(i=n-1;i>=0;i--) typedef long long ll; int min(int,int); int max(int,int); int cmp(const void*,const void...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26584/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26584/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<math.h> int main(){ int i,n; double a,u; double x[1001]={0}; double y[1001]={0}; double d1=0,d2=0,d3=0,max=0; scanf("%d",&n); for(i=0;i<n;i++) scanf("%lf", &x[i]); for(i=0;i<n;i++) scanf("%lf", &y[i]); for(i=0;i<n;i++){ d1 +=fabs(x[i]-y[i]); d2 +=pow(fab...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265898/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265898/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define gc() getchar_unlocked() int in() { int n = 0, c = gc(); do n = 10*n + (c & 0xf), c = gc(); while (c >= '0'); return n; } int x[102], y[102]; int main() { int n, i, t, t2; int d, d1, d2; long long d3; n = in(); for (i = 0; i < n; i++) x[i] = in(); for (i = 0; i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265948/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265948/source.c" target datalayout = "e-m:e-p270: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> #include<math.h> #include<stdlib.h> int main(void) { int n, x[100], y[100], i; double sum=0,max=0; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &x[i]); } for(i=0; i<n; i++){ scanf("%d", &y[i]); } // p=1のとき for(i=0; i<n; i++){ s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_265999/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_265999/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <stdlib.h> double Manhattan(int n, int x[100], int y[100]) { double Man = 0.0; int i; for (i = 0; i < n; i++) { Man += (double)abs(x[i] - y[i]); } return Man; } double Euclid2(int n, int x[100], int y[100]) { double Euclid = 0.0; int...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266040/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266040/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &n); int x[n], y[n]; int i; for (i = 0; i < n; i++) { scanf("%d", &x[i]); } for (i = 0; i < n; i++) { scanf("%d", &y[i]); } double s_1 = 0; for (i = 0; i < n; i++) { s_1 += fabs(x[i] ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ double d1,d2,d3,d4; int i,j,k,l,n; double x[1020]={0}; double y[1020]={0}; double z[1020]={0}; double o,p,q,max; max=-1; o=0; p=0; q=0; d1=0; d2=0; d3=0; d4=0; scanf("%d",&n); for(i=0;i<n;i++){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum; while (scanf("%I64d",&t)==1) { sum = 0; while (t != 0) { if(t % 2 != 0) { sum++; } t /= 2; } printf("%I64d\n",sum); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_2662/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_2662/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,n1=0,n=0,k=0; scanf("%d",&a); n1=a; while(n1!=0) { n=n1%10; if(n==2) { k++; } n1=n1/10; } printf("%d",k); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266242/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266242/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cost(int i,int j,int x,int y){return abs(i-x)+abs(j-y);} int main(void){ int H,W,D,Q,i,j; scanf("%d%d%d",&H,&W,&D); int xy[90001][2]={0},d[90001]={0}; for(i=1;i<=H;i++){ for(j=1;j<=W;j++){ int a; scanf("%d",&a); xy[a][0] = i; xy[a][1] = j; } } for(i=D+1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266286/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266286/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i, N, C[500], S[500], F[500]; scanf("%d", &N); for (i = 1; i <= N - 1; i++) scanf("%d %d %d", &(C[i]), &(S[i]), &(F[i])); int j, ans[501] = {}; for (i = 1; i <= N - 1; i++) { ans[i] = S[i] + C[i]; for (j = i + 1; j <= N - 1; j++) { if (ans[i] <= S[j]) ans[i] = S[j] + C...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266336/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266336/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t; scanf("%d",&t); while(t--) { int n,m,s=0; scanf("%d%d",&n,&m); int a[n+1],i; for(i=0;i<n;i++){ scanf("%d",&a[i]); s+=a[i]; } if(s==m) printf("YES\n"); else printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26638/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26638/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 ururu, i, j, k, t=0, N, C[1000], S[1000], F[1000]; scanf("%d", &N); for (i = 0; i < N-1; i++){ scanf("%d %d %d", &C[i], &S[i], &F[i]); } for (i = 0; i < N-1; i++){ t = 0; for (j = i; j < N-1; j++){ ururu = 0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266422/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266422/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> /* constant */ #define MAX_C (15) #define MAX_D (30) #define MAX_W (50) #define MAX_X (5) /* typedef */ /* global variables */ static int es[MAX_C][MAX_D]; static int fs[MAX_C][MAX_D]; static int dp[MAX_D + 1][MAX_W + 1][MAX_X + 1]; /* subroutines */ /* ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266473/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266473/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MOD 1000000007 #define ll long long int main(){ int n,i; ll k,ans1=0,count=0; scanf("%d%lld",&n,&k); int a[n]; for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++){ for(int j=i+1;j<n;j++) if(a[i]>a[j]) ans1++; for(int ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266530/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266530/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> void func(void); void back(int,int,char,int); char tizu[102][102]; int flg[102][102]; int n,m; int f; int main(void) { scanf("%d %d",&n,&m); while(!(n==0 && m==0)) { func(); scanf("%d %d",&n,&m); } return 0; } void func(void) { int i,j,cnt; char buf[101]; for(j=0;j<n+2;j++) { tizu[0][j...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266581/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266581/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1){ scanf("%d",&a); getchar(); scanf("%c%d",&op,&b); if(op=='+') printf("%d\n",a+b); else if(op=='-') printf("%d\n",a-b); else if(op=='*') printf("%d\n",a*b); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s; char op; while(1){ scanf("%d %c %d",&a,&op,&b); if (op=='+'){ s=a+b; printf("%d\n",s);} else if(op=='-'){ s=a-b; printf("%d\n",s);} else if(op=='*'){ s=a*b; printf("%d\n",s);} else if(op=='/'){ s=a/b; printf("%d\n",s);} else if(op=='?'){break;} } return 0;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266718/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266718/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1){ scanf("%d %c %d",&a,&op,&b); if(op=='+'){ printf("%d\n",a+b); } else if(op=='-'){ printf("%d\n",a-b); } else if(op=='*'){ printf("%d\n",a*b); } else if(op=='/'){ printf("%d\n",a/b); } else if(op=='?'){ break; } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266804/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266804/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1){ scanf("%d %c %d",&a,&op,&b); if(op=='+')printf("%d\n",a+b); else if(op=='-')printf("%d\n",a-b); else if(op=='*')printf("%d\n",a*b); else if(op=='/')printf("%d\n",a/b); else if(op=='?')break; } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266848/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266848/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char x; while(1){ scanf("%d %c %d",&a,&x,&b); if(x=='?'){ break; } else if(x=='+'){ printf("%d\n",a+b); } else if(x=='-'){ printf("%d\n",a-b); } else if(x=='*'){ printf("%d\n",a*b); } else if(x=='/'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266891/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266891/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,x; char op; while(1){ scanf("%d %c %d",&a,&op,&b); if(op=='+'){ x=a+b; }else if(op=='-'){ x=a-b; }else if(op=='*'){ x=a*b; }else if(op=='/'){ x=a/b; }else{ break; } printf("%d\n",x); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_266934/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_266934/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 , l , a , leftOfLargest, team = 0 ; scanf("%d %d %d" , &l , &r , &a); if( r >= l ) { team += 2*l; leftOfLargest = r - l; } else { team += 2*r; leftOfLargest = l - r; } if(leftOfLargest >= a) { team...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26702/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 = 0; int op; int b = 0; do { scanf("%d %c %d", &a, &op, &b); if (op == '?') break; if ( op == '+') printf("%d\n", a + b); if ( op == '-') printf("%d\n", a - b); if ( op == '*') printf("%d\n", a * b); if ( op == '/') printf("%d\n", a / b); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267063/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267063/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1){ scanf("%d %s %d",&a,&op,&b); if(op=='+'){ printf("%d\n",a+b); } else if(op=='-'){ printf("%d\n",a-b); } else if(op=='*'){ printf("%d\n",a*b); } else if(op=='/'){ printf("%d\n",a/b); } else if(op=='?'){ break; } } ret...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267113/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267113/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char b; int c; int d; while (1) {d=0; scanf ("%d %c %d",&a,&b,&c); if (b=='+'){ d=a+c; printf ("%d\n",d); } if (b=='-'){ d=a-c; printf ("%d\n",d); } if (b=='*'){ d=a*c; printf ("%d\n",d); } if (b=='/'){ d=a/c; printf ("%d\n",d); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; scanf("%d %c %d", &a, &op, &b); while( op != '?'){ switch ((int) op) { case 43 : printf("%d\n", (a+b)); break; case 45 : printf("%d\n", (a-b)); break; case 42 : printf("%d\n", (a*b)); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1){ scanf("%d %c %d", &a, &op, &b); if(op=='+'){ printf("%d\n", a+b); }else if(op=='-'){ printf("%d\n", a-b); }else if(op=='*'){ printf("%d\n", a*b); }else if(op=='/'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267344/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267344/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1) { scanf("%d %c %d", &a, &op, &b); if (op == '+') { printf("%d\n", a+b); } else if (op == '-') { printf("%d\n", a-b); } else if (op == '*'){ printf("%d\n", a*b); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267395/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267395/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,an; char op; for(;;){ scanf("%d %c %d",&a,&op,&b); if(op=='?') break; switch(op){ case '+': an=a+b; break; case '-': an=a-b; break; case '*'...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267445/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267445/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ // Your code here! int a,b,i; char op; i=1; while(1){ scanf("%d %c %d",&a,&op,&b); if(op == '?')break; if(op == '+'){ printf("%d\n",a + b); }else if(op == '-'){ printf("%d\n",a - b); }else if(op == '*'){ printf("%d\n",a * b); }else if(op == ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267489/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 op; int x, y; while(1) { scanf("%d %c %d", &x, &op, &y); if(op == '?') { break; }else if(op == '+') { printf("%d\n", x + y); }else if(op == '-') { printf("%d\n", x - y); }else if(op == '*') { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267531/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267531/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int a,b,i; char op; for(i=1;i>0;i++){ scanf("%d %c %d",&a,&op,&b); if(op=='+') {printf("%d\n",a+b); } else if(op=='-') {printf("%d\n",a-b); } else if(op=='*') {printf("%d\n",a*b); } el...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267575/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267575/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int b; char op; while (1) { scanf("%d %c %d", &a, &op, &b); switch (op) { case '+': printf("%d\n", a + b); break; case '-': printf("%d\n", a - b); break; case '*': printf("%d\n", a * b); break; case '/': printf("%d\n", a / b); break;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; scanf("%d %c %d",&a,&op,&b); while(op!='?'){ if(op=='+') printf("%d\n",a+b); if(op=='-') printf("%d\n",a-b); if(op=='*') printf("%d\n",a*b); if(op=='/') printf("%d\n",a/b)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267661/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267661/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[2000]; int b[2000]; int num; char op[2000]; for(int i=0;i<=1999;i++){ scanf("%d %c %d",&a[i],&op[i],&b[i]); num=i; if(op[i]=='?'){ break; } } for(int k=0;k<=num-1;k++){ if(op[k]== '+'){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267704/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267704/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1){ scanf("%d %c %d",&a,&op,&b); if(op == '?'){ break; }else if(op == '+'){ printf("%d\n",a+b); }else if(op == '-'){ printf("%d\n",a-b); }else if(op == '*'){ pr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267748/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(scanf("%d %c %d",&a,&op,&b)!=EOF){ switch(op){ case '?':{ break; break; } case '+':{ printf("%d\n",a+b); break; } case '-':{ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; int ans; int i = 0; for (; i<20000; i++){ scanf("%d %c %d", &a, &op, &b); if(op == '+'){ ans = a +b; } else if (op == '-'){ ans = a -b; } else if (op == '*'){ ans = a * b; } else if ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, ans; char op; while (1) { scanf("%d %c %d", &a, &op, &b); if (op == '?') { break; } switch (op) { case '+': ans = a + b; break; case '-': ans = a - b; break; case '*': ans = a * b; break; case '/': ans = a / b; break; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267878/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267878/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, op; while(1){ scanf("%d", &a); getchar(); op = getchar(); scanf("%d", &b); if(op == '?') break; if(op == '+') printf("%d\n", a+b); else if(op == '-') printf("%d\n", a-b); else if(op == '*') printf("%d\n", a*b); else if(op == '/') printf("%d\n", a/b); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267928/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267928/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; while(1){ scanf("%d %c %d", &a, &op, &b); if(op=='?'){ break; }else if(op=='+'){ printf("%d\n", a+b); }else if(op=='-'){ printf("%d\n", a-b); }else if(op=='*'){ printf("%d\n", a*b); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_267971/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_267971/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; for(;;){ scanf("%d %c %d", &a, &op, &b); if(op=='?') break; printf("%d\n", op == '+' ? a+b : op == '-' ? a-b : op == '*' ? a*b : a/b); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_268013/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_268013/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; char op; scanf("%d %c %d", &a, &op, &b); while (op != '?') { if (op == '+') { printf("%d\n", a + b); } else if (op == '-') { printf("%d\n", a - b); } else if (op == '*') { printf("%d\n", a * b); } else if (op == '/') { printf("%d\n", a / b); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_268057/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_268057/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t, i; scanf("%d %d",&n, &t); int *a=(int *)malloc(sizeof(int)*(n)); for(i=1;i<n;i++){ scanf("%d",&a[i]); } int flag = 1; i=1; do{ i+=a[i]; if(i==t){ flag = 0; } }while(i<t&&flag!=0); if(flag==0){ printf("YES"); }else{ printf("NO...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_26810/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_26810/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(void){ int n,a[100],t,i,l,s; while(1){ s=0; scanf("%d",&n); if(n==0){ return 0; } for(t=0;t<n;t++){ scanf("%d",&a[t]); } for(i=0;i<n;i++){ for(t=1;t<n;t++){ if(a[t-1]<a[t]){ l=a[t-1]; a[t-1]=a[t]; a[t]=l; } } } for(t=1;t<n-1;t++){ s+=a[t]; } s=s/...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_268172/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_268172/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l; while(scanf("%d\n",&l)!=0){ if(l==0)break; int i,p,q=0,max=0,min=1000; for(i=0;i<l;i++){ scanf("%d\n",&p); if(max<p)max=p; if(min>p)min=p; q+=p; } printf("%d\n",(int)floor((q-max-min)/(l-2))); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_268215/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_268215/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 player = 0; int judger = 0; int ave_li[100] ; int flag = 1; int num = 0; while (flag == 1) { scanf("%d", &judger); if (judger > 0) { int max = -1; int min = 1001; int sum = 0; for (int i = 0; i < judger; i++) {...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_268259/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_268259/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, s[105], M, m, S, i; n=1; while (n!=0) { scanf("%d", &n); if (n==0) break; M=-1; m=1001; S=0; for (i=1; i<=n; i++) { scanf("%d", &s[i]); if (s[i]>M) M=s[i]; if (s[i]<m) m=s[i]; S+=s[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_268316/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_268316/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 8 char a[n+2][n+2], player, opponent; void search(int i, int j, int* maxcnt, int* besti, int* bestj) { int k, l, cnt=0; for(k=-1;k<2;++k) for(l=-1;l<2;++l) { int ii=i+k, jj=j+l, c=0; if (k==0&&l==0) continue; if (a[ii][jj]!=opponent) continue; while ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_268367/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_268367/source.c" target datalayout = "e-m:e-p270: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 global [10 x...