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 listNov 14, 2024 02:53zielajzielajScore: 5,283Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 14, 2024 02:535,08066,500,74440,159,0002,007,0002,527,232
2Nov 14, 2024 02:535,10965,234,69641,392,0001,009,0002,375,680
3Nov 14, 2024 02:535,11668,483,86041,450,0001,010,0002,379,776
4Nov 14, 2024 02:535,28375,960,64141,854,0001,993,0002,367,488
5Nov 14, 2024 02:535,29065,363,98542,913,000997,0002,514,944
6Nov 14, 2024 02:535,35967,171,79743,466,0001,010,0002,363,392