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 3, 2023 15:26dzaimadzaimaScore: 11,241Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2023 15:2611,223110,342,33791,151,0002,003,0002,269,184
2Jul 3, 2023 15:2611,230120,168,85091,204,0002,004,0002,269,184
3Jul 3, 2023 15:2611,231114,577,14292,219,0001,002,0002,273,280
4Jul 3, 2023 15:2611,237114,492,52891,262,0002,005,0002,289,664
5Jul 3, 2023 15:2611,238115,196,68891,271,0002,005,0002,265,088
6Jul 3, 2023 15:2611,240120,713,53791,282,0002,006,0002,269,184
7Jul 3, 2023 15:2611,241115,574,76891,293,0002,006,0002,273,280
8Jul 3, 2023 15:2611,241119,721,20692,298,0001,003,0002,269,184
9Jul 3, 2023 15:2611,243114,304,35292,312,0001,003,0002,535,424
10Jul 3, 2023 15:2611,362158,358,62994,303,41302,260,992
11Jul 3, 2023 15:2611,366147,144,93194,337,57302,269,184
12Jul 3, 2023 15:2611,367162,921,45994,342,70902,269,184
13Jul 3, 2023 15:2611,657124,106,07794,758,0001,994,0002,289,664
14Jul 3, 2023 15:2611,659121,276,13994,778,0001,995,0002,269,184
15Jul 3, 2023 15:2611,669121,096,99795,852,000998,0002,289,664