Next is What
All submissions for this problem are available.
Find the relationship between n and N.
Accordingly, for every given n, find the corresponding N.
The first line is the number of test cases T. T test cases follow.
Each test case is a single line and contains a number n.
1 <= T <= 100000
1 <= n <= 99999999990
For every test case print the correct N in a new line.
|Time Limit:||2 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.