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 listNov 12, 2024 01:39zielajzielajScore: 6,148Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 11, 2024 13:216,02173,921,43348,972,000999,0002,433,024
2Nov 11, 2024 13:216,02471,989,01749,002,0001,000,0002,535,424
3Nov 12, 2024 01:396,02472,660,84249,000,0001,000,0002,273,280
4Nov 11, 2024 13:216,02975,954,41248,038,0002,001,0002,424,832
5Nov 11, 2024 13:216,03274,238,98450,069,00002,273,280
6Nov 12, 2024 01:396,03778,046,68649,108,0001,002,0002,428,928
7Nov 11, 2024 13:216,03872,282,76349,116,0001,002,0002,433,024
8Nov 11, 2024 13:216,05172,423,68049,219,0001,004,0002,433,024
9Nov 11, 2024 13:216,08373,613,33249,480,0001,009,0002,535,424
10Nov 11, 2024 13:216,14871,739,49549,030,0002,001,0002,502,656
11Nov 12, 2024 01:396,17173,243,31549,211,0002,008,0002,535,424
12Nov 11, 2024 13:216,19285,009,88950,385,0001,007,0002,535,424
13Nov 12, 2024 01:396,77580,642,16055,225,0001,004,0002,531,328
14Nov 11, 2024 13:216,77577,543,65854,228,0002,008,0002,424,832
15Nov 11, 2024 13:216,77676,874,22555,233,0001,004,0002,531,328
16Nov 11, 2024 13:216,78278,579,26655,284,0001,005,0002,531,328
17Nov 12, 2024 01:396,82287,594,97956,624,00002,531,328
18Nov 12, 2024 01:396,96880,748,46256,841,000997,0002,531,328