All submissions for this problem are available.
Phew! That was close...But what about all the data that succumbed to the worm attack? Fortunately we had developed a memory recovery algorithm beforehand, to cope with situations like these. Unfortunately, seems like the papers containing the source code derived from that algorithm have been misplaced. Can you recover the source code from this executable file which we have managed to salvage from our backup reserves???...
The first line will consist of the total number of test cases T.
The next T lines will consist of a 9-digit number N on each line.
For each test case, output is a number.
3 123353627 739834689 937216287
222 14504 6060
|Time Limit:||3 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, 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, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.