Is my approach wrong ??? I mean, is the output for the test cases wrong ???
this is the error i am getting in Ideone --
Traceback (most recent call last):
File "prog.py", line 2, in
t=input()
EOFError: EOF when reading a line
how can i use an exception of EOF........
plzz provide me with some correct testcases...
4
500
350
100
50
output :-
151115727451828646838272
77371252455336267181195264
2535301200456458802993406410752
2251799813685247
plzz chk whether they are correct or wrong .......