Advertisement
MrSpaceCow

Roy and Profile Picture Code

Oct 20th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5.     int l; cin >> l;
  6.     int n; cin >> n;
  7.    
  8.     for(int i = 0; i < n; i++){
  9.         int w, h; cin >> w >> h;
  10.         if(w < l || h < l){
  11.             cout << "UPLOAD ANOTHER" << endl;
  12.         }else{
  13.             if(w == h){
  14.                 cout << "ACCEPTED" << endl;
  15.             }else{
  16.                 cout << "CROP IT" << endl;
  17.             }
  18.         }
  19.     }
  20.    
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement