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 18, 2024 23:33zielajzielajScore: 3,731Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 18, 2024 23:333,57656,673,04729,684,00002,367,488
2Nov 18, 2024 23:333,59553,620,33127,848,0001,989,0002,514,944
3Nov 18, 2024 23:333,71656,920,48428,854,0001,989,0002,465,792
4Nov 18, 2024 23:333,73155,403,84128,973,0001,998,0002,379,776
5Nov 18, 2024 23:333,76751,763,49230,262,0001,008,0002,527,232
6Nov 18, 2024 23:333,78555,696,16231,412,00002,379,776