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 17:33Jack FrigaardJack FrigaardScore: 5,013Success
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 17:334,808105,704,03239,904,12502,203,648
2Jan 1, 2023 17:334,82395,576,64940,028,07402,199,552
3Jan 1, 2023 17:334,826109,581,06340,059,22202,215,936
4Jan 1, 2023 17:335,00968,240,85640,564,0001,014,0002,523,136
5Jan 1, 2023 17:335,01268,537,60341,597,00002,449,408
6Jan 1, 2023 17:335,01366,461,85439,577,0002,029,0002,523,136
7Jan 1, 2023 17:335,01367,992,39440,598,0001,014,0002,453,504
8Jan 1, 2023 17:335,01369,788,65840,597,0001,014,0002,461,696
9Jan 1, 2023 17:335,01667,018,45639,600,0002,030,0002,453,504
10Jan 1, 2023 17:335,02366,407,34139,659,0002,033,0002,453,504
11Jan 1, 2023 17:335,02467,675,83840,681,0001,017,0002,461,696
12Jan 1, 2023 17:335,03370,501,62838,790,0002,983,0002,445,312
13Jan 1, 2023 17:335,03970,548,84438,834,0002,987,0002,449,408
14Jan 1, 2023 17:335,04074,175,10839,842,0001,992,0002,523,136
15Jan 1, 2023 17:335,04172,210,75138,849,0002,988,0002,523,136