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 listOct 22, 2023 22:27sliceteamsliceteamScore: 9,078Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 22, 2023 22:279,045100,541,18173,070,0002,001,0002,400,256
2Oct 22, 2023 22:279,05597,727,28473,150,0002,004,0002,273,280
3Oct 22, 2023 22:279,05599,411,90674,158,0001,002,0002,273,280
4Oct 22, 2023 22:279,05698,422,00174,163,0001,002,0002,392,064
5Oct 22, 2023 22:279,06697,077,18474,243,0001,003,0002,400,256
6Oct 22, 2023 22:279,067101,004,61775,258,00002,396,160
7Oct 22, 2023 22:279,07597,492,45675,320,00002,400,256
8Oct 22, 2023 22:279,07898,906,49574,342,0001,004,0002,273,280
9Oct 22, 2023 22:279,078108,862,25674,347,0001,004,0002,273,280
10Oct 22, 2023 22:279,079103,293,33374,353,0001,004,0002,273,280
11Oct 22, 2023 22:279,113147,593,42875,640,50902,277,376
12Oct 22, 2023 22:279,113106,147,04874,626,0001,008,0002,273,280
13Oct 22, 2023 22:279,119142,849,43775,690,05402,277,376
14Oct 22, 2023 22:279,127138,657,63375,756,23302,289,664
15Oct 22, 2023 22:279,173102,708,59974,131,0002,003,0002,396,160