Parse integers Sergey Svistunov

Compute the sum of integers read from STDIN as fast as possible.

Input: 50 000 000 lines, each containing one integer in the range [0; 2147483647].

629871117
2024562523
1372689083
1021777120
2111176472

Output: The uint64 sum of all numbers, printed as a decimal string.

Note: Integer overflow is expected – use a 64-bit accumulator.

Back to listSep 12, 2024 16:00matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 12, 2024 16:0700000Error: expected "53687858031384618 ", got "53687832431384618"
2Sep 12, 2024 16:0500000Error: expected "53679572562396757 ", got "53679572562371157"
3Sep 12, 2024 16:0400000Error: expected "53681814218964601 ", got "53681811658964601"
4Sep 12, 2024 16:0200000Error: expected "53682632694080959 ", got "53682632693799103"
5Sep 12, 2024 16:0000000Error: expected "53692674326125959 ", got "53692648726125959"
6Sep 12, 2024 16:085,94075,798,30647,294,0002,012,0002,531,328
7Sep 12, 2024 16:085,95074,810,06048,376,0001,007,0002,269,184
8Sep 12, 2024 16:085,95972,340,93448,453,0001,009,0002,269,184
9Sep 12, 2024 16:085,96980,325,43148,535,0001,011,0002,408,448
10Sep 12, 2024 16:086,00078,201,51648,808,000996,0002,531,328
11Sep 12, 2024 16:006,00278,847,64147,828,0001,992,0002,404,352
12Sep 12, 2024 16:086,02978,905,85249,040,0001,000,0002,269,184
13Sep 12, 2024 16:086,07776,417,89649,434,0001,008,0002,269,184
14Sep 12, 2024 16:086,08071,644,60649,459,0001,009,0002,269,184
15Sep 12, 2024 16:086,08873,105,25149,517,0001,010,0002,269,184
16Sep 12, 2024 16:006,13474,419,87149,912,000998,0002,269,184
17Sep 12, 2024 16:006,13776,961,92348,939,0001,997,0002,408,448
18Sep 12, 2024 16:076,38081,786,05846,957,0005,994,0002,375,680
19Sep 12, 2024 16:076,52978,142,23048,169,0006,021,0002,318,336
20Sep 12, 2024 16:026,60680,988,65746,852,0007,974,0002,342,912
21Sep 12, 2024 16:076,64578,359,51849,137,0006,016,0002,301,952
22Sep 12, 2024 16:026,66078,776,28047,236,0008,040,0002,269,184
23Sep 12, 2024 16:026,91678,937,63050,356,0007,049,0002,371,584