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 10, 2024 12:26джулисджулисScore: 1,647,388Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2024 12:261,645,29613,712,346,76713,655,953,04402,256,896
2Jun 9, 2024 18:041,645,89813,727,071,38513,660,950,46602,248,704
3Jun 13, 2024 04:121,646,52713,743,085,51413,666,176,74802,260,992
4Jun 13, 2024 04:121,646,62613,730,769,37813,666,996,09802,392,064
5Jun 9, 2024 18:041,647,38813,746,684,67713,673,317,46102,260,992
6Jun 13, 2024 04:121,647,86513,751,158,62413,677,282,12702,265,088
7Jun 10, 2024 12:261,649,96513,752,942,45313,694,708,57002,260,992
8Jun 9, 2024 18:041,653,51513,794,296,87713,724,172,84702,269,184
9Jun 10, 2024 12:261,660,00913,847,844,20513,778,074,59602,256,896