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 listJan 1, 2023 16:58Hal FHal FScore: 8,016Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 16:587,95791,382,71863,044,0003,002,0002,490,368
2Jan 1, 2023 16:587,96492,496,94865,097,0001,001,0002,473,984
3Jan 1, 2023 16:587,96792,478,96863,119,0003,005,0002,285,568
4Jan 1, 2023 16:587,99089,390,78264,304,0002,009,0002,482,176
5Jan 1, 2023 16:588,00088,831,63263,386,0003,018,0002,486,272
6Jan 1, 2023 16:588,00594,056,84864,431,0002,013,0002,285,568
7Jan 1, 2023 16:588,01390,337,33065,500,0001,007,0002,285,568
8Jan 1, 2023 16:588,01692,853,31665,527,0001,008,0002,285,568
9Jan 1, 2023 16:588,03291,882,00864,645,0002,020,0002,482,176
10Jan 1, 2023 16:588,12793,356,94065,445,0002,013,0002,285,568
11Jan 1, 2023 16:588,21891,178,82366,201,0002,006,0002,285,568
12Jan 1, 2023 16:588,42795,151,91167,950,0001,998,0002,285,568
13Jan 1, 2023 16:588,606150,220,70671,427,47402,215,936
14Jan 1, 2023 16:588,662128,150,29471,893,62202,220,032
15Jan 1, 2023 16:588,734131,002,06372,491,31702,224,128