Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int main(void) { char grid[52][52]; int h, w, i, j, cnt=0; scanf("%d %d", &h, &w); for(i=1; i<=h; i++) scanf("%s", &grid[i]); for(i=1; i<=h; i++) { for(j=1; j<=w; j++) { if(grid[i][j]=='#') { if(grid[i][j]!=grid[i][j-1] && grid[i][j]!...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336428/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336428/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAX_HW 50 int main(void) { int h, w; char s[MAX_HW][MAX_HW+1]; int i, j; scanf("%d %d", &h, &w); for(i=0; i<h; i++) scanf("%s", s[i]); for(i=0; i<h; i++) for(j=0; j<w; j++){ if(s[i][j] == '.') continue; else if( s[i-1][j] == '#' && (i-1)>=0 ) continue; else i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336471/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336471/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,e,j; while(1) { scanf("%d",&n); if(n==0) break; for(i=0;i<n;i++) { scanf("%d %d %d",&s,&e,&j); if(s == 100 || e == 100 || j == 100) printf("A\n"); else if((s+e)/2 >= 90) printf("A\n"); else if((s+e+j)/3 >=80) printf("A\n"); else if((s+e+j)/3 ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336514/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336514/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 student_num; int i; int m,e,j; while(1) { scanf("%d",&student_num); if(student_num==0)break; for(i=0;i<student_num;i++) { scanf("%d%d%d",&m,&e,&j); if(m==100 || e==100 || j==100) { puts("A"); continue; } if((m+e)/2>=90) { puts("A"); continue...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336572/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336572/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 comparador(const void *a, const void *b){ return (*(int*)a - *(int*)b); } int main(){ int n; scanf("%d", &n); int vetor[n]; int vetor2[1000001] = {0}; int multi, cont = 0, maior = 0, igual = 0; for(int i = 0; i < n; ++i){ scanf("%d", &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336615/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336615/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 notomamiko(const void* x, const void* y) { int a = *(const int*)x, b = *(const int*)y; return a < b ? -1 : a > b; } int N; int A[271828]; char era[1234567]; int main(void) { int i; int miyukiti = 0; if (scanf("%d", &N) != 1) return 1; for (i = 0; i < N; i++) { if (...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336666/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336666/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,p[10000],max,T,i,j,k; scanf("%d",&N); for(i=0;i<N;i++) scanf("%d\n",&p[i]); max=p[0]; for (i=1;i<N;i++) if(max<p[i]) max=p[i]; T=0; for(i=0;i<N;i++) T=T+p[i]; T=T-0.5*max; printf("%d\n",T); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336709/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336709/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int max(int *N,int size){ int max=N[0],i; for(i=1;i<size;i++){ if(max<N[i]){ max=N[i]; } } return max; } int main(void){ int N,i,Max,ans=0; scanf("%d",&N); int p[N]; for(i=0;i<N;i++){ scanf("%d",&p[i]); } Max=max(p,N); for(i=0;i<N;i++){ ans=ans+p[i]; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336774/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336774/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<limits.h> #include<string.h> int main(){ int N,max=0,ans=0,p; scanf("%d",&N); int i; for(i=0;i<N;i++){ scanf("%d",&p); ans += p; max = max>p? max:p; } printf("%d",ans-max/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336817/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336817/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p[n]; int max = 0; int sum = 0; for(int i = 0;i < n; i++){ scanf("%d",p+i); if(p[i]>max) { max = p[i]; } sum = sum + p[i]; } sum = sum - max/2; printf("%d\n",sum); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336860/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336860/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> int main(){ int N; int *p; p = (int *)malloc(sizeof(int) * N); scanf("%d" , &N); int max , max_ind , sum; max = max_ind = sum = 0; for( int i = 0; i < N; i++ ){ scanf("%d" , &p[i]); if( max < p[i] ){ max = p[i]; max_ind = i; } sum += p[i]; } sum -= p[max_ind]...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336903/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336903/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, q; int p[11]; int t, m; q=0; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &p[i]); q+=p[i]; } t=p[1]; for(i=1; i<n; i++){ if(t<p[i]) t=p[i]; } m=t/2; q=q-m; printf("%d\n", q); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336947/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336947/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N, max = 0,sum = 0; int p[10]; scanf("%d",&N); for(int i = 0; i < N; i++) { scanf("%d\n",&p[i]); sum += p[i]; if(max < p[i]) max = p[i]; } printf("%d\n",sum-max/2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336990/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336990/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &i, &j); printf("%d %d\n", i*j, i*2 + j*2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337047/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337047/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &x, &y); printf("%d %d\n", x*y, 2 * x + 2 * y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337090/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337090/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 = 0; int b = 0; scanf("%d %d",&a ,&b); printf("%d %d\n", a*b, 2*(a+b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337133/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337133/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(int argc, const char * argv[]){ int a, b; scanf("%d %d", &a, &b); printf("%d %d\n", a*b, (a+b)*2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337177/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337177/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(void){ int a, b; scanf("%d %d",&a, &b); printf("%d ",a*b); printf("%d\n",(2*a)+(2*b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337227/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337227/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,s,l; scanf("%d %d", &a,&b); s = a * b; l = (a + b) * 2; printf("%d %d\n", s,l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337270/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337270/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 no1,no2; scanf("%d",&no1); scanf("%d",&no2); printf("%d %d\n",no1*no2,2*(no1+no2)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337320/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337320/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d; scanf("%d %d",&a, &b); c = a * b; d = (a + b) * 2; printf("%d %d\n",c,d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337379/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337379/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int area, circumference; scanf("%d %d", &x, &y); area = x * y; circumference = x * 2 + y * 2; printf("%d %d\n", area, circumference); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337421/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337421/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d",&x,&y); printf("%d %d\n",x*y ,2*(x + y)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337465/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337465/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); printf("%d %d\n", (a*b),(2*a+2*b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337522/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337522/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x, y; scanf("%d %d", &a, &b); printf("%d %d\n", a*b, 2*(a+b)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337566/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337566/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d", &n, &m); printf("%d %d\n", n * m, 2 * (n + m)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337616/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337616/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define False 0x00000 #define True 0x00001 #define dat_found 0x00002 #define dat_nt_found 0x00003 #define failed 0x00004 #define success 0x00005 #define invalid 0x00005 #define _left ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33766/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33766/source.c" target datalayout = "e-m:e-p270: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.List_ = type { ptr, p...
#include<stdio.h> int main(){ int A,B; int x; scanf("%d", &A); scanf("%d", &B); x = A+B; if (x > 23){ x = x-24; printf("%d", x); } else { printf("%d",x); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337702/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337702/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, t; scanf("%d %d", &a, &t); printf("%d\n", (a + t) % 24); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337768/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337768/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,d; scanf("%d %d",&a,&b); c=a+b; d=c%24; printf("%d\n",d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337810/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337810/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 < 24 ){ printf( "%d",a+b ); } else if( a + b >= 24 ){ printf( "%d",a+b-24 ); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337854/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337854/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int sum=A+B; if(sum>=24) { sum=sum-24; } printf("%d\n",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337898/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337898/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(int argc, char const *argv[]){ int a,b; scanf("%d %d",&a,&b); printf("%d\n",(a+b)%24); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337940/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337940/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define _USE_MATH_DEFINES int main() { int n=0,best_n=0; float T=0.0,A=0.0,height_i[1001]={0.0},temp_average=0.0,temp_diff_from_a=0.0,new_temp_diff_from_a=0.0; scanf("%d",&n); scanf("%f %f",&T,&A); for...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337984/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337984/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> double fabs(double a){return (a<0)?-a:a;} double a,t,h; int n; void Main(){ scanf("%d",&n); scanf("%lf%lf",&t,&a); double d = 1e10; int Ans = 0; for(int i = 1;i<=n;i++){ scanf("%lf",&h); double tp = t-(h*0.006); // printf("%lf ",tp); if(d>fabs(a-tp)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338026/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338026/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 T , A; int H[1000]; if(scanf("%d %d %d",&N ,&T ,&A)); for(int i=0;i<N;i++){ if(scanf("%d",&H[i])); } int x[N]; for(int j=0;j<N;j++){ x[j] = 1000*A - (1000*T - 6*H[j]); if(x[j]<0){ x[j] *= -1; } } int min = 0; for(int k=1;k<N;k++){ if(x[k] < x[min]){ m...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338077/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338077/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int boolx=1; scanf("%d",&a); int cnt=0; int temp=a; if(a==1){ printf("0 1"); return 0; } if(a==2){ printf("0 2"); return 0; } if(a==3){ printf("0 2"); return 0; } if(a==4){ printf("0 2"); return 0; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33812/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33812/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<math.h> int main(void){ int N; float T,A; //int H[1001]; int H; int i,num; float diff,diffabs,mindiff; float temp; scanf("%d",&N); scanf("%f %f",&T,&A); mindiff = 100000.0; num = 0; /*for(i=0;i<1001;i++){ H[i]=0; }*/ for(i=1;i<=...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338163/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338163/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,t,a,i,h[1000],ans=0; float kion[1000]; scanf("%d%d%d",&n,&t,&a); for(i=0;i<n;i++){ scanf("%d",&h[i]); kion[i]=t-h[i]*0.006f; float b=(a-kion[ans]); float c=a-kion[i]; if(b<0)b=-b; if(c<0)c=-c; if(b>c){ ans=i; } } printf("%d\n",ans+1); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338206/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338206/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 { int left; int right; } pool; int main(void) { int i, j, len, k, kl, kr, le, ri, he, flag, h[20001], area[10000], areasum; char ch; pool pleft[10000], pright[10000], p[10000]; h[0] = 0; i = 0; while(1) { scanf("%c",&ch); if( ch == '\n' ) break; switch (ch) { case '...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338257/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338257/source.c" target datalayout = "e-m:e-p270: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.pool = type { i32, ...
#include<stdio.h> #include<string.h> #include<stdlib.h> int main(){ int n=0; char c[20002]; int height[20002];//i番目のマスの左の高さは、height[i-1]。右の高さはheight[i]。height[0]=0 height[0]=0;//基準の高さ int flood[20002];//水の体積。1オリジン int floodnum=0;//池の数 int sum=0; while(1){ scanf("%c",&c[n+1]); if(c[n+1]=='...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338307/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338307/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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{ int index; int s; }STACK_T; int main() { char c; char figure[20000]; int stack[20000]; STACK_T stack2[20000]; int sp, sp2; int index; int count, sum; int i; // データを入力 i = count = 0; while( (c = fgetc(stdin)) != '\n'){ figure[i++] = c; count++; } // 面積の計算 sp...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338350/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338350/source.c" target datalayout = "e-m:e-p270: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.STACK_T = type { i3...
#include <stdio.h> #include <stdlib.h> int top1=0, top2=0, top3=0; int S1[20000], S2[20000], S3[20000]; void push1(int x){top1++;S1[top1] = x;} int pop1(){top1--;return S1[top1+1];} void push2(int x){top2++;S2[top2] = x;} int pop2(){top2--;return S2[top2+1];} void push3(int x){top3++;S3[top3] = x;} int pop3(){top3-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338394/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338394/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @top1 = dso_local local_unn...
#include <stdio.h> int s[30000],t[30000],r[30000]; int p,q,qq; void push(int x) { s[p]=x; p++; } void push2(int x) { t[q]=x; q++; } void push3(int x) { r[qq]=x; qq++; } int pop() { if(p==0) return -1; p--; return s[p]; } int pop2() { if(q==0) return 0; q--; return t[q]; } int pop3() { if(qq...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338444/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338444/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @s = dso_local local_unname...
#include<stdio.h> #include<string.h> char memory[64][8]; int judge_repeat(char str[], int counter) { int i; for(i = 0; strcmp(memory[i], str); i++); if(i == counter) return 0; return 1; } int judge(char str[], int counter) { int i = 0; while(memory[counter][i]) i++; if(memory[counter][i - 1] == str[0...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338501/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338501/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @memory = dso_local global ...
#include<stdio.h> int main() { long long x,max,min,r; scanf("%I64d",&x); max=(x/7)*2; r=x%7; if(r>=2) max=max+2; else if(r==1) max=max+1; min=(x/7)*2; if(r==6) min=min+1; printf("%I64d %I64d",min,max); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33856/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33856/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> #include<stdlib.h> #include<math.h> #include<string.h> #include<stdbool.h> typedef long long ll; typedef long double ld; #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define rrep(i,l,r)for(ll i=(l);i>=(r);i--) #define INF (1LL<<60) #define MOD1 1000000007 #...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338624/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338624/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,l[200],ans=0; scanf("%d",&n); for(i=0;i<2*n;i++)scanf("%d",&l[i]); for(i=0;i<2*n;i++){ for(j=0;j<2*n;j++){ if(l[i]<l[j]){ int tmp=l[i]; l[i]=l[j]; l[j]=tmp; } } } for(i=0;i<2*n;i+=2)ans+=l[i]; printf("%d\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338682/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338682/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<string.h> #define N 165003 int arr[N]; int main(){ int a; scanf("%d",&a); int i; for(i=0;i<a*2;i++){ scanf("%d",arr+i); } int w; for(i=0;i<a*2;i++){ for(w=0;w<a*2;w++){ if(arr[w]<arr[w+1]){ int temp=arr[w]; arr[w]=arr[w+1]; arr[w+1]=temp; } } } int s=0; for(i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ float r; scanf("%e",&r); printf("%e",2*r*3.14159265358979); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338790/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338790/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&R); printf("%f",2*R*3.141); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338833/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338833/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&R); printf("%f",2*R*3.14); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338877/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338877/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { static char used[670]; static char s[105]; int n; scanf("%d",&n); scanf("\t%c",&s[0]); int max=0; int index=0; int i; for(i=1;i<n;i++){ scanf("%c",&s[i]); index=(s[i-1]-'A')*26+(s[i]-'A'); used[index]++; if(used[index]>used[max]){ max=index; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33892/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33892/source.c" target datalayout = "e-m:e-p270: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.used = internal unnamed...
#include<stdio.h> int main() { int R; float pi=3.14159,c; if(1<=R<=100) scanf("%d",&R); c=2*pi*R; printf("%.16f",c); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338963/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338963/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> int main(void){ int r; double result; scanf("%d",&r); result=2*M_PI*r; printf("%lf",result); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339005/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339005/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14159265359 int main(){ int r; scanf("%d", &r); printf("%lf", 2 * PI * r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339056/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339056/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R; scanf("%d", &R); printf("%lf\n", (double)R*M_PI*2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339106/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339106/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&r); double pi,c; pi = 3.141592654; c = 2*pi*r; printf("%lf\n",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; float R; scanf("%d",&r); R=3.14159*2*r; printf("%.2f",R); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double ans=0; scanf("%d",&n); ans=2*n*M_PI; printf("%f\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a; scanf("%d", &a); double m=acos(-1); double ma=2*(m*a); printf("%lf\n", ma); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pi 3.1416 int main() { int r; scanf("%d",&r); float ans; ans=2*pi*r; printf("%f\n",ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339423/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339423/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <math.h> #include <stdio.h> int main(){ float R; float ans; scanf("%f", &R); ans = 2 * M_PI * R; printf("%f", ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339474/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R; scanf("%d", &R); printf("%.20lf\n", 2*acos(-1)*R); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339517/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d", &R); printf("%f\n", 2.0 * (double)R * 3.1415926535); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339560/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339560/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&a); double b; double pi; pi=3.141592653589793; b=a*2*pi; printf("%lf",b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339603/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339603/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ float r,L; scanf("%f",&r); L=6.2831853*r; printf("%f\n",L); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339647/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339647/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 R; if (scanf("%d", &R) != 1) return 1; printf("%.15f\n", R * 2 * (4 * atan(1))); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339698/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339698/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14 int main(){ int r; scanf("%d", &r); printf("%f\n", 2*r*PI); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339740/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339740/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <ctype.h> #include <string.h> int main(int argc, char *argv[]){ int r; double pi = 3.1415926535897932; double ans; scanf("%d",&r); ans = 2 * r * pi; printf("%lf",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.141592 int main() { int R; scanf("%d", &R); double length; length = (double)R * 2.0 * PI; printf("%f\n",length); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 r; scanf("%d",&r); printf("%.10f\n",M_PI*2*r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339878/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339878/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <math.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { int i; int R; long cnt = 0; scanf("%d", &R); printf("%f\n", (double)R*2*3.141592); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339920/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339920/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ int r; scanf("%d", &r); printf("%f", (double)3.141592*2*r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339964/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339964/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d",&r); printf("%lf\n",r*3.1415*2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340005/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340005/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> struct node{ struct node *right; struct node *left; int key; int priority; }; typedef struct node * Node; #define NIL NULL Node root; Node treeMinimum(Node x){ while (x->left!=NIL) x=x->left; return x; } Node treeMaximum(Node x){ while (x->right!=NIL) x=x->righ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340049/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340049/source.c" target datalayout = "e-m:e-p270: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.node = type { ptr, ...
#include <stdio.h> #include <math.h> #define rad 3.14159265358979 / 180 int main(){ int a,b,angle; double h; scanf("%d %d %d",&a,&b,&angle); h = sin(angle * rad) * b; printf("%f %f %f\n",a*h/2,a + b + sqrt(a*a + b*b -2 * a * b * cos(angle * rad)),h); return(0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340092/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340092/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c, C; double s,l, h,d; scanf("%lf %lf %lf",&a,&b,&C); d = C / 180 * M_PI; s = a * b * sin(d) / 2; c = sqrt(a * a + b * b - 2 * a * b * cos(d)); l = a + b + c; h = b * sin(d); printf("%f\n%f\n%f\n",s,l,h); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340142/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340142/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, S, L, h; double a1, a2, d, rad; int C; scanf("%lf %lf %d", &a, &b, &C); rad = (C * M_PI) / 180; h = b * sin(rad); a1 = b * cos(rad); a2 = a - a1; d = sqrt(h * h + a2 * a2); L = a + b + d; S = (a * h) / 2; printf("%.4f\n%.4f\n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340193/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340193/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[3],i,j,k,temp; scanf("%d",&n); for (i=0; i<n; i++) scanf("%d",&a[i]); for (i=0; i<n-1; i++) { if (a[i]<a[i+1]) { temp=a[i]; a[i]=a[i+1]; a[i+1]=temp; } } for (i=1; i<=a[n-1]; i++) { for (j=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340236/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340236/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int n, m, a[ 50 ][ 50 ]; scanf( "%d %d", &n, &m ); for ( i = 0; i < n; i++ ) for ( j = 0; j < m; j++ ) scanf( "%d", a[ i ] + j ); for ( i = 0; i < n; i++ ) if ( a[ i ][ 0 ] || a[ i ][ m - 1 ] ) { puts( "2" ); return 0; } for ( j = 0; j < m; j++ )...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34028/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34028/source.c" target datalayout = "e-m:e-p270:32:32-p271: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() { long long i,j,t; while(scanf("%lld%lld",&i,&j)!=EOF) { if(i==1&&j==1) t=1; else if(i==1) t=j-2; else if(j==1) t=i-2; else { t=(i-2)*(j-2); } printf("%lld\n",t); } re...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340322/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340322/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, a, b, c; scanf("%d %d %d %d", &n, &a, &b, &c); int i; char s[100005][4]; for (i = 0; i < n; i++) scanf("%s", s[i]); int f = 0; int ans[100005]; if (s[0][0] == 'A' && s[0][1] == 'B' && a == 0 && b == 0) f++; if (s[0][0] == 'A' && s[0][1] == 'C' && a == 0 && c == 0) f+...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340366/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #define int long long int max(int a, int b){ return a >= b ? a : b; } signed main(){ int L, N, i; scanf("%lld%lld", &L, &N); int *X = (int *)malloc(sizeof(int) * (N + 2)); int *Y = (int *)malloc(sizeof(int) * (N + 2)); int *SX = (int *)malloc(sizeof(int) * (N + 2)); int *...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340409/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<string.h> int main() { int n,m,i,j,k,a[100][100]; scanf("%d %d",&n,&m); for(i=1;i<=n;++i) { for(j=1;j<=m;++j) { scanf("%d",&a[i][j]); } } int flag=4; for(j=1;j<=m;++j) { if(a[1][j]==1) ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34046/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34046/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 W ,H ,x ,y ,r; scanf("%d %d %d %d %d",&W ,&H ,&x ,&y ,&r); if(0<=x-r && x+r<=W && 0<=y-r && y+r<=H){ printf("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340502/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340502/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 width, height, x, y, r; scanf("%d %d %d %d %d", &width, &height, &x, &y, &r); if((x - r) < 0 || (x + r) > width || (y - r) < 0 || (y + r) > height){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340546/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340546/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y,r; scanf("%d %d %d %d %d",&w,&h,&x,&y,&r); if(x+r>w||x-r<0||y+r>h||y-r<0) printf("No\n"); else printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340597/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340597/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H; int x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(H<y+r) puts("No"); else if(0>y-r) puts("No"); else if(W<x+r) puts("No"); else if(0>x-r) puts("No"); else puts("Yes"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340654/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340654/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if((((x-r) < 0) || ((x+r) > W)) || (((y-r)< 0) || ((y+r) > H))){ printf("No\n"); }else{ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340698/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340698/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(W>=x+r && H>=y+r && x>0 && y>0) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340748/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if(( x >= r && x + r <= W ) && ( y >= r && y + r <= H )){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340791/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340791/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){ printf("Yes\n"); } if(x-r<0||x+r>W||y-r<0||y+r>H){ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340834/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340834/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w,h,x,y,r,a; scanf("%d%d%d%d%d",&w,&h,&x,&y,&r); a=0; if(x-r<0){ a+=1; } if(y-r<0){ a+=1; } if(y+r>h){ a+=1; } if(x+r>w){ a+=1; } if(a==0){ printf("Yes\n"); } if(a>0){ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340885/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340885/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x>=W || x<=0){ printf("No\n"); }else if(y>=H || y<=0){ printf("No\n"); }else if(x+r>W || x-r<0){ printf("No\n"); }else if(y+r>H || y-r<0){ printf("No\n"); }else printf("Yes\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340928/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340928/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x-r>=0&&x+r<=W&&y-r>=0&&y+r<=H){ printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340971/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340971/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if(x<0||y<0) { printf("No\n"); } else { if(r>x||r>y) { printf("No\n"); } else { if((r+x)<=W && (r+y)<=H) { printf("Yes\n"); } else { printf("No\n"); } } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341020/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341020/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(!(-100<=x&&x<=100)){ return 0; } if(!(-100<=x&&x<=100)){ return 0; } if(!(-100<=y&&y<=100)){ return 0; } if(!(0<W&&W<=100)){ return 0; } if(!(0<H&&x<=100)){ return 0; } if(!(0<r&&r<=100))...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341071/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341071/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H, x, y, r; scanf("%d %d %d %d %d", &W, &H, &x, &y, &r); if ((x - r) < 0 || (x + r) > W) { puts("No"); } else if ((y - r) < 0 || (y + r) > H) { puts("No"); } else { puts("Yes"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341114/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341114/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y,r; scanf("%d""%d""%d""%d""%d",&W,&H,&x,&y,&r); if(r <= x&&r <= y&&x+r <= W&&y+r <= H){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341158/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341158/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...