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 16:59Jack FrigaardJack FrigaardScore: 5,185Success
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 16:595,11363,973,99039,411,0003,031,0002,461,696
2Dec 31, 2022 16:595,11965,784,51540,464,0002,023,0002,519,040
3Dec 31, 2022 16:595,12162,173,17641,496,0001,012,0002,453,504
4Dec 31, 2022 16:595,12467,809,21440,505,0002,025,0002,260,992
5Dec 31, 2022 16:595,13870,671,16640,617,0002,030,0002,260,992
6Dec 31, 2022 16:595,14170,976,93040,640,0002,032,0002,453,504
7Dec 31, 2022 16:595,16468,185,85340,868,0001,993,0002,457,600
8Dec 31, 2022 16:595,18565,893,79840,036,0003,002,0002,461,696
9Dec 31, 2022 16:595,19666,709,16542,125,0001,002,0002,453,504
10Dec 31, 2022 16:595,20067,198,13041,150,0002,007,0002,445,312
11Dec 31, 2022 16:595,21967,940,16840,293,0003,022,0002,260,992
12Dec 31, 2022 16:595,27971,049,53240,829,0002,987,0002,449,408
13Dec 31, 2022 16:595,318120,526,28544,136,26402,195,456
14Dec 31, 2022 16:595,346116,819,61844,373,63002,211,840
15Dec 31, 2022 16:595,356122,018,89444,457,53202,220,032