Source_Code
stringlengths
69
484k
IR_Original
stringlengths
2.05k
17.9M
#include <stdio.h> int isDefined( int n, int n1, int n2, int sw[ 2 ][ 10000 ] ){ int i, j, k; int care[ 2 ]; care[ 0 ] = n1; care[ 1 ] = n2; for( j = 0; j < 2; j++ ){ for( i = 0; i < n; i++ ){ if( sw[ j ][ i ] == 0 ){ sw[ j ][ i ] = -1; care[ j ]--; return( isDefined( n, c...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338508/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338508/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_338566/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338566/source.c" target datalayout = "e-m:e-p270: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 <string.h> #include <stdlib.h> #include <stdint.h> // uint64_t // > NUM_MAX*digit(100000) #define BUF_SIZE 800000 int get_int(void) { int num; #ifdef BUF_SIZE char line[BUF_SIZE]; if(!fgets(line, BUF_SIZE, stdin)) return 0; sscanf(line, "%d", &num); #else #error #endif return num...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338623/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338623/source.c" target datalayout = "e-m:e-p270: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 N; scanf("%d",&N); int L[2*N]; int i,j,k,tmp,x=0; for(i=0;i<2*N;i++) scanf("%d ",&L[i]); for (i=0; i<2*N; ++i) { for (j=i+1; j<2*N; ++j) { if (L[i] > L[j]) { tmp = L[i]; L[i] = L[j]; L[j] = tmp; } } } for(i=0;i<2 * N...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338674/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338674/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 cmpfunc (const void * a, const void * b) { if( *(int*)a - *(int*)b < 0 ) return -1; if( *(int*)a - *(int*)b > 0 ) return 1; if( *(int*)a - *(int*)b == 0 ) return 0; } int main() { int n, i, sum = 0; scanf("%d", &n); int arr[2*n...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338724/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338724/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M 1000000007 #define msum(a,b) ((a+b)%M) #define mmult(a,b) ((a*b)%M) int main(){ int t; //scanf("%d",&t); t=1; while(t-->0){ int n; scanf("%d",&n); char *s; s=malloc(n*sizeof(char)); scanf("%s",s); int max=0; int pos=0; int start=-1; while(++start<...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33879/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33879/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int R; scanf("%d",&R); printf("%f",2*R*3.14); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338832/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338832/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",(R+R)*3.14); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338876/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338876/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c,R,pi=3.1416; scanf("%f",&R); c=2*pi*R; printf("%f",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338919/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338919/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 c,pi=3.14159; scanf("%d",&r); c=2*pi*r; printf("%f\n",c); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338962/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338962/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 circumference; scanf("%d", &R); circumference = 2*3.1416*R; printf("%.2f\n", circumference); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339004/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339004/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> float pi = 3.1415; int main(void){ int r; float res; scanf("%d",&r); res = 2*r*pi; printf("%f",res); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339048/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339048/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @pi = dso_local local_unnam...
#include <stdio.h> int main() { int r; scanf("%d",&r); double pi=3.142857142857,ans; ans=2*r; ans*=pi; printf("%.8lf",ans); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339099/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339099/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ensyuu; scanf("%d",&R); ensyuu=R*2*3.14; printf("%f",ensyuu); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339141/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339141/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a; scanf("%lf",&a); printf("%lf\n",a*2*3.1415); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339185/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339185/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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.14159 int main(void) { int a ; scanf("%d", &a) ; printf("%f", 2*pi*a) ; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339279/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339279/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 C; C = 2*3.14159*R; printf("%.2lf\n",C); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339321/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <algorithm> #include <vector> #include <string> using namespace std;*/ int main(void) { double x; scanf("%lf", &x); printf("%.6f", x * 2 * 3.1415926535); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339408/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ll; int main() { double l,r; scanf("%le",&r); l=2*r*M_PI; printf("%f\n",l); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339451/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339451/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 2*acos(0.0) int main() { int r; double c; scanf("%d",&r); if(r>=1 && r<=100) { c=2*pi*r; printf("%.18lf\n",c); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339495/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339495/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
//abc163A #include <malloc.h> #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> int main(void) { float n, k, i, cou=0, tmp; scanf("%f", &n); printf("%f", n * 2*M_PI); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339538/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339538/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(){ int N,M; scanf("%d",&N); printf("%lf\n",2*3.141592*(double)N); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339581/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339581/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i; scanf("%lf",&i); printf("%.20lf",i*2.00*acos(-1.00)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339624/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339624/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> void main() { float radius; float length; scanf("%f", &radius); length = 2 * M_PI * radius; printf("%.2f\n", length); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339675/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339675/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ unsigned int r; scanf("%d",&r); printf("%f\n", r * 3.14 * 2); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339725/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339725/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> float PI = 3.1416; int main() { float radius, ci; // printf("\nEnter the radius of Circle : "); scanf("%f", &radius); ci = 2 * PI * radius; printf("%f", ci); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339776/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339776/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @PI = dso_local local_unnam...
#include<stdio.h> int main(void) { int r; scanf("%d", & r); printf("%f", r * 6.283185); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339826/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339826/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("%f",&r); printf("%f",3.1415*2*r); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339912/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339912/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main(void){ int n; scanf("%d",&n); double pi = 3.1415926535; printf("%f\n",pi*n*2); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339956/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339956/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 ans[100005]; int move[100005][2]; int pos[505][505]; int sum; int main(){ int x, y, x0, y0; int sx, sy; int i, j; char cmd[100005]; int max; scanf("%d %d %d %d", &x, &y, &x0, &y0); scanf("%s", cmd); sx = x0; sy = y0; for(i=0; cmd[i]!='\0'; i++){ if(cmd[i] == 'U' && x0 > 1) x0-...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 consta...
#include <stdio.h> #include <stdlib.h> int FUNC00 ( ) { int VAR00 = 0 ; int VAR01 = getchar_unlocked ( ) ; if ( VAR01 < 48 || 57 < VAR01 ) return VAR01 ; while ( 47 < VAR01 && VAR01 < 58 ) { VAR00 = 10 * VAR00 + ( VAR01 & 0xf ) ; VAR01 = getchar_unlocked ( ) ; } return VAR00 ; }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340040/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340040/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" %struct._IO_FILE = type { i...
#include <stdio.h> #include <math.h> #include <string.h> int main() { double a, b, C; double S, L, h; scanf("%lf %lf %lf", &a, &b, &C); S = 0.5*(a*b*(sin(C*M_PI/180))); L = a+b+sqrt(a*a+b*b-2*a*b*(cos(C*M_PI/180))); h = b*(sin(C*M_PI/180)); printf("%lf\n%lf\n%lf\n", S, L, h);...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340091/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340091/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a, b, c; scanf("%d %d %d", &a, &b, &c); printf("%f\n%f\n%f\n", a * b * sin(M_PI * c / 180) / 2, a + b + sqrt(a * a + b * b - 2 * a * b * cos(M_PI * c / 180)), b * sin(M_PI * c / 180) ); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340134/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340134/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,C; scanf("%d %d %d\n",&a,&b,&C); printf("%.8lf\n%.8lf\n%.8lf\n",a*b*sin(C*M_PI/180.0)/2,a+b+sqrt(a*a+b*b-2.0*a*b*cos(C*M_PI/180.0)),b*sin(C*M_PI/180.0)); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340178/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340178/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 getMin(int data[], int n){ int min = data[0]; int i; for(i=0; i<n; i++){ if(min > data[i]){ min = data[i]; } } return min; } int main(){ int data[10]; int n; int i; int min; scanf("%d", &n); for(i=0; i<n; i++){ scanf("%d", &data[i]); } min = getMin(data, n); i=1; while(i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340228/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340228/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> long long int absolute(long long int a) { return a < 0 ? -a : a; } int main() { long long int a, b; scanf("%lld%lld", &a, &b); printf("%lld", absolute((a - 2)*(b - 2))); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340279/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340279/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 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_340321/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340321/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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> #define NMAX 100 #define INF 1e8 #define EPS 1e-8 #define min(a, b) ((a) < (b) ? (a) : (b)) struct node { int id; int weight; }; int dist[NMAX], len[NMAX], heap[NMAX], heap_index[NMAX], heapsize; struct node list[NMAX][NMAX]; void downheap(int k); void upheap...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340365/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340365/source.c" target datalayout = "e-m:e-p270: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 { i32, ...
#include<stdio.h> #include<stdlib.h> typedef long long int int64; #define MAX(a,b) ((a)>(b)?(a):(b)) int64 calc(const int *x,const int n,const int l){ int64 *front=(int64 *)calloc(n+1,sizeof(int64)); int64 *back=(int64 *)calloc(n+1,sizeof(int64)); int i,j; for(i=1;i<n;i++) front[i]=front[i-1]+x[i-1]+x[i]; ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340408/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340408/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 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("Yes\n"); } else { printf("No\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340459/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340459/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)<=W) && ((x-r)>=0) && ((y+r)<=H) && ((y-r)>=0)) { printf("Yes\n"); } else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340501/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340501/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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",&W); scanf("%d",&H); scanf("%d",&x); scanf("%d",&y); scanf("%d",&r); if((r<=x&&x<=W-r)&&(r<=y&&y<=H-r)){ printf("Yes"); }else{ printf("No"); } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340545/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340545/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) puts("No"); else puts("Yes"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340596/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340596/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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"); }else 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_340639/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340639/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int s, p, q, t; s=x+r; p=x-r; q=y+r; t=y-r; if(s<=W && q<=H){ if(p>=0 && t>=0) printf("Yes\n"); else printf("No\n"); }else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340682/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340682/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 w, h, x, y, r; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); if(x + r <= w) if(r <= x) if(y + r <= h) if(r <= y){ printf("Yes\n"); return 0; } printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340732/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340732/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 <= h && x - r >= 0 && y + r <= h &&y - r >= 0) { printf("Yes\n"); } else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340776/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340776/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(r > x || r > y || W < x+r || H < y+r){ printf("No"); } else { printf("Yes"); } printf("\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340819/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340819/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340862/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340862/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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; int R, L, U, D; scanf("%d%d%d%d%d",&W,&H,&x,&y,&r); R = x + r; L = x - r; U = y + r; D = y - r; if(R <= W && L >= 0 && U <= H && D >= 0) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340905/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340905/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int is_horizontal = ((x - r) >= 0) && ((x + r) <= W); int is_vertical = ((y - r) >= 0) && ((y + r) <= H); if (is_horizontal && is_vertical) puts("Yes"); else puts("No"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340949/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340949/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 get(char c) { if(c=='a') return 0; else if(c=='b') return 1; else if(c=='c') return 2; else if(c=='d') return 3; else if(c=='e') return 4; else if(c=='f') return 5; else if(c=='g') return 6; else if(c=='h') ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341/source.c" target datalayout = "e-m:e-p270:32:32-p271: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 cons...
#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>=W) { printf("No\n"); }else if(y+r>H || y>=H){ printf("No\n"); }else if(x-r<0 || x<=0){ printf("No\n"); }else if(y-r<0 || y<=0){ printf("No\n"); }else{ printf...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341041/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341041/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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) <= W) && ((x - r) >= 0) && ((y + r) <= H) && ((y - r) >= 0)) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341085/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341085/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_341128/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341128/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<-100){ printf("??¨??????\n") ; } else{ if(x>100){ printf("??¨??????\n") ; } else{ if(y<-100){ printf("??¨??????\n") ; } else{ if(y>100){ printf("??¨??????\n") ; } else{ if(W...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341171/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341171/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W,H,x,y, r=0; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); if(x-r>=0&&x+r<=W){ if(y-r>=0&&y+r<=H){ a=1; } } else{ a=0; } if(a==1){ printf("Yes\n"); } else if(a==0){ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341214/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341214/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, button, sum; int main() { scanf("%d", &n); for(int i=0;i<n;i++) { scanf("%d", &button); sum+=button; } if((n!=1 && sum==n-1) || (n==1 && sum==1)) puts("YES"); else puts("NO"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34128/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34128/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include <stdio.h> int main(){ int W,H,x,y,r; scanf("%d %d %d %d %d", &W,&H,&x,&y,&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_341322/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341322/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 || W < (x + r)) { printf("No\n"); } else if ((y - r) < 0 || H < (y + r)) { printf("No\n"); } else { printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341366/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341366/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_341416/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341416/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && y-r>=0 && x+r<=W && y+r<=H){ printf("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341474/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341474/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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\n", &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_341524/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341524/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 argc, const char * argv[]) { 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("Yes\n"); }else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341568/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341568/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_341625/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341625/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, z = 0; scanf("%d", &W); scanf("%d", &H); scanf("%d", &x); scanf("%d", &y); scanf("%d", &r); if(x + r > W || x - r < 0){ z = z + 1; } if(y + r > H || y - r < 0){ z = z + 1; } if(z != 0){ printf("No\n"); }else{ printf("Yes\n"); }...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341669/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341669/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 (r <= x && x <= W-r){ if(r <= y && y <= H-r){ printf("Yes\n"); } else printf("No\n"); } else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341711/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341711/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(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_341755/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341755/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && y - r >= 0 && x + r <= W && y + r <= H) { printf("Yes\n"); } else { printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341799/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341799/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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_341841/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341841/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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)puts("No"); else if(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H)puts("Yes"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341885/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341885/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && x>0) && (h>y && y>0)) { if((w>=x+r && x+r>=0) && (h>=y+r && y+r>=0)) printf("Yes\n"); else printf("No\n"); } else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341928/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341928/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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){ if(y-r<0||y+r>H){ printf("No\n"); }else if(y-r>=0&&y+r<=H){ printf("No\n"); } }else if(x-r>=0&&x+r<=W){ if(y-r<0||y+r>H){ printf("No\n"...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341971/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341971/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #ifdef DEBUG #include<conio.h> #endif // DEBUG int main () { #ifdef DEBUG freopen("input.txt", "r", stdin); #endif // DEBUG 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("Yes\n"); else ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342013/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342013/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(0<=x-r && 0<=y-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_342057/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342057/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t,n,k,ans,x,i; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&k); x=k/2; if(k%2!=0) { x=x+1; } printf("%d\n",n-x); for(i=x;i<=n;i++) { if(i==k) { continue ; } printf("%d ",i); } printf("\n"); } }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34210/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34210/source.c" target datalayout = "e-m:e-p270:32:32-p271: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,f; scanf("%d %d %d %d %d",&W,&H,&x,&y,&r); f=0; if(x+r>W)f=1; if(y+r>H)f=1; if(r>x)f=1; if(r>y)f=1; if(f==0)printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342143/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342143/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 && x<= w - r) && (r <= y && y<= h - r)) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342187/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342187/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> #include<stdlib.h> void nextmoment(int *phour, int *pminute, int h, int m) { int hour = *phour; int minute = *pminute; minute++; if (minute == m) { minute=0; hour++; } if (hour == h) { hour=0; } *phour=hour; *pminute=minute; return; } int check_mirror(int *phour, int *pminute, i...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34223/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34223/source.c" target datalayout = "e-m:e-p270: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.timestruct = type { i...
#include <stdio.h> int main(void) { int w, h, x, y, r; scanf("%d%d%d%d%d", &w, &h, &x, &y, &r); printf("%s\n", ((x - r) < 0 || (y - r) < 0 || (x + r) > w || (y + r) > h) ? "No" : "Yes"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342273/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342273/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 + r&&x <= w - r&&y >= 0 + r&&y <= h - r) printf("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342323/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342323/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("Yes\n"); } else{ printf("No\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342367/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342367/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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); int a,b; a = x + r; b = y + r; if(a <= 0){ printf("No\n"); }else{if(b <= 0){ printf("No\n"); }else{if(W >= a && H >= b){ printf("Yes\n"); }else{ printf("No\n"); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342417/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342417/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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(0<=x-r && 0<=y-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_342460/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342460/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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("Yes\n"); else printf("No\n"); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342510/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342510/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 if(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){ printf("Yes\n"); } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342554/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342554/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> char input[10001]; int main(void) { int i, len, j, joi = 0, ioi = 0; while (scanf("%s",input) != EOF) { joi = 0; ioi = 0; len = strlen(input); for (i = 0; i < len-2; i++) { if (strncmp("JOI", &input[i], 3) == 0) { ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342598/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342598/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> #include <string.h> int main(){ int joi,ioi,i,j; char str[10001]; char *p; while(scanf("%s",str) != EOF){ joi = 0; ioi = 0; i = 0; p = str; while(*p){ if(!strncmp(p,"JOI",3)){ joi++; }else if(!strncmp(p,"IOI",3)){ ioi++; } *p++; } printf("%d\n%d\n",joi,ioi); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342662/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342662/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <stdio.h> int main() { int i, N, L, a[100001]; scanf("%d %d", &N, &L); for (i = 1; i <= N; i++) scanf("%d", &(a[i])); int max = 0, argmax = 0; for (i = 1; i < N; i++) { if (a[i] + a[i+1] > max) { max = a[i] + a[i+1]; argmax = i; } } if (max < L) printf("Impossible\n"); else { printf("P...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342705/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342705/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include <malloc.h> #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> //ABC109C int compare_int(const void *a, const void *b) { //sort return *(int*) a-*(int*) b; } int main(void) { int n, k, i, cou=0, tmp; scanf(" %d", &n); int x[ ++n]; for(i=0; i<n; i++) scanf(" %d", &x[i]); ...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342749/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342749/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 TEMP 0x3FFFFFFF int gcd(int a,int b){ if(!b) return a; else gcd(b,a % b); } int abs(int n){ if(n < 0) n *= -1; return n; } int main(int argc, char const *argv[]){ int n,x,*city; int min = TEMP; scanf("%d%d",&n,&x); city = (int *)malloc(sizeof(int) * n); for (in...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342806/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342806/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...
#include<stdio.h> int main() { int t,n,k,i,j,f,l; scanf("%d",&t); while(t--) { scanf("%d %d",&n,&k); int a; if(n==1) printf("0\n"); else { f=(k+1)/2; l=n-f; printf("%d\n",l); for(i=0;i<n-k;i++) { a=n-i; printf("%d ",a); } for(j=0;j<k-f;j++) { a=f+j; printf("%d ",...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34285/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34285/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int n, m, a[100], b[101],l,r; int main() { scanf("%i%i",&n,&m); b[0] = 0; for(int i=0;i<n;i++) { scanf("%i",a+i); b[i+1] = a[i]+b[i]; } int sum = 0; for(int i=0;i<m;i++) { scanf("%i%i",&l,&r); if(b[r]-b[l-1]>0) sum+=b[r]-b[l-1]; } printf("%i\n",s...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34290/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34290/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_addr ...
#include<stdio.h> int main() { int i,t,s; s=0; for(i=0;i<4;i++){ scanf("%d",&t); s=s+t; } printf("%d\n",s/60); printf("%d\n",s%60); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342943/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342943/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 time; int i; int total = 0; for (i = 0; i < 4; i++){ scanf("%d", &time); total += time; } printf("%d\n%d\n", total / 60, total % 60); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342994/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342994/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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,tm; for(x=0,i=0;i<4;i++){ scanf("%d",&tm); x+=tm; } printf("%d\n%d\n", x/60,x%60); return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343072/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343072/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, i; int t, sum; sum = 0; for (i = 0; i < 4; i++){ scanf("%d", &t); sum += t; } x = sum / 60; y = sum % 60; printf("%d\n%d\n", x, y); return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343115/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343115/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[100] = {0}, n, max = 0, i; while (scanf("%d", &n) != EOF){ num[n-1]++; } for (i = 0; i < 100; i++){ if (max < num[i]){ max = num[i]; } } for (i = 0; i < 100; i++){ if (max == num[i]){ printf("%d\n", i + 1); } } return (0); }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343159/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343159/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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, tmp, max; int count[101] = {0}; while( scanf("%d",&tmp) != EOF ) { count[tmp]++; } max = 0; for(i = 1; i < 101; i++ ) { if(max < count[i]) { max = count[i]; } } for(i = 1; i < 101; i++ ) { if(count[i] == max ) { printf("%d\n",i) ; } } return 0; }
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343201/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343201/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 num[101]; int k; for(k=1;k<=100;k++){ num[k]=0; //????????´??°??????????????° } while(scanf("%d",&k)!=EOF){ num[k]++; } int freq;//????????? int maxnum=0;//????????????????????° for(k=100;k>=1;k--){ if(maxnum <= num[k]){ maxnum = num[k]; fr...
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_343245/source.c' source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_343245/source.c" target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-pc-linux-gnu" @.str = private unnamed_add...