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 listJul 20, 2023 22:04gchebanovgchebanovScore: 8,466Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 22:047,37486,930,92459,196,0002,006,0002,420,736
2Jul 20, 2023 22:047,38387,325,77459,267,0002,009,0002,412,544
3Jul 20, 2023 22:047,38786,861,24860,308,0001,005,0002,465,792
4Jul 20, 2023 22:047,39382,910,54459,354,0002,012,0002,449,408
5Jul 20, 2023 22:047,44789,781,72461,813,00002,416,640
6Jul 20, 2023 22:047,44787,460,75461,814,00002,498,560
7Jul 20, 2023 22:047,44887,360,41060,818,000997,0002,428,928
8Jul 20, 2023 22:047,48790,304,54560,134,0002,004,0002,473,984
9Jul 20, 2023 22:047,48888,813,93360,147,0002,004,0002,408,448
10Jul 20, 2023 22:048,36892,741,30368,449,0001,006,0002,412,544
11Jul 20, 2023 22:048,46696,435,33569,267,0001,003,0002,400,256
12Jul 20, 2023 22:048,51796,759,49669,679,0001,009,0002,404,352
13Jul 20, 2023 22:048,527100,233,58068,782,0001,993,0002,469,888
14Jul 20, 2023 22:048,53097,917,69469,802,000997,0002,482,176
15Jul 20, 2023 22:048,530102,793,24469,798,000997,0002,392,064
16Jul 20, 2023 22:048,54196,872,35468,892,0001,996,0002,482,176
17Jul 20, 2023 22:048,542104,464,43668,900,0001,997,0002,408,448
18Jul 20, 2023 22:048,55596,921,27870,004,0001,000,0002,392,064
19Jul 20, 2023 22:048,718140,830,29172,360,52102,293,760
20Jul 20, 2023 22:048,768143,298,36172,773,19902,269,184
21Jul 20, 2023 22:048,857136,624,32773,510,06102,289,664