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 listApr 26, 2024 02:24Steve HanSteve HanError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2024 02:5000000Error: No answer to stdout. Died or killed?
2Apr 26, 2024 02:4900000Error: No answer to stdout. Died or killed?
3Apr 26, 2024 02:4800000Error: expected "53684993266239048 ", got "39121246379075800 "
4Apr 26, 2024 02:4800000Error: No answer to stdout. Died or killed?
5Apr 26, 2024 02:4200000Error: No answer to stdout. Died or killed?
6Apr 26, 2024 02:4563,240581,552,486524,895,14102,297,856
7Apr 26, 2024 02:4563,319583,648,937525,550,24502,183,168
8Apr 26, 2024 02:4563,332588,421,455525,653,76102,293,760
9Apr 26, 2024 02:4366,777631,404,781554,253,20102,306,048
10Apr 26, 2024 02:4366,783625,067,098554,296,04302,301,952
11Apr 26, 2024 02:5466,849622,472,761554,850,08502,170,880
12Apr 26, 2024 02:5466,886626,834,026555,151,79002,297,856
13Apr 26, 2024 02:5466,935615,476,766555,560,32302,306,048
14Apr 26, 2024 02:4366,972622,806,304555,870,48302,297,856
15Apr 26, 2024 02:4273,903669,696,771613,391,44102,174,976
16Apr 26, 2024 02:4273,957678,110,381613,841,51002,306,048
17Apr 26, 2024 02:2473,967671,617,873613,928,01902,293,760
18Apr 26, 2024 02:4273,987674,166,838614,095,90002,301,952
19Apr 26, 2024 02:2473,998670,699,466614,179,78902,297,856
20Apr 26, 2024 02:2474,052678,254,501614,632,39102,301,952