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 19:02Matt 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 19:0300000Error: expected "53693286293905074 ", got "53693327409200399 "
2May 27, 2024 19:1300000Error: Exit with code 1: Segmentation fault at address: 570490944stderr
3May 27, 2024 19:1200000Error: expected "53684872457668990 ", got "53684942433526404 "
4May 27, 2024 19:1100000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
5May 27, 2024 19:0900000Error: expected "53689070926743527 ", got "53689089233326172 "
6May 27, 2024 19:0800000Error: expected "53680417484784871 ", got "53680497200201334 "
7May 27, 2024 19:0700000Error: expected "53691260501567474 ", got "53691296372011385 "
8May 27, 2024 19:0600000Error: expected "53685256338802495 ", got "53685268229097241 "
9May 27, 2024 19:0500000Error: expected "53689495004733349 ", got "53689548451837398 "
10May 27, 2024 19:0400000Error: expected "53692154370312523 ", got "53692202595052978 "
11May 27, 2024 19:156,162125,351,28851,144,61602,207,744
12May 27, 2024 19:026,166122,411,48251,180,25402,187,264
13May 27, 2024 19:106,207114,806,79351,520,38002,183,168
14May 27, 2024 19:026,209119,459,34951,533,84902,203,648
15May 27, 2024 19:106,255123,184,25851,918,84702,220,032
16May 27, 2024 19:106,273129,433,53052,065,63702,199,552
17May 27, 2024 19:156,304113,177,58652,319,11602,195,456
18May 27, 2024 19:026,308105,151,43352,354,97302,203,648
19May 27, 2024 19:156,413110,050,29553,223,76202,199,552