Created
September 29, 2017 16:46
-
-
Save lazyakshay/702f141927b9c9ff408d28375443352e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int n,w,h,i,t; | |
scanf("%d",&t); | |
scanf("%d",&n); | |
for(i=1;i<=n;i++) | |
{ | |
scanf("%d %d",&w,&h); | |
if(w>=t&&h>=t) | |
{ | |
if(w==h) | |
{ | |
printf("ACCEPTED\n"); | |
} | |
else if(w>=t&&h>=t&&w!=h) | |
{ | |
printf("CROP IT\n"); | |
} | |
} | |
if(w<t || h<t) | |
{ | |
printf("UPLOAD ANOTHER\n"); | |
} | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment