Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#include<stdio.h>
int main()
{
int A,B;
int t;
scanf("%d %d",&A,&B);
t=A+B;
if(t>=24) t-=24;
printf("%d",t);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337673/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337673/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,result;
scanf("%d%d",&a,&b);
if (a+b>=24) result=a+b-24;
else result=a+b;
printf("%d",result);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337723/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337723/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 a,b,flag,i,str1=0,str2=0;
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_337767/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337767/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
long long int x,r;
scanf("%I64d",&n);
x=n/7;
r=n%7;
if(r>2 && r<6)
printf("%I64d %I64d",x*2,(x*2)+2);
else if(r==6)
printf("%I64d %I64d",x*2+1,(x*2)+2);
else if(r==2)
printf("%I64d %I64d",x*2,(x*2)+2);
else ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33781/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33781/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include<stdio.h>
int main(){
int a,b;
scanf("%d %d",&a,&b);
if(a+b < 24) printf("%d\n",a+b);
else printf("%d\n",a+b-24);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337860/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337860/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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(0<=sum && sum<24){
printf("%d",sum);
}else{
printf("%d",sum-24);
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337903/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337903/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
#define ll long long
void swap (int *x, int *y) {
int temp;
temp = *x;
*x = *y;
*y = temp;
return;
}
long int gcd(long int a, long int b){
long int c;
while (b > 0){
c = a % b;
a = b;
b = c;
}
return a;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337947/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337947/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,t,a;
scanf("%d", &n);
scanf("%d %d", &t, &a);
long h[n];
for (int i = 0; i < n; i++) {
scanf("%ld", &h[i]);
}
double temp;
double min = -1;
int place;
for (int i = 0; i < n; i++) {
temp = t - h[i]*0.006;
temp -= a;
if (temp < 0) {
temp ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_337990/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_337990/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 i,n,b,t,a,h,k,r=1e9;
scanf("%f%f%f",&n,&t,&a);
for(i=0;i<n;i++){
scanf("%f",&h);
k=fabsf(t-h*0.006-a);
if(r>k){
r=k;
b=i;
}
}
printf("%d",(int)(b+1));
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338032/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338032/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(){
int n,t,a;
scanf("%d",&n);
scanf("%d %d",&t,&a);
int h[n];
for(int i = 0; i < n;i++){
scanf("%d",h+i);
}
int c;
double x,max;
c = 0;
max = 100000;
for(int i = 0; i < n;i++){
x = a - (t - h[i]*0.006);
if(x < 0) x = -x;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338090/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338090/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
// Your code here!
int n,t,a,h[1000];
scanf("%d %d\n%d\n",&n,&t,&a);
for(int i=0;i<n;i++){
int b;
scanf("%d",&b);
h[i]=b;
}
/*printf("%d\n%d\n%d\n",n,t,a);
for(int i=0;i<n;i++){
printf("%d ",h[i]);
}*/
long ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338133/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338133/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main()
{
int n;
scanf("%d", &n);
int t, a;
scanf("%d %d", &t, &a);
int h[1003];
int i;
for (i = 0; i < n; i++)
scanf("%d", &h[i]);
int ans = 0;
double min = 2000000000;
double k;
for (i = 0; i < n; i++)
{
k = t - 0.00... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338191/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338191/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 MAXLEN 20000
int garea,gareas[(MAXLEN/2)+1],gcnt;
int getArea( char *inputs, int start, int end )
{
int i;
int ravine,water;
gareas[gcnt]=water=ravine=0;
for( i=start; i<=end; i++ ) {//&& '\0'!=*(inputs+i)
if( '\\'== *(inputs+i) ) {
water+=(ravi... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338234/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338234/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@gareas = dso_local local_u... |
#include<stdio.h>
#include<string.h>
#define N 20000
typedef struct Data{
int area,pos;
} Data;
Data t[N];
int u[N];
int n,i;
char str[N];
int T,U;
int ans,A;
Data B,X;
void D_push(Data );
Data D_pop();
void push(int);
int pop();
void init();
Data makeData(int,int);
int main(){
init();
scanf("%s",str... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338278/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338278/source.c"
target datalayout = "e-m:e-p270: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.Data = type { i32, ... |
#include<stdio.h>
#include<string.h>
#define MAX 20001
typedef struct Index{
int idx;
int S;
}Index;
void push1(int S[],int x,int *top){
S[*top] = x;
(*top)++;
return;
}
void push2(Index S[],int idx,int s,int *top){
S[*top].idx = idx;
S[*top].S = s;
(*top)++;
return;
}
int pop(int S[],int *top){
(*top)--;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338328/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338328/source.c"
target datalayout = "e-m:e-p270: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.Index = type { i32,... |
#include <assert.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#define BUF_SIZE (20000+1) //入力バッファサイズ(ヌル終端領域込み)
#define INVALID_AREA (-1) // 水たまりの面積の無効値
struct Stack{
size_t capacity;
size_t size;
int* buf;
};
struct Stack* stack_new(size_t capacity)
{
struct Stac... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338371/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338371/source.c"
target datalayout = "e-m:e-p270: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 { i64,... |
#include <stdio.h>
int xstack[20000];
int xtop;
int lefts[20000];
int vols[20000];
int pooltop;
int main(){
int c;
for(int x = 0; (c = getchar()) != '\n'; x++){
if(c == '\\'){
xstack[xtop++] = x;
} else if (c == '/'){
if(xtop == 0) continue;
int last_x = x... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338421/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338421/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@xstack = dso_local local_u... |
#include<stdio.h>
#define int long long
int n,i,j,d[2010][2010]={0};
int MAX(int a,int b){return a<b?b:a;}
int pr(int i){return (i+n-1)%n;}
int nx(int i){return (i +1)%n;}
signed main(){
scanf("%lld",&n);
for(i=0;i<2010*2010;i++)d[i/2010][i%2010]=-1000000000;
for(i=0;i<n;i++)scanf("%lld",&d[1][i]);
for(i=1;i<n... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338472/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338472/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@d = dso_local global [2010... |
// AOJ 2151: Brave Princess Revisited
// 2017.11.11 bal4u@uu
#include <stdio.h>
#include <string.h>
#define TM 0
#if TM
#include <time.h>
#endif
typedef struct { int t, n, m; } QUE;
QUE que[20001]; int qsize;
#define PARENT(i) ((i)>>1)
#define LEFT(i) ((i)<<1)
#define RIGHT(i) (((i)<<1)+1)
void min_heapify(int i... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338537/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338537/source.c"
target datalayout = "e-m:e-p270: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.QUE = type { i32, i... |
#include<stdio.h>
#include<stdlib.h>
#define ll long long
int downll(const void*a, const void*b){return*(ll*)a<*(ll*)b?1:*(ll*)a>*(ll*)b?-1:0;}
void sortdown(ll*a,int n){qsort(a,n,sizeof(ll),downll);}
ll a[100010];
int main(){
int n,m;
scanf("%d%d",&n,&m);
for(int i=0;i<m;i++){
int t;
scanf("%d",&t);
a[t]=-1;... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338580/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338580/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
int max(int a,int b){if(a>b){return a;}return b;}
int... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338638/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338638/source.c"
target datalayout = "e-m:e-p270: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.sd = type { i32, i3... |
#include <stdio.h>
#include <stdlib.h>
#define MAX 1000
int comp(const void *a, const void *b) {
return *(int *)a - *(int *)b;
}
int main(void) {
int n, i, ans;
int l[MAX];
scanf("%d", &n);
for (i = 0; i < 2 * n; i++) {
scanf("%d", l + i);
}
qsort(l, 2 * n, sizeof(int), comp);
ans = 0;
for (i = ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338689/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338689/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
void bubbleSort(int numbers[], int array_size)
{
int i, j, temp;
for (i = 0; i < (array_size - 1); i++) {
for (j = (array_size - 1); j > i; j--) {
if (numbers[j-1] > numbers[j]) {
temp = numbers[j-1];
numbers[j-1] = numbers[j];
numbers[j] = temp;
}
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338739/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338739/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 M_PI acos(-1.0);
int main (void)
{
int R;
double area;
const double PI=acos(-1.0);
scanf("%d",&R);
area = (2 * PI * R);
printf("%lf",area);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338803/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338803/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
long double l;
scanf("%lf",&n);
l = 2*n*(double)3.1415;
printf("%.4Lf",l);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338847/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338847/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 c;
scanf("%d",&R);
c=2*3.1416*R;
printf("%lf",c);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338890/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338890/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
float b;
scanf("%d",&a);
b=0;
b=(a+a)*3.14159;
printf("%f\n",b);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338933/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338933/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
double r;
scanf("%d", &R);
r=2*3.14*R;
printf("%f",r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_338977/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_338977/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 StartProgram()
{
long double circleRadius, circumReference;
scanf("%Lf", &circleRadius);
circumReference = 2 * M_PI * circleRadius;
printf("%Lf", circumReference);
return ;
}
int main(int argc, const char * argv[])
{
StartProgram();
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339019/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339019/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,pi=3.1416;
scanf("%d",&r);
circumference=2*r*pi;
printf("%.2f\n",circumference);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339062/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339062/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d",&k);
float p;
p=2*3.14*k;
printf("%lf",p);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339112/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339112/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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()
{
long long int r;
scanf("%lld", &r) ;
printf("%.20lf\n",2*pi*(r*1.0)) ;
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339156/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339156/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d %d",&k,&d);
if((k>1)&&(d==0)) printf("No solution\n");
else if((k==1))printf("%d\n",d);
else
{
printf("1");
for(i=0;i<k-2;i++)
printf("0");
printf("%d\n",d-1);
}
//scanf("%d",&i);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3392/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3392/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr co... |
#include <stdio.h>
int main()
{
int n,k,i,ans=0;
scanf("%d %d",&n,&k);
for(i=0;i<k;i++)
{
if(n%10!=0)
{
n=n-1;
}
else
n=n/10;
}
printf("%d",n);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33925/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33925/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv){
double pi = 3.14159265;
int r;
if(scanf("%d", &r)==0){perror("scanf"); exit(1);}
printf("%f\n",2*r*pi);
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 a,r;
scanf("%f",&r);
a = r * 6.28318530717958623200;
printf("%f",a);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339336/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339336/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
//set many funcs template
//Ver.20190820
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#include<time.h>
#include<assert.h>
#include<sys/time.h>
#define inf 1072114514
#define llinf 4154118101919364364
#define mod 1000000007
#define pi 3.1415926535897932384
unsigned long long seed;
unsign... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_33938/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_33938/source.c"
target datalayout = "e-m:e-p270: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.timeval = type { i64,... |
#include<stdio.h>
#include<math.h>
int main()
{
int a;
scanf("%d", &a);
double m=acos(-1);
double ma=2*(m*a);
printf("%lf\n", ma);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339466/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339466/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 l;
double sum;
scanf("%d",&l);
sum=l*2*M_PI;
printf("%lf",sum);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339552/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339552/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
int r;
double a=0.0;
scanf("%d",&r);
a = 2*r*M_PI;
printf("%lf",a);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339596/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339596/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(void){
int r;
scanf("%d", &r);
printf("%lf", 2*r*M_PI);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339646/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339646/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <math.h>
int main(void){
int R;
double ans;
scanf("%d", &R);
ans = 2*M_PI*R;
printf("%f", ans);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 i;
scanf("%g", &i);
printf("%f", i * 2 * 3.14159265);
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define PI 3.141592653589793
#define MOD 1000000007
//qsort用、昇順
int compare_int(const void *a, const void *b)
{
return *(int*)a-*(int*)b;
}
//qsort(data, 10, sizeof(int), compare_int)
int main(){
double r;
scanf("%lf", &r);
printf("%lf\n"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339790/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339790/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, pi;
pi = 3.14159265358979323846;
scanf("%lf",&a);
printf("%10.10f\n", 2 * a * pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339840/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339840/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
int main(){
int r;
scanf("%d", &r);
printf("%f",2.0 * M_PI * r);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339884/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339884/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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;
double pi = M_PI;
scanf("%d", &R);
printf("%lf\n", 2*R*pi);
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339927/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339927/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 PI 3.1415926535
int main(void){
int R;
double result;
if(scanf("%d",&R) != 1){
printf("***SCANF ERROR***\n");
exit(1);
}
result=2*PI*(double)R;
printf("%.10f\n",result);
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_339970/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_339970/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
typedef struct node
{
int key;
int priority;
struct node *parent;
struct node *child[2];
} *nodePointer;
nodePointer init(int,int);
nodePointer insert(nodePointer,int,int);
nodePointer find(nodePointer,int);
nodePointer delete(nodePointer,int);
nodePointer... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340011/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340011/source.c"
target datalayout = "e-m:e-p270: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>
#define O 0
#define I 1
#define E 8
typedef struct node{
int key;
int priority;
struct node *left;
struct node *right;
}node;
node * Delete(node **,int);
node * _delete(node **,int);
int find(node *p,int x){
while(p!=NULL){
if(p->key==x){
return I;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340055/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340055/source.c"
target datalayout = "e-m:e-p270: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<math.h>
int main() {
double a, b, c, C, S, L, h;
double pi = 3.14159265358979;
scanf("%lf %lf %lf", &a, &b, &C);
S = (a * b * sin(C * pi / 180)) / 2;
c = sqrt(a * a + b * b - 2 * a * b * cos(C * pi / 180));
L = a + b + c;
h = S * 2 / a;
printf("%lf\n%lf\n%lf\n", S, L , h);
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340105/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340105/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/* 10025 */
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
int main(){
double s,l,h;
double a,b,c;
double num,num2,num3;
scanf("%lf %lf %lf",&a,&b,&c);
//s = 0.5 * a * b * sin(c * 3.1459/180.0);
num = (b * sin(c * 3.1415926535/180.0));
num2 = (a - b * cos(... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340149/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340149/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main (void) {
int c1 = 0, c2 = 0, c3 = 0, c4 = 0;
int n = 0, m = 0, i = 0;
int * bus = NULL;
int * trolley = NULL;
int min_b =0, min_t = 0;
int sum_c1c2_b =0, sum_c1c2_t = 0;
scanf("%d %d %d %d", &c1, &c2, &c3, &c4);
scanf("%d %d", &n, &m);
bus... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3402/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3402/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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>
#include<math.h>
int main(){
int n,a,b,c,i,j,k,tmp;
scanf("%d",&n);
if(n==2){
scanf("%d%d",&a,&b);
if(a>b){tmp=a;a=b;b=tmp;}
j=a/2;
for(i=1;i<=j;i++){
if(a%i==0){
if(b%i==0){
printf("%d\n",i);
}
}
}
if(b%a==0)printf("%d\n",i);
}
if(n==3){
scanf("%d%d%d",&a,&b,&c);... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340242/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340242/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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>
/*
隣接している個数が偶数こなら裏になる
中心 裏
辺 オモテ
角 オモテ
*/
int main(void){
long long n,m;
scanf("%lld %lld",&n,&m);
if(m==1&&n!=1){
printf("%lld\n",n-2);
}else if(n==1&&m!=1){
printf("%lld\n",m-2);
}else if(m==1&&n==1){
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340293/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340293/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdbool.h>
#include <stdio.h>
#include <inttypes.h>
bool is_dot(uint64_t n, uint64_t m)
{
return n == 1 && m == 1;
}
bool is_bar(uint64_t n, uint64_t m)
{
return n == 1 || m == 1;
}
uint64_t max(uint64_t a, uint64_t b)
{
return a > b ? a : b;
}
uint64_t bar_result(uint64_t n, uint64_t m)
{
return ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340336/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340336/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 map[100][100], flag = 1;
int n, m, i, j;
scanf("%d%d", &n, &m);
if( n == 1 && m == 1)
{
printf("1\n");
exit(0);
}
for( i = 1; i <= n; i++)
for( j = 1; j <= m; j++)
scanf("%d", &map[i][j]);
for( j = 1; j <= m; j++)
if( map[1][j] == 1 || map[n][j] ... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34038/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34038/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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; //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_340473/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340473/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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){
printf("No\n");
}
else if(W<x+r){
printf("No\n");
}
else if(y<r){
printf("No\n");
}
else if(H<y+r){
printf("No\n");
}
else{
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340516/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340516/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int W,H,x,y,r,a,b,c,d;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
a = x+r;
b = x-r;
c = y+r;
d = y-r;
if(0 <= a && a <= W && 0 <= b && b <= W && 0 <= c && c <= H && 0 <= d && d <= H)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340567/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340567/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,k,i,c;
scanf("%d%d",&n,&k);
if(k == n)
printf("-1");
else if(k == n-1)
{
for(i=1;i<=n;i++)
printf("%d ",i);
}
else
{
printf("%d ",n);
c=k;
for(i=2;i<=n;i++)
{
if(c == 0)
break;
printf("%d ",i);
c--;
}
printf("1 ");
for(;i<n;i++)
printf("%... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34061/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34061/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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;
int ans=1;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x-r<0)ans=0;
if(r+x>W)ans=0;
if(y-r<0)ans=0;
if(y+r>H)ans=0;
if(ans)printf("Yes\n");
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340653/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340653/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int tmp;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r );
if(x >= 0 + r && y >= 0 + r && x <= w - r && y <= h - r) {
printf("Yes\n");
} else {
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340697/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340697/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_340747/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340747/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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&&h>=y+r&&0<=x-r&&0<=y-r)
{
printf("Yes\n");
}
else
{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340790/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340790/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x-r>=0 && x+r<=W && y-r>=0 && y+r<=H){
printf("Yes\n");
}
if(x-r<0||x+r>W||y-r<0||y+r>H){
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340833/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340833/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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&&0<=y&&y+r<=H&&x+r<=W&&0<=y+r&&0<=x+r) printf("Yes\n");
else if(x<0||y<0||y+r>H||x+r>W||y+r<0||x+r<0) printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_340877/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340877/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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<conio.h>
int main()
{
int n,k,i,j;
scanf("%d %d",&n,&k);
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
if(i==j)
printf("%d ",k);
else
printf("0 ");
}
printf("\n");
}
//getch();
return 0;
}
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34092/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34092/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_addr ... |
#include <stdio.h>
int main(void){
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if (x - r >= 0 && W >= x + r && y - r >= 0 && H >= y + r)
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_340963/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_340963/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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,y>0 && 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_341012/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341012/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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){
if(x+r<=w){
if(y-r>=0){
if(y+r<=h){
printf("Yes\n");
}
else{
printf("No\n");
}
}
else{
printf("No\n");
}
}
else{
printf("No\n");
}
}
else{
printf("No\n");
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341056/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341056/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
scanf("%d%d",&k,&d);
if(d==0)
{
if(k>1)
{
printf("No solution\n");
return 0;
}
printf("0\n");
return 0;
}
else
printf("%d",d);
for(i=0;i<k-1;i++)
printf("0");
printf("\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3411/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3411/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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, H, x, y, r, a, b, c, d;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
if (W - x >= r && H - y >= r && x - r >= 0 && y - r >= 0)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341142/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341142/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(int argc, char const *argv[]) {
int x,y,r,W,H;
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_341186/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341186/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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=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_341236/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341236/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void)
{
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(W<x+r||x-r<0||H<y+r||y-r<0){
printf("No\n");
}else{
printf("Yes\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341294/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341294/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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("No\n");
else printf("Yes\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341337/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341337/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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-r>=x&&r<=x&&H-r>=y&&r<=y)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341388/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341388/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_341430/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341430/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
//x = 0;
//y = 0;
//z = 0;
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_341489/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341489/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void)
{
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if (w-r >= x && r <= x && h - r >= y && r <= y)
printf("Yes\n");
else
printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341539/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341539/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<stdlib.h>
#include<limits.h>
#include<math.h>
#include<string.h>
#define N 250000
int arr[N];
int main(){
int a,b,c;
scanf("%d",&a);
int i;
int on; int off; on=off=0;
for(i=0;i<a;i++){
scanf("%d",arr+i);
if(arr[i]==0)
off++;
else on++;
}
if(a==1 && arr[0]==1){
printf("YES");
return 0;
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34159/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34159/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 ... |
//Date:13-07-16
#include<stdio.h>
int main(){
int n;
scanf("%d" ,&n);
int a[n] ,i;
for(i=0;i<n;i++) scanf("%d" ,a+i);
if(n==1){
if(a[0]==1) printf("YES");
else printf("NO");
}else{
int c=0;
for(i=0;i<n;i++){
if(a[i]==0) c++;
if(c>=2) break;
}
if(c==1) printf("YES");
else printf("NO");
}
ret... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_34164/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_34164/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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 <= 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_341683/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341683/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_341726/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341726/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if((x-r<0||x+r>W)||(y-r<0||y+r>H)){
printf("No\n");
}
if((y-r>=0&&y+r<=H)&&(x-r>=0&&x+r<=W)){
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341812/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341812/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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, p, q;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
p=x+r;
q=y+r;
if(p<=W){
if(q<=H){
if(r<=x){
if(r<=y){
printf("Yes\n");
}
else{
printf("No\... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341856/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341856/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main()
{
int n;
scanf("%d", &n);
char s[102];
scanf("%s", s);
int i;
int a[102], b[102];
for (i = 0; i < n; i++)
scanf("%d %d", &a[i], &b[i]);
int t;
int ans = 0, count;
char ss[102];
for (t = 0; t <= 300; t++)
{
for (i = 0; i < n; i++)
ss[i] = s[i];
for (i = 0; i < n; i++)
... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3419/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3419/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if (W>=x+r && H>=y+r && r<=x && r<=y && x>=0 && y>=0){ printf("Yes\n");
}
else { printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341942/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341942/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 rect_w, rect_h, x, y, r;
scanf("%d %d %d %d %d", &rect_w, &rect_h, &x, &y, &r);
if (x >= r && x + r <= rect_w && y >= r && y + r <= rect_h){
printf("Yes\n");
}else{
printf("No\n");
}
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341986/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341986/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_342028/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342028/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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;
int x, y;
int r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if(x > w || x + r > w || x - r < 0) printf("No\n");
else if(y > h || y + r > h || y - r < 0) printf("No\n");
else printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342071/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342071/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342114/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342114/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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);
//top check
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_342158/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342158/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 || H < y + r) {
printf("No\n");
} else if (x < 0 || y < 0) {
printf("No\n");
} else {
printf("Yes\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(){
int W,H;
int x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x>=r){
if(x<=W-r){
if(y>=r){
if(y<=H-r){
printf("Yes\n");
}else{
printf("No\n");
}
}else{
printf("No\n");
}
}else{
printf("No\n");
}
}else{
printf("No\n");
}
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342244/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342244/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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)
{
if(y + r <= h && 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_342288/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342288/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 || x - r < 0){
printf("No\n");
}else if(H < y + r || y - r < 0){
printf("No\n");
}else
printf("Yes\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342338/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342338/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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 && 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_342381/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342381/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-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_342431/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342431/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.