Will India reach the final
All submissions for this problem are available.
There are chances that India can win this consecutive World Cup Title. With India being top in their group many spectator expecting India to reach the final of this ongoing world cup. Lemon kumar , one of the biggest fan of India says that India will reach the finals only when total runs R scored by India till now is a sum of two squares. Now Lemon Kumar being fond of programming want to test the result using a program.
For each test case, if India will reach the final print in a separate line "will reach" otherwise print "will not reach" (without quotes).
- 1 ≤ T ≤ 100
- 1 ≤ R ≤ 1012
Input: 2 245 244 Output: will reach will reach
142 + 72 = 245
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.5, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.