Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#define _CRT_SECURE_NO_WARNINGS ////#define _USE_MATH_DEFINES #include<stdio.h> //#include<stdlib.h> //#include<math.h> //#include<string.h> //#include<time.h> #define P(type,x) fprintf(stdout,"%"#type"\n",x) int main() { int n, a, b; const int v[4] = { 6000,4000,3000,2000 }; for (n = 3; fscanf(stdin, "%d%d", &a, &...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336204/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336204/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @__const.main.v = private u...
#include <stdio.h> int main(void) { int t[4],n[4],a[4],i; for(i=0;i<4;i++){ scanf("%d %d",&t[i],&n[i]); if(t[i]==1){ a[i]=6000*n[i]; } else if(t[i]==2){ a[i]=4000*n[i]; } else if(t[i]==3){ a[i]=3000*n[i]; } else if(t[i]==4){ a[i]=2000*n[i]; } } for(i=0;i<4;i++){ printf("%d\n",a[i]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336255/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336255/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 TMAX 100001 #define THALF 50000 void fill(int *p, int T, int d) { int i; for(i=0; i<T; i++){ *(p+i) = d; } } void stak(int *p, int head, int end, int d) { int i; for(i=head; i<end; i++){ *(p+i) += d; } } int main(void){ int N, T, t[TMAX], in, out, d, sw, max=0, i, j; scanf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336312/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336312/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void) { int H, W; int i, j; char buf[51][51]; fgets(buf[0], sizeof(buf), stdin); sscanf(buf[0], "%d%d", &H, &W); for (i = 0; i <= H; i++) fgets(buf[i], sizeof(buf), stdin); for (i = 0; i < H; i++) { for (j = 0; j < ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336356/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336356/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
// // main.c // codeforces // // Created by Artem Bastun on 13/10/13. // Copyright (c) 2013 Artem Bastun. All rights reserved. // #include <stdio.h> int main(int argc, const char * argv[]) { int k , d; scanf("%d %d" , &k , &d); if (d == 0) { if (k == 1) { printf("0"); } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3364/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3364/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { int h,w,i,j,frag=1; scanf("%d %d",&h,&w); char s[51][51]; 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] == '#') { frag = 0; if(i-1 >= 0 && s[i-1][j] == '#') { frag = 1; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336442/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336442/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 check(char S[52][52],int h,int w){ int i,j; for(i=1;i<=h;i++){ for(j=1;j<=w;j++){ if((S[i][j]=='#')&&((S[i][j-1]=='.')&&(S[i][j+1]=='.')&&(S[i-1][j]=='.')&&(S[i+1][j]=='.'))){ return 0; } } } return 1; } int main(void){ char S[52][52]={0}; int h,w,i,j; scanf("%d %d",&h,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336486/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336486/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, b, c, i; while (1){ scanf("%d", &n); if (n == 0) break; for (i =0; i < n; i++){ scanf("%d%d%d", &a, &b, &c); if ((a == 100 || b == 100 || c == 100) || (a + b)/2.0 >= 90 || (a + b + c)/3.0 >= 80){ printf("A\n"); }else if ((a + b + c)/3.0 >= 70 || (a + b ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336529/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336529/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,r,a; for(;scanf("%d",&n),n;) for(;n--;) { scanf("%d%d%d",&p,&q,&r); a=(p+q+r)/3; if(p==100||q==100||r==100||p+q>=180||a>=80) puts("A"); else if(a>=70||(a>=50&&(p>=80||q>=80))) puts("B"); else puts("C"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336587/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336587/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 N 200000 #define AMAX 1000000 int extDivisor(int t, int *listDivisor){ int iDivisor=0; int a = sqrt(t); for(int j=2; j<=a; j++){ if(t%j==0){ if(j*j==t){ listDivisor[iDivisor] = j; iDivisor++; } else{ listDivisor[iDivisor...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336637/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336637/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,in,a=0,p=0,u; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d",&in); p+=in; if(in>a) a=in; } u=p-a+(a/2); printf("%d\n",u); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336680/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336680/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, p, max = 0, sum = 0; scanf("%d", &n); for (int i = 0; i < n; ++i) { scanf("%d", &p); max = fmax(max, p); sum += p; } printf("%d", sum - max / 2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336723/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336723/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum=0,flag=0; scanf("%d",&N); for(int i=0;i<N;i++){ scanf("%d",&p); sum+=p; if(p>flag){ flag=p; } } printf("%d\n",sum-flag/2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336789/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336789/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tot, max; scanf("%d", &N); for (int i = 0; i < N; i++){ scanf("%d", &p); if(i == 0){ max = p; tot = p/2; } else { if(max < p){ tot += max/2; max = p; tot += max/2; } else { tot += p; } } } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336831/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336831/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,x,n,p[10],max=0,total=0; scanf("%d",&n); for(i=0;i<n;i++){ scanf("%d",&p[i]); } for(i=0;i<n;i++){ if(max<=p[i]){ max=p[i]; x=i; } } p[x]=p[x]/2; for(i=0;i<n;i++){ total+=p[i]; } printf("%d",total); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336875/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336875/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void) { int n; int p[10]; scanf("%d",&n); int i; int memo; int max=0; for(i=0;i<n;i++){ scanf("%d",&p[i]); if(max<=p[i]) { max=p[i]; memo=i; } } int sum=0; for(i=0;i<n;i++){ if(i!=memo)sum+=p[i]; else sum+=max/2; } printf("%d\n",sum); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336918/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336918/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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[11], max = 0, maxIdx = 0; scanf("%d", &N); for(int i=0;i<N;i++) { scanf("%d", &P[i]); if(max < P[i]) { max = P[i]; maxIdx = i; } } int sum = 0; for(int i=0;i<N;i++) { int price = (i==maxIdx) ? P[i] / 2 : P[i]; sum += price; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_336961/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_336961/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,l; scanf("%d %d",&a,&b); s = a * b; l = 2*(a+b); printf("%d %d\n",s,l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337018/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337018/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_337061/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337061/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d\n", a * b, 2 * a + 2 * b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337104/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337104/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); x = a*b; y = 2*(a+b); printf("%d %d\n", x, y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337148/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337148/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ int a,b,c,x; scanf ("%d %d",&a,&b); x = 2*(a+b); c = a*b; printf("%d %d\n",c,x); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337191/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337191/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 %d\n", a * b, 2 * a + 2 * b); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337241/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337241/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//AOJ 10002 #include <stdio.h> int main () { int a, b; int menseki,nagasa; scanf ("%d %d",&a, &b); menseki = a*b; nagasa = (a + b)*2; printf ("%d %d\n",menseki,nagasa); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337285/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337285/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,y; scanf("%d%d",&a,&b); x=a*b; y=a*2+b*2; printf("%d %d\n",x,y); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337335/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337335/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%d %d",&a,&b); printf("%d %d\n",a * b,a * 2 + b * 2); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337393/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337393/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&a); scanf("%d",&b); c=a*b; d=a+a+b+b; printf("%d %d\n",c,d); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337436/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337436/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> typedef long long int LL; #define din(n) scanf("%d",&n) #define dout(n) printf("%d\n",n) #define llin(n) scanf("%lld",&n) #define llout(n) printf("%lld\n",n) #define strin(n) scanf(" %s",n) #define strout(n) printf("%s\n",n) #define power(a,...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33748/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33748/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @mod = dso_local local_unname...
#include <stdio.h> int main(int argc, const char * argv[]) { int a, b; scanf("%d", &a); scanf("%d", &b); printf("%d %d\n", a * b, 2 * a + 2 * b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337537/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337537/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, 2*a+2*b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337580/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337580/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
// AOJ 2446: Enumeration // 2017.11.26 bal4u@uu #include <stdio.h> #include <stdlib.h> #include <string.h> long long a[22]; int p[22]; long long gcd(long long a, long long b) { long long r; while (b != 0) r = a % b, a = b, b = r; return a; } int main() { int n, i, j, f, lim; long long m, t; double ans, pp; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337630/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337630/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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{ printf("%d",a+b-24); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337674/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337674/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,sum; scanf("%d %d",&a,&b); sum = a + b; if(sum >= 24) { sum = sum - 24; } printf("%d",sum); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337724/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337724/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n",(a+b)%24); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337782/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337782/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int abs(int n){ if(n<0){ return -1*n;}else return n;} int main(void) {int N,A,B,x,i,l,m,tmp; scanf("%d%d",&A,&B); if(A+B>=24){ printf("%d",A+B-24);} else printf("%d",A+B); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337825/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337825/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n1,n2,ns; scanf("%d %d",&n1,&n2); ns=n1+n2; if(ns>=24)ns=ns-24; printf("%d",ns); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337869/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337869/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", (a+b) % 24); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337911/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337911/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <limits.h> #include <stdbool.h> #define rep(i, n) for(int i=0; i<(n); ++i) #define max 200001 //qsort(str, n, sizeof(int), up_comp); int up_comp(const void *a, const void *b){return *(int*)a - *(int*)b;} int down_comp(const void *a...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337955/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337955/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num(){ char s[11]; int i, n; for(i=0; i<sizeof(s); i++){ s[i] = getchar(); if(s[i] == ' ' || s[i] == '\n'){ s[i] = '\0'; break; } } sscanf(s, "%d", &n); return n; } int main(void){ int n, t, a, c=0; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337999/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337999/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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> #define N 1000 int main() { static int aa[N]; int n, t, a, i, i_; double x, min; scanf("%d%d%d", &n, &t, &a); for (i = 0; i < n; i++) scanf("%d", &aa[i]); min = 1000000; i_ = -1; for (i = 0; i < n; i++) if (min > (x = fabs(a - ((double) t - aa[i] * 0.006)))) { min ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338040/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338040/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @main.aa = internal global ...
#include<stdio.h> #include<math.h> int main() { int n,t,point; while(3==scanf("%d%d%d",&n,&t,&point)) { int a[n],ok=0,i; double b[n],min; for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++) b[i]=t-a[i]*0.006; min=fabs(point-b[0]); for(i=1;i<n;i++) if(fabs(point-b[i])<min...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338091/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338091/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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() { int n, t, a, h[1000]; scanf("%d", &n); scanf("%d%d", &t, &a); int i; double dtmin = 1e18; int ans = 0; for (i=0; i<n; i++) { scanf("%d", &h[i]); double dt = fab...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338134/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338134/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,T,A; scanf("%d%d%d",&N,&T,&A); int H[N]; for(int i = 0;i < N;i++){ scanf("%d",&H[i]); } double dtemp[N]; for(int i = 0;i < N;i++){ dtemp[i] = T - H[i] * 0.006 - A; if(dtemp[i] < 0)dtemp[i] = - dtemp[i]; } ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338178/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338178/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int stack[20001]; int sp = 0; int main(void) { char temp[20010]; int i, j, len, c, t; scanf("%s", temp); len = strlen(temp); for (i = 0; i < len; i++) { switch (temp[i]) { case '\\': stack[sp] = -i; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338220/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338220/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @sp = dso_local local_unnam...
#include <stdio.h> #include <stdlib.h> #define MAX 20000 static int top = 0; static int stack[MAX]; void push(int x); int pop(void); int isEmpty(void); int isFull(void); int main(void){ int l[MAX/2][2], k = 0, A = 0; int i, tmp; char str[MAX+1]; scanf("%s", str); for(i = 0; str[i] != '\0'; i++){ swit...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338271/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338271/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> void push(int); int pop(); int s2top(int); void s2push(int,int); int s1[20000],s2[20000][2],t1=0,t2=0; int main(){ int i,sum=0,j,a,ans[20000]; char A[20000]; scanf("%s",A); for(i=0;i<strlen(A);i++){ if(A[i]=='\\'){ push(i); } else if(A[i]=='/' && t1>0){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338321/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @t1 = dso_local local_unnam...
#include<stdio.h> #include<stdlib.h> #define MAX 20000 // スタックの最大値 typedef struct{ int top; // スタックポインタ(一番上の位置) int S[MAX]; }Stack; // スタック st の初期化 void initialize(Stack *st) { st->top = 0; st->S[st->top] = 0; } // スタック st が空かどうかを確認 int isEmpty(Stack *st) { return st->top == 0; } // スタック st か...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338365/source.c" target datalayout = "e-m:e-p270: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 = type { i32,...
#include<stdio.h> #include<string.h> #include<limits.h> typedef struct group{ int x; double height;//高さ double wh;//水面の高さ int check;//処理済みかどうか int p;// \ - 0,_ - 1,/ - 2 } G; int box[20000]={};//探索して見つけたtopを格納 int z=0; int topsearch(int len,double max,G *g)//max=探索済みのtop { double m=-20000; int cnt=0; int i; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338408/source.c" target datalayout = "e-m:e-p270: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.group = type { i32,...
#include <stdio.h> #include <string.h> unsigned int Binary(int a) { int keta; int ans; ans = 0; keta = 1; while (a != 0){ ans += keta * (a % 2); a /= 2; keta *= 10; } return (ans); } int main(void) { char str[10000]; char *str2; char s[50000]; char buf[10000]; char str3[50000]; int i; char c; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338466/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338466/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define max(p,q)((p)>(q)?(p):(q)) int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;} void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);} //座圧(破壊的) int cocomp(ll*a,in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338530/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338530/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <limits.h> #include <math.h> int acs(const void *a, const void *b){return *(int*)a - *(int*)b;} /* 1,2,3,4.. */ int des(const void *a, const void *b){return *(int*)b - *(int*)a;} /* 8,7,6,5.. */ int cmp_char(con...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338574/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338574/source.c" target datalayout = "e-m:e-p270: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 { i32, ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define ll long long #define rep(i,l,r)for(ll i=(l);i<(r);i++) #define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k)) #define INF ((1LL<<62)-(1LL<<31)) #define max(p,q)((p)>(q)?(p):(q)) #define min(p,q)((p)<(q)?(p):(q)) #define bit(n,m)(((n)>>(m))&1)...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338639/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338639/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <stdlib.h> #include <string.h> int main(void){ int n,a[220],ans=0 ; scanf ("%d",&n); for (int i=0; i<n*2; i++){ scanf ("%d",&a[i]) ; } for (int i=0; i<n*2; i++){ for (int j=i+1; j<n*2; j++){ int tmp=0; if (a[i]<a[j]){ ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338697/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338697/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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", (r + r) * 3.14); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338804/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338804/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; long double l; scanf("%d", &r); l = 2 * r * M_PI; printf("%Lf", l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338848/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338848/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pi=3.14156,circumference; scanf("%d",&R); circumference=2*pi*R; printf("%f\n",circumference); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338891/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338891/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); double pi = 3.14; double Rp = R * 2 * pi; printf("%f\n", Rp); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338934/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338934/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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=0; double enshuritu=0; double kekka=0; enshuritu=3.14; scanf("%d",&R); kekka=R*2*enshuritu; printf("%f",kekka); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338978/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338978/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 INT_MAX 99999999 #define INT_MIN -99999999 #define SUCCESS 0 #define FAIL -1 #define MAX_DIM 100005 int N; //static to get inlined static void test_wrapper() { int test_cases, T; int i, j; char str[101]; int char_cnt[26][26]; char prev_ch, cur_ch;...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33902/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33902/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @N = dso_local global i32 0, ...
#include <stdio.h> int main(void) { int radius; scanf("%d", &radius); printf("%f\n", (radius * 2 * 3.14)); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339070/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339070/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n; scanf("%lf",&n); n = 2*n*3.141592; printf("%lf\n",n); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339179/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339179/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",(double)r*3.1415*2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339308/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339308/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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.141592653589 int main(){ int input; double enshu; scanf("%d",&input); enshu = (double)input * 2 * PI; printf("%f\n",enshu); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339351/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339351/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; scanf("%lf", &R); printf("%lf\n", R * 2 * 3.14159265358); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339395/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339395/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pi = 3.1415926535; scanf("%lf", &R); printf("%lf\n", 2*R*pi); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339438/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339438/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double pi = 3.1415; scanf("%d", &a); printf("%lf", 2 * pi * a); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339489/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339489/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); double answer1 = 6.28318530717958623200; printf("%lf\n", answer1*r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339531/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339531/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-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> #include <stdlib.h> int main (void) { int r; scanf("%d", &r); printf("%lf\n", 3.14159265358979323846264338327950288 * 2 * r); return EXIT_SUCCESS; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339575/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339575/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double pi = 3.14159265359; scanf("%d", &N); printf("%f\n", 2*pi*N); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339618/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339618/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; double ans, pi = 3.14159265359; scanf("%d",&R); ans = 2 * pi * R; printf("%lf\n",ans); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339669/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339669/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ float a; float b = 0; scanf("%f",&a); b = a * 2 * 3.14; printf("%f",b); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339711/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339711/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 p=0; scanf("%d",&R); p=R*3.1415926535897932384626433832795028*2; printf("%f",p); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339755/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339755/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(){ double R; scanf("%lf",&R); printf("%lf",2*R*3.141592); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339849/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339849/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", r*6.28318530717958623200); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339892/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339892/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> const long long int q = 1000000007; int main(){ int r; scanf("%d",&r); double l = 2 * 3.141592 * r; printf("%.20f",2 * 3.141592 * r); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339935/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339935/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @q = dso_local local_unname...
#include<stdio.h> int main() { int R; float pi,c; pi=3.1416; scanf("%d",&R); c=2*pi*R; printf("%f",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339979/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339979/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 n, m; int main() { int i, j, a, t=0; scanf("%d %d",&n,&m); for(i=1;i<=n;i++) for(j=1;j<=m;j++) { scanf(" %d",&a); if(a==1 && (i==1 || j==1 || i==n || j==m)) t=1; } if(!t) printf("4\n"); else printf("2\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34002/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34002/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 a; int b; double c; double C; double h; double S; double L; scanf("%d %d %lf", &a ,&b, &C); c = (a * a) + (b * b) - 2 * a * b * cos(C * M_PI / 180.0); c = sqrt(c); S = a * b * sin(C * M_PI / 180.0) / 2.0; L = a + b + c; h = S * 2 / a; printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340063/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340063/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.14159265358979 int main(void){ double a,b,c,h; scanf("%lf %lf %lf",&a,&b,&c); c=c/180*PI; h=b*sin(c); printf("%f\n", a*h/2); printf("%f\n", sqrt(a*a+b*b-2*a*b*cos(c))+a+b); printf("%f\n", h); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340106/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340106/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 pi (3.14159265359) #define rad_C (C * pi / 180) int main(void) { double a,b,c,S,L,h; int C; scanf("%lf %lf %d",&a,&b,&C); c = sqrt(a * a + b * b - 2 * a * b * cos(rad_C)); L = a + b + c; S = a * b * sin(rad_C) / 2; h = b * sin(rad_C); printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340157/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340157/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int a[3]={0}; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); m=a[0]; for(i=0;i<n;i++){ if(m>a[i]) m=a[i]; } for(i=1;i<=m;i++){ if(a[0]%i==0&&a[1]%i==0&&a[2]%i==0) printf("%d\n",i); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340207/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340207/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> typedef long long LL; typedef long double Lf; #define Rep(i,a,n)for(int i=(int)(a);i<(int)(n);i++) #define rep(i,n)Rep(i,0,n) #define Ma(x,y) ((x)>(y)?(x):(y)) #define mi(x,y) ((x)<(y)?(x):(y)) #define N 1001 #define MOD 1...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340250/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340250/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main(){ long n,m; scanf("%ld%ld",&n,&m); n-=(n>1?2:0); m-=(m>1?2:0); printf("%ld\n",n*m); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340294/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340294/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(){ long long int n,m; long long int tmp; scanf("%lld %lld",&n,&m); if (n < m){ tmp=m; m=n; n=tmp; } if ((n == 1) && (m == 1)){ printf("1\n"); return 0; } else if (n == 2){ printf("0\n"); return 0; } else if (n >= 3){ if (m == 1){ printf("%lld\n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340337/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340337/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 x[100010][2]; int ans[100010]; int n,a[3]; void f(int i,int p,int q){ ans[i]=p; a[p]++; a[q]--; } int main(){ scanf("%d%d%d%d",&n,a,a+1,a+2); for(int i=0;i<n;i++){ char s[3]; scanf("%s",s); x[i][0]=s[0]-'A'; x[i][1]=s[1]-'A'; } for(int i=0;i<n;i++){ int p=x[i][0],q=x[i][1]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340380/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340380/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @ans = dso_local local_unna...
#include <stdio.h> #include <math.h> #define PI 3.141592653589793238462643383279 #define EARTH_HANKEI 6378.1 int main(void) { double a,b,c,d; double ax1,ay1,ax2,ay2; double x1,y1,z1,x2,y2,z2; double cosine; double result; while(1) { scanf("%lf%lf%lf%lf",&a,&b,&c,&d); if(a==-1 && b==-1 && c==-1 && d==-1)bre...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340430/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340430/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, x1, x2, y1, y2; scanf("%d %d %d %d %d", &w, &h, &x, &y, &r); x1=x+r; x2=x-r; y1=y+r; y2=y-r; if(x1<=w && x2>=0 && y1<=h && y2>=0) printf("Yes\n"); else printf("No\n"); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340474/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) { 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_340517/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340517/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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||y-r<0||x+r>W||y+r>H){ printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340560/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340560/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int flag = 1; if( y-r < 0 || H < y+r ) flag = 0; if( x-r < 0 || W < x+r ) flag = 0; if( flag ) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340610/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340610/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("No\n"); ; } else{ printf("Yes\n"); }; return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340669/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340669/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&W); scanf("%d",&H); scanf("%d",&x); scanf("%d",&y); scanf("%d",&r); if (y>=r && x>=r && x+r<=W && y+r<=H) { printf("Yes\n"); } else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340719/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340719/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, r, W, H; scanf("%d" , &W); scanf("%d" , &H); scanf("%d" , &x); scanf("%d" , &y); scanf("%d" , &r); if((W<x) || (H<y)) { printf("No\r\n"); } else{ if(((x-r)<0) || ((y-r)<0)){ printf("No\r\n"); } else if((W-x >= r) && (H- y>= r)){ printf("Yes\r\...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340762/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340762/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> #define MAX 10 int main() { int i,j,c,W,H,x,y,r; char data[5][MAX]; i = 0; j = 0; while((c = getchar()) != EOF) { if(c == ' ') { i++; j = 0; }else{ data[i][j] = c; j++; } } W = atoi(data[0]); H = atoi(data[1]); x = atoi(data[2]); y = atoi(data[3]); r =...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340805/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340805/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @stdin = external local_unn...
#include <stdio.h> int main(int argc, char** argv) { int W, H, x, y, r; int num[3]; scanf("%d", &W); scanf("%d", &H); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if ((x >= r && x <= W - r) && (y >= r && y <= H - r)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340856/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340856/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 k,d,i,n,x; scanf("%d%d",&k,&d); n=k; x=d; if((k>1)&&(d==0)){ printf("No solution"); } else{ for(i=1;((i<n)&&(x>0));i++){ printf("1"); x--; } while(i<n){ printf("0"); i++; } if(x==0){ printf("0"); } else{ printf("%d",(d-i+1)); } } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3409/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3409/source.c" target datalayout = "e-m:e-p270:32:32-p271: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) { int W; int H; int x; int y; int r; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); //scanf("%d",&b); //scanf("%d",&c); if(x - r >= 0 && x + r <=W){ if(y - r >= 0 && y + r <= H){ puts("Yes"); } else{ puts("No"); } } else{ puts("No"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340942/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340942/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 > 0 && y > 0 && 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_340986/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340986/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)||(y+r>H)||(x-r<0)||(y-r<0)) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341035/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341035/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(W>= (x+r) && 0<=(x-r) && H>= (y+r) && 0<=(y-r) ){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341086/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341086/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...