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 listJun 2, 2024 18:51GraceGraceScore: 6,273Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 2, 2024 18:516,21985,658,03150,604,0001,012,0002,277,376
2Jun 2, 2024 18:516,22177,860,30450,624,0001,012,0002,396,160
3Jun 2, 2024 18:516,22477,795,09950,649,0001,012,0002,396,160
4Jun 2, 2024 18:516,26375,527,22650,980,000999,0002,404,352
5Jun 2, 2024 18:516,26775,676,70751,014,0001,000,0002,400,256
6Jun 2, 2024 18:516,27174,321,76050,050,0002,002,0002,400,256
7Jun 2, 2024 18:516,27375,324,80050,066,0002,002,0002,400,256
8Jun 2, 2024 18:516,27373,871,56250,066,0002,002,0002,400,256
9Jun 2, 2024 18:516,27773,864,79050,099,0002,003,0002,273,280
10Jun 2, 2024 18:516,28176,916,88550,127,0002,005,0002,400,256
11Jun 2, 2024 18:516,29272,085,22650,214,0002,008,0002,396,160
12Jun 2, 2024 18:516,410115,575,07253,200,76002,277,376
13Jun 2, 2024 18:516,417125,340,35353,256,99102,289,664
14Jun 2, 2024 18:516,46087,697,75253,622,00002,273,280
15Jun 2, 2024 18:516,662129,325,55455,294,33402,273,280