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 31, 2022 17:12Jack FrigaardJack FrigaardScore: 5,097Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:125,042104,482,48341,848,04202,207,744
2Dec 31, 2022 17:125,061115,339,25642,005,88402,203,648
3Dec 31, 2022 17:125,08168,627,69239,157,0003,012,0002,453,504
4Dec 31, 2022 17:125,08165,224,53339,162,0003,012,0002,461,696
5Dec 31, 2022 17:125,08264,677,06339,165,0003,012,0002,461,696
6Dec 31, 2022 17:125,08269,784,45839,169,0003,013,0002,453,504
7Dec 31, 2022 17:125,08269,050,15439,169,0003,013,0002,523,136
8Dec 31, 2022 17:125,09773,360,09039,284,0003,021,0002,457,600
9Dec 31, 2022 17:125,10763,251,19641,376,0001,009,0002,453,504
10Dec 31, 2022 17:125,11463,217,81442,450,00002,453,504
11Dec 31, 2022 17:125,13268,454,12341,585,0001,014,0002,445,312
12Dec 31, 2022 17:125,13771,792,30842,641,00002,523,136
13Dec 31, 2022 17:125,16071,597,19541,829,000995,0002,453,504
14Dec 31, 2022 17:125,171123,341,13142,916,71802,220,032
15Dec 31, 2022 17:125,21067,140,29240,223,0003,016,0002,523,136