JS INPUT

Run Settings
LanguageJavaScript
Language Version
Run Command
process.stdin.resume(); process.stdin.setEncoding('utf8'); // your code goes here var input = '' process.stdin.on('data', (chunk)=>{ input += chunk }); process.stdin.on('end', ()=>{ input = input.split('\n') //console.log(input) let testcases= Number(input[0]); let i=1; while(testcases--){ let value=input[i]; value=value.split(" "); let num1=Number(value[0]); let num2=Number(value[1]); //console.log(num1, num2) main(num1, num2) i++; } }); function main(X, Y){ if(X<Y) console.log('FIRST'); else if(Y<X) console.log('SECOND'); else console.log('ANY'); }
Editor Settings
Theme
Key bindings
Full width
Lines