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 13, 2023 11:04CadovvlCadovvlError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2023 11:0300000Error: No answer to stdout. Died or killed?
2Jun 13, 2023 11:05103,200945,471,856856,557,19002,236,416
3Jun 13, 2023 11:05103,224917,750,762856,762,48902,228,224
4Jun 13, 2023 11:05103,343919,339,374857,745,93302,232,320
5Jun 13, 2023 11:05104,088935,663,100863,932,06702,244,608
6Jun 13, 2023 11:05104,141942,529,375864,368,09002,248,704
7Jun 13, 2023 11:05104,143934,526,714864,388,04302,244,608
8Jun 13, 2023 11:04133,9661,174,336,5501,111,916,96702,269,184
9Jun 13, 2023 11:04134,0171,186,704,4711,112,340,37902,265,088
10Jun 13, 2023 11:04134,1991,171,037,9121,113,853,96102,269,184