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:43Jack FrigaardJack FrigaardScore: 5,238Success
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:435,19969,882,99040,140,0003,010,0002,523,136
2Dec 30, 2022 18:435,20363,651,45341,173,0002,008,0002,265,088
3Dec 30, 2022 18:435,20867,317,68340,212,0003,015,0002,445,312
4Dec 30, 2022 18:435,20964,485,02640,216,0003,016,0002,523,136
5Dec 30, 2022 18:435,21264,233,22141,247,0002,012,0002,449,408
6Dec 30, 2022 18:435,21368,586,45140,253,0003,019,0002,523,136
7Dec 30, 2022 18:435,21966,953,21040,297,0003,022,0002,523,136
8Dec 30, 2022 18:435,23896,949,73843,475,45902,195,456
9Dec 30, 2022 18:435,24670,969,19641,518,0002,025,0002,514,944
10Dec 30, 2022 18:435,252111,678,90143,591,26402,183,168
11Dec 30, 2022 18:435,25367,329,77641,575,0002,028,0002,449,408
12Dec 30, 2022 18:435,26170,896,56041,637,0002,031,0002,445,312
13Dec 30, 2022 18:435,27868,411,12641,819,0001,991,0002,433,024
14Dec 30, 2022 18:435,28371,151,06541,860,0001,993,0002,445,312
15Dec 30, 2022 18:435,308136,145,19544,055,32002,187,264