Skip to content

Instantly share code, notes, and snippets.

@lazyakshay
Created September 29, 2017 16:46
Show Gist options
  • Save lazyakshay/702f141927b9c9ff408d28375443352e to your computer and use it in GitHub Desktop.
Save lazyakshay/702f141927b9c9ff408d28375443352e to your computer and use it in GitHub Desktop.
#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