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 listMay 27, 2024 23:05Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 23:0500000Error: expected "53690581545283437 ", got "53690610021912954 "
2May 27, 2024 23:0600000Error: expected "53680705168210937 ", got "53680784883627400 "
3May 27, 2024 23:0700000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
4May 27, 2024 23:0800000Error: expected "53690136461929884 ", got "53690147592310567 "
5May 27, 2024 23:1000000Error: expected "53680074605687094 ", got "53680118741252978 "
6May 27, 2024 23:1100000Error: Exit with code 1: Segmentation fault at address: 335609984stderr
7May 27, 2024 23:096,245112,539,10251,831,43802,215,936
8May 27, 2024 23:136,294139,524,40052,243,23802,195,456
9May 27, 2024 23:136,307110,873,00352,351,46402,187,264
10May 27, 2024 23:126,343119,779,22352,649,19402,207,744
11May 27, 2024 23:126,349126,573,14152,694,10802,187,264
12May 27, 2024 23:096,355120,202,29852,743,94002,203,648
13May 27, 2024 23:096,432117,934,88653,386,92502,179,072
14May 27, 2024 23:126,434123,482,85853,402,33902,187,264
15May 27, 2024 23:136,441113,876,68953,458,58202,195,456