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 listOct 14, 2024 00:29Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 14, 2024 00:2900000Error: expected "53681288216158496 ", got "53681301689765225 "stderr
2Oct 14, 2024 00:2900000Error: expected "53683215727097216 ", got "53683215442575966 "stderr
3Oct 14, 2024 00:294,21355,402,12332,969,0001,998,0002,306,048
4Oct 14, 2024 00:294,32164,659,75534,865,000996,0002,269,184
5Oct 14, 2024 00:294,37667,720,10135,313,0001,008,0002,306,048
6Oct 14, 2024 00:294,37863,482,91235,329,0001,009,0002,531,328
7Oct 14, 2024 00:294,58966,453,64536,083,0002,004,0002,306,048
8Oct 14, 2024 00:294,59565,223,19636,131,0002,007,0002,273,280