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-----
Input will start with an integer T the count of test cases, each case will have an integer N.

-----Output-----
Output each values, on a newline.

-----Constraints-----
- 1 ≤ T ≤ 10
- 1 ≤ N ≤1000000000

-----Example-----
Input:
1
10

Output:
10

-----Explanation-----
Example case 1. Only integer that is multiple 10 that is less than or equal to 10 is 10

Difficulty: UNKNOWN_DIFFICULTY

Solutions:
t = int(input())
l = list()
for i in range(t):
	n = int(input()) / 10
	l.append(n)
for n in l:
	print(int(n * (n + 1) / 2.0 * 10))


def main():
	t = int(input())
	while t != 0:
		t = t - 1
		N = int(input())
		print(5 * int(N / 10) * (int(N / 10) + 1))
	return 0
main()