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 listDec 30, 2022 18:46Jack FrigaardJack FrigaardScore: 5,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2022 18:465,18569,442,91740,034,0003,002,0002,523,136
2Dec 30, 2022 18:465,18967,691,98941,064,0002,003,0002,523,136
3Dec 30, 2022 18:465,19465,467,71540,103,0003,007,0002,445,312
4Dec 30, 2022 18:465,19866,465,16440,131,0003,009,0002,437,120
5Dec 30, 2022 18:465,19865,814,41741,140,0002,006,0002,523,136
6Dec 30, 2022 18:465,19866,699,43240,134,0003,010,0002,523,136
7Dec 30, 2022 18:465,20966,004,13140,222,0003,016,0002,437,120
8Dec 30, 2022 18:465,22264,280,88241,330,0002,016,0002,441,216
9Dec 30, 2022 18:465,229115,031,46843,403,44102,187,264
10Dec 30, 2022 18:465,238123,133,31343,477,69602,199,552
11Dec 30, 2022 18:465,25066,812,43340,533,0003,039,0002,441,216
12Dec 30, 2022 18:465,25171,792,66841,560,0002,027,0002,523,136
13Dec 30, 2022 18:465,256107,304,08543,624,41402,199,552
14Dec 30, 2022 18:465,25771,644,66241,605,0002,029,0002,445,312
15Dec 30, 2022 18:465,28375,718,97240,860,0002,989,0002,449,408