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:||ADA, ASM, BASH, BF, C, C99 strict, CAML, CLOJ, CLPS, CPP 4.3.2, CPP 4.9.2, CPP14, CS2, D, FORT, FS, GO, HASK, ICK, ICON, JAVA, JS, LISP clisp, LISP sbcl, LUA, NEM, NICE, NODEJS, PAS fpc, PAS gpc, PERL, PERL6, PHP, PIKE, PRLG, PYPY, PYTH, PYTH 3.4, RUBY, SCALA, SCM chicken, SCM guile, SCM qobi, ST, TEXT, WSPC|
Fetching successful submissions
If you are still having problems, see a sample solution here.