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 31, 2024 11:32GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 11:3200000Error: expected "53686165291702891 ", got "53686164636342891 "
2May 31, 2024 11:3200000Error: expected "53688356866546210 ", got "53688291330546210 "
3May 31, 2024 11:3200000Error: expected "53688644840210408 ", got "53688644840144872 "
4May 31, 2024 11:3200000Error: expected "53691909021390123 ", got "53691909021324587 "
5May 31, 2024 11:335,492118,003,92445,584,36102,285,568
6May 31, 2024 11:335,498107,581,25045,631,55602,289,664
7May 31, 2024 11:335,507119,679,94145,711,44302,277,376
8May 31, 2024 11:335,510108,258,56645,731,42202,297,856
9May 31, 2024 11:335,511146,720,36145,738,34402,289,664
10May 31, 2024 11:335,520110,157,21045,816,97902,281,472
11May 31, 2024 11:335,523107,527,50045,838,52502,289,664
12May 31, 2024 11:325,531111,302,12045,908,43902,285,568
13May 31, 2024 11:335,542106,914,69745,994,48902,293,760
14May 31, 2024 11:325,543148,583,99146,003,77502,285,568
15May 31, 2024 11:325,553102,302,96146,090,02502,289,664
16May 31, 2024 11:335,577110,390,69546,285,00802,289,664