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 19:33gchebanovgchebanovScore: 9,614Success
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 19:338,413134,687,45069,828,50302,203,648
2Jul 20, 2023 19:338,758138,980,66472,687,63802,199,552
3Jul 20, 2023 19:338,768139,423,02272,777,97702,203,648
4Jul 20, 2023 19:339,600106,188,42678,668,0001,008,0002,482,176
5Jul 20, 2023 19:339,601104,450,06077,670,0002,017,0002,469,888
6Jul 20, 2023 19:339,612105,794,60577,784,0001,994,0002,314,240
7Jul 20, 2023 19:339,613105,889,99977,794,0001,994,0002,498,560
8Jul 20, 2023 19:339,614105,848,79177,800,0001,994,0002,437,120
9Jul 20, 2023 19:339,615106,279,63477,808,0001,995,0002,494,464
10Jul 20, 2023 19:339,615104,484,25177,806,0001,995,0002,322,432
11Jul 20, 2023 19:339,621102,061,56178,856,000998,0002,490,368
12Jul 20, 2023 19:339,694111,190,12979,457,0001,005,0002,326,528
13Jul 20, 2023 19:339,848107,833,81679,749,0001,993,0002,486,272
14Jul 20, 2023 19:339,854110,173,64880,793,000997,0002,465,792
15Jul 20, 2023 19:339,856106,955,33378,812,0002,992,0002,482,176