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 13, 2024 23:43Joad 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 13, 2024 23:4200000Error: expected "53689197063398328 ", got "53689205307082165 "stderr
2Oct 13, 2024 23:4200000Error: expected "53681517835560626 ", got "53681532547460347 "stderr
3Oct 13, 2024 23:434,31960,934,36034,850,000995,0002,273,280
4Oct 13, 2024 23:434,37159,255,83833,253,0003,023,0002,535,424
5Oct 13, 2024 23:434,38763,544,09635,401,0001,011,0002,269,184
6Oct 13, 2024 23:434,39259,849,95635,440,0001,012,0002,269,184
7Oct 13, 2024 23:434,39961,102,94834,485,0002,028,0002,297,856
8Oct 13, 2024 23:434,41769,532,09335,641,0001,018,0002,297,856