well, i've changed my code slightly and remove a small bug. still i'm getting WA

... Inputs (with Output) i tried:
- Code: Select all
4810000000 1
100000000
100000000
100000000
100000000
80000000
0
0
0
0
0
0123456789 6
400000
400000
400000
400000
400000
181440
0
0
0
0
9876543210 2
100000000
100000000
100000000
100000000
100000000
100000000
100000000
100000000
252000
0
0030000000 6
0
0
0
0
0
0
0
0
0
0
3504555789 1
99999999
100000000
100000000
4199040
0
0
0
0
0
0
3504555789 8
2591999
2592000
2592000
2592000
2592000
2592000
2592000
2099520
0
0
0000000001 10
0
0
0
0
0
0
0
0
0
0
0000000002 10
0
1
0
0
0
0
0
0
0
0
0000000000 0
each output is set a minimum width length of 11, right justified. why i'm getting wrong answer? is there any critical/special input?[/code]