// Roy and Profile Picture
// Sample code to perform I/O:
process.stdin.resume();
process.stdin.setEncoding("utf-8");
var stdin_input = "";
process.stdin.on("data", function (input) {
stdin_input += input; // Reading input from STDIN
});
process.stdin.on("end", function () {
main(stdin_input);
});
function main(input) {
//process.stdout.write("Hi, " + input + ".\n"); // Writing output to STDOUT
var data= input.toString().split("\n");
const L= parseInt(data[0],10);
const N= parseInt(data[1],10);
var W = 0;
var H = 0;
var ligne = "";
for (var WH=0; WH<N; WH++) {
ligne = data[2+WH].split(" ");
W = ligne[0,0];
H = ligne[0,1];
if (W < L || H < L)
console.log("UPLOAD ANOTHER")
else if (W == H && W >= L && H >= L) console.log("ACCEPTED")
else console.log("CROP IT");
}
}
// Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
// Write your code here
// Sample code to perform I/O:
//Enter your code here
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter