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 listJan 1, 2023 15:56Jack FrigaardJack FrigaardScore: 5,160Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 15:565,132115,808,17042,593,58902,199,552
2Jan 1, 2023 15:565,14067,710,80041,648,0001,015,0002,453,504
3Jan 1, 2023 15:565,14367,729,84041,668,0001,016,0002,314,240
4Jan 1, 2023 15:565,153114,265,34442,771,42702,203,648
5Jan 1, 2023 15:565,15870,914,02939,823,0002,986,0002,301,952
6Jan 1, 2023 15:565,15872,475,46640,819,0001,991,0002,523,136
7Jan 1, 2023 15:565,16074,118,53240,834,0001,991,0002,461,696
8Jan 1, 2023 15:565,16070,776,23639,843,0002,988,0002,523,136
9Jan 1, 2023 15:565,16169,627,58440,842,0001,992,0002,523,136
10Jan 1, 2023 15:565,16669,276,51939,886,0002,991,0002,523,136
11Jan 1, 2023 15:565,17565,318,56939,959,0002,996,0002,523,136
12Jan 1, 2023 15:565,177121,360,77942,968,96302,207,744
13Jan 1, 2023 15:565,19372,728,11342,097,0001,002,0002,523,136
14Jan 1, 2023 15:565,20464,394,72740,177,0003,013,0002,293,760
15Jan 1, 2023 15:565,21671,249,13740,269,0003,020,0002,519,040