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 3, 2024 05:16GraceGraceScore: 5,318Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 05:165,29466,866,21142,941,000998,0002,273,280
2Jun 3, 2024 05:165,30566,251,69742,034,0002,001,0002,396,160
3Jun 3, 2024 05:165,30666,632,65142,041,0002,001,0002,273,280
4Jun 3, 2024 05:165,30769,991,12343,049,0001,001,0002,396,160
5Jun 3, 2024 05:165,30867,088,26242,057,0002,002,0002,273,280
6Jun 3, 2024 05:165,31169,171,46342,082,0002,003,0002,273,280
7Jun 3, 2024 05:165,31367,878,72042,091,0002,004,0002,273,280
8Jun 3, 2024 05:165,31867,897,96244,142,00002,404,352
9Jun 3, 2024 05:165,31965,679,17842,141,0002,006,0002,392,064
10Jun 3, 2024 05:165,32167,637,61542,157,0002,007,0002,273,280
11Jun 3, 2024 05:165,36071,441,95743,475,0001,011,0002,273,280
12Jun 3, 2024 05:165,44066,912,57643,142,0002,006,0002,273,280
13Jun 3, 2024 05:165,530103,183,24645,900,11302,281,472
14Jun 3, 2024 05:165,538100,984,63845,966,51702,289,664
15Jun 3, 2024 05:165,580122,835,81046,318,01402,285,568