MATHS - find sum
All submissions for this problem are available.
Find sum of all the numbers that are multiples of 10 and are less than or equal to a given number "N". (quotes for clarity and be careful of integer overflow)
Input will start with an integer T the count of test cases, each case will have an integer N.
Output each values, on a newline.
- 1 ≤ T ≤ 10
- 1 ≤ N ≤1000000000
Input: 1 10 Output: 10
Example case 1. Only integer that is multiple 10 that is less than or equal to 10 is 10
|Tags||chandubaba, chandubaba, easy, keteki, maths|
|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.