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:42Jack FrigaardJack FrigaardScore: 4,924Success
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:424,796115,109,48039,805,44902,207,744
2Jan 1, 2023 15:424,801129,126,59539,852,14502,207,744
3Jan 1, 2023 15:424,843129,050,11640,195,48202,215,936
4Jan 1, 2023 15:424,92069,163,45239,838,000995,0002,453,504
5Jan 1, 2023 15:424,92066,987,25937,848,0002,988,0002,449,408
6Jan 1, 2023 15:424,92168,934,36238,856,0001,992,0002,461,696
7Jan 1, 2023 15:424,92271,559,85838,862,0001,992,0002,461,696
8Jan 1, 2023 15:424,92468,893,22037,878,0002,990,0002,523,136
9Jan 1, 2023 15:424,92768,269,13137,905,0002,992,0002,523,136
10Jan 1, 2023 15:424,92967,368,18337,915,0002,993,0002,523,136
11Jan 1, 2023 15:424,93266,431,92737,942,0002,995,0002,523,136
12Jan 1, 2023 15:424,93368,494,73537,950,0002,996,0002,457,600
13Jan 1, 2023 15:424,96466,461,18939,193,0002,009,0002,523,136
14Jan 1, 2023 15:424,96862,817,15640,231,0001,005,0002,461,696
15Jan 1, 2023 15:424,98267,104,36138,325,0003,025,0002,441,216