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 16:16Jack FrigaardJack FrigaardScore: 5,180Success
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 16:165,12769,561,82741,543,0001,013,0002,523,136
2Jan 1, 2023 16:165,13171,501,47742,590,00002,461,696
3Jan 1, 2023 16:165,13869,759,76940,613,0002,030,0002,523,136
4Jan 1, 2023 16:165,14067,481,68040,628,0002,031,0002,523,136
5Jan 1, 2023 16:165,14168,670,47240,636,0002,031,0002,523,136
6Jan 1, 2023 16:165,152104,376,09642,762,57902,203,648
7Jan 1, 2023 16:165,16269,767,92840,807,0002,040,0002,523,136
8Jan 1, 2023 16:165,18069,506,31539,997,0002,999,0002,523,136
9Jan 1, 2023 16:165,18368,636,22340,021,0003,001,0002,461,696
10Jan 1, 2023 16:165,184112,109,89243,028,59802,199,552
11Jan 1, 2023 16:165,18866,905,96940,059,0003,004,0002,523,136
12Jan 1, 2023 16:165,215114,686,68643,287,50402,207,744
13Jan 1, 2023 16:165,23066,751,75740,385,0003,028,0002,523,136
14Jan 1, 2023 16:165,23268,154,92941,404,0002,019,0002,519,040
15Jan 1, 2023 16:165,29468,928,73240,942,0002,995,0002,523,136