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 7, 2024 11:11GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 11:1100000Error: expected "53683670416091806 ", got "53683672870730271 "stderr
2Jun 7, 2024 11:1142,293428,110,154351,032,55102,236,416
3Jun 7, 2024 11:1142,373417,197,127351,694,98502,244,608
4Jun 7, 2024 11:1242,373425,114,026351,697,84102,232,320
5Jun 7, 2024 11:1142,378412,032,886351,735,92002,244,608
6Jun 7, 2024 11:1142,390421,394,520351,837,26102,244,608
7Jun 7, 2024 11:1242,396418,211,702351,886,82102,228,224
8Jun 7, 2024 11:1242,594416,328,996353,532,44102,244,608
9Jun 7, 2024 11:1142,617415,148,939353,719,36602,240,512
10Jun 7, 2024 11:1142,685423,053,508354,284,36502,240,512
11Jun 7, 2024 11:1142,850418,146,532355,653,84802,240,512
12Jun 7, 2024 11:1143,439426,323,080360,545,05702,236,416
13Jun 7, 2024 11:1143,619424,652,764362,037,20302,232,320