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:45Jack FrigaardJack FrigaardScore: 5,109Success
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:455,061107,261,84742,008,50402,199,552
2Jan 1, 2023 15:455,07392,861,36342,106,12602,199,552
3Jan 1, 2023 15:455,078103,642,33642,148,86402,195,456
4Jan 1, 2023 15:455,08865,395,88939,212,0003,016,0002,523,136
5Jan 1, 2023 15:455,10467,679,02040,347,0002,017,0002,523,136
6Jan 1, 2023 15:455,10568,863,36140,353,0002,017,0002,445,312
7Jan 1, 2023 15:455,10868,525,51839,369,0003,028,0002,457,600
8Jan 1, 2023 15:455,10964,836,42840,389,0002,019,0002,514,944
9Jan 1, 2023 15:455,12968,225,82040,547,0002,027,0002,519,040
10Jan 1, 2023 15:455,16864,834,77441,898,000997,0002,453,504
11Jan 1, 2023 15:455,17765,643,70840,973,0001,998,0002,449,408
12Jan 1, 2023 15:455,17872,122,86541,975,000999,0002,293,760
13Jan 1, 2023 15:455,22773,691,33940,360,0003,027,0002,523,136
14Jan 1, 2023 15:455,25571,256,29742,602,0001,014,0002,453,504
15Jan 1, 2023 15:455,25672,023,94941,596,0002,029,0002,523,136