Last But not the least
All submissions for this problem are available.
Your Friend asked you a question. A simple one. He said if you are given a integer number N (1<=n<=2^64).
Find the last digit of
Input starts with T, no. of test cases.
T cases follow, each having one integer N.
For each N give a line containing only one digit, which is the last digit of S.
Input: 3 1 2 3 4563 Output: 1 5 2 4
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, 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, PYP3, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.