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 29, 2024 18:20GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 18:2200000Error: expected "53685729089554117 ", got "53685729083000517 "
2May 29, 2024 18:2100000Error: expected "53682260675528176 ", got "53682260675462640 "
3May 29, 2024 18:2000000Error: expected "53689868546790136 ", got "53689868546534136 "
4May 29, 2024 18:2000000Error: expected "53688334570852926 ", got "53688334570787390 "
5May 29, 2024 18:2000000Error: expected "53681755531429559 ", got "53681755531364023 "
6May 29, 2024 18:2000000Error: expected "53684797513525617 ", got "53684797506972017 "
7May 29, 2024 18:226,150124,592,96051,042,01802,281,472
8May 29, 2024 18:226,150119,144,85151,040,94402,281,472
9May 29, 2024 18:216,152129,994,11051,062,17802,277,376
10May 29, 2024 18:216,153145,409,85151,071,65902,281,472
11May 29, 2024 18:216,153118,733,11351,070,53202,277,376
12May 29, 2024 18:226,153128,696,08951,071,77002,289,664
13May 29, 2024 18:226,159139,982,00751,119,22202,281,472
14May 29, 2024 18:226,174124,368,41951,242,69202,293,760
15May 29, 2024 18:216,178149,114,14251,275,02002,281,472
16May 29, 2024 18:226,182118,553,00051,308,60902,281,472
17May 29, 2024 18:216,182122,157,70851,313,61102,289,664
18May 29, 2024 18:216,195129,213,02651,420,44502,281,472
19May 29, 2024 18:226,301115,610,60452,302,24902,285,568
20May 29, 2024 18:226,337108,193,95952,599,80402,277,376
21May 29, 2024 18:226,360119,805,14852,787,47202,277,376