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 listSep 6, 2022 16:58Bernard TeoBernard TeoScore: 10,443Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 6, 2022 16:5810,398110,121,00885,304,0001,003,0002,273,280
2Sep 6, 2022 16:5810,407109,275,84085,370,0001,004,0002,408,448
3Sep 6, 2022 16:5810,410111,174,82385,397,0001,004,0002,273,280
4Sep 6, 2022 16:5810,414111,081,57385,432,0001,005,0002,273,280
5Sep 6, 2022 16:5810,430112,699,80685,565,0001,006,0002,273,280
6Sep 6, 2022 16:5810,435115,881,78585,604,0001,007,0002,273,280
7Sep 6, 2022 16:5810,442111,360,39985,664,0001,007,0002,273,280
8Sep 6, 2022 16:5810,443113,954,39084,689,0001,992,0002,396,160
9Sep 6, 2022 16:5810,462113,210,57085,828,0001,009,0002,273,280
10Sep 6, 2022 16:5810,463117,535,64486,847,00002,400,256
11Sep 6, 2022 16:5810,484108,656,04485,018,0002,000,0002,273,280
12Sep 6, 2022 16:5810,490109,380,94887,071,00002,273,280
13Sep 6, 2022 16:5811,711163,611,27797,200,49502,281,472
14Sep 6, 2022 16:5811,766166,319,95297,655,61202,281,472
15Sep 6, 2022 16:5811,783150,349,76397,799,99202,273,280