Source_Code stringlengths 69 484k | IR_Original stringlengths 2.05k 17.9M |
|---|---|
#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_341200/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341200/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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,r;
scanf("%d%d%d%d%d",&W,&H,&x,&y,&r);
if((0<=x-r)&&(x+r<=W)&&(0<=y-r)&&(y+r<=H))
{
printf("Yes\n");
}
else printf("No\n");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341273/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341273/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_341323/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341323/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 x,y,w,h,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_341374/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341374/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 >= 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_341424/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341424/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_341468/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341468/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include <stdio.h>
int main(void){
int w, h, x, y, r;
scanf("%d %d %d %d %d", &w, &h, &x, &y, &r);
if( w>=x+r && h>=y+r && x-r>=0 && y-r>=0 )
puts("Yes");
else
puts("No");
return 0;
} | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341510/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341510/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
int main(void){
int W,H,x,y,r;
scanf("%d",&W);
scanf("%d",&H);
scanf("%d",&x);
scanf("%d",&y);
scanf("%d",&r);
if(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_341561/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341561/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
/*(c) nupetan 2017*/
#include<stdio.h>
int main(){
struct {
short int width, height;
}rectangle;
struct {
short int x_coordinate, y_coordinate,radius;
}circle;
scanf("%hd %hd", &rectangle.width, &rectangle.height);
scanf("%hd %hd %hd", &circle.x_coordinate, &circle.y_coordinate, &circle.radius);
if(rectangl... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341611/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341611/source.c"
target datalayout = "e-m:e-p270: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.anon = type { i16, ... |
#include <stdio.h>
int main(void) {
// ??°????????\???????????°
int W;
int H;
int x;
int y;
int r;
scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
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_341655/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341655/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include "stdio.h"
//長方形の中に円があるか判定
//2018/02/05
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)){
puts("Yes");
}else{
puts("No");
}
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341712/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341712/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H;
int x, y, r;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
W -= r, H -= r;
if (r <= x && x <= W && r <= y && y <= H) printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341756/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341756/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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);
int i, j;
int a[102];
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
int ans = 0;
for (i = 0; i < n - 1; i++)
{
if (a[i] > a[i + 1])
{
a[i] ^= a[i + 1];
a[i + 1] ^= a[i];
a[i] ^= a[i + 1];
if (i > 0)
i -= 2;
}
}
for (i = 0; i < n; i++... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_3418/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_3418/source.c"
target datalayout = "e-m:e-p270:32:32-p271: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(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_341842/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341842/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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_341886/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341886/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64: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 W, H;
int x, y, r;
scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
W -= r, H -= r;
if (r <= x && x <= W && r <= y && y <= H) printf("Yes\n");
else printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341929/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341929/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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<=H && y-r>=0)
printf("Yes\n");
else
printf("No\n");
return 0;
}
| ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_341972/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_341972/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64: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 && 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_342014/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342014/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
@.str = private unnamed_add... |
#include<stdio.h>
#include<math.h>
#include <stdlib.h>
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"... | ; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/C/Source_342058/source.c'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/C/Source_342058/source.c"
target datalayout = "e-m:e-p270:32:32-p271:32: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.