Skip to content

Instantly share code, notes, and snippets.

@rockos
Created December 13, 2015 02:27
Show Gist options
  • Save rockos/294105794bff5af4ff63 to your computer and use it in GitHub Desktop.
Save rockos/294105794bff5af4ff63 to your computer and use it in GitHub Desktop.
IT KIDS LAB Junior Class Lessoon 1 problem4
#include <stdio.h>
int main()
{
int W,H,X,Y,R;
int flag=0;
scanf("%d %d %d %d %d",&W,&H,&X,&Y,&R);
if (H < Y+R) {
flag=1;
}
if(flag==0){
if (W < X+R) {
flag=1;
}
}
if(flag==1){
printf("NO");
}
if(flag==0){
printf("YES");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment