LOVE WITH NUMBERS
All submissions for this problem are available.
- If you have multiple test cases in a file start this section as: "The first line of the input contains an integer T denoting the number of test cases. The description of T test cases follows."
- Don't write any constraints here, use section "Constraints" for this below.
- If for example the input of each test is an array you could write it like this: "The first line of each test case contains a single integer N denoting the number of .... The second line contains N space-separated integers A1, A2, ..., AN denoting the ...".
- If you have multiple test cases in a file start this section as: "For each test case, output a single line containing...".
Should contain all the constraints on the input data that you may have. Format it like:
- 1 ≤ T ≤ ...
Input: etc. Output: etc.
Example case 1. ...
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, 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, PYP3, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.