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 17:28GraceGraceError
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 17:2800000Error: expected "53687711941554444 ", got "53687712756186474 "stderr
2Jun 7, 2024 17:2742,107408,919,791349,485,75802,260,992
3Jun 7, 2024 17:2742,191405,132,742350,186,58202,273,280
4Jun 7, 2024 17:2842,196420,370,528350,222,72202,265,088
5Jun 7, 2024 17:2842,317419,102,227351,235,00902,273,280
6Jun 7, 2024 17:2842,319430,177,705351,251,64502,269,184
7Jun 7, 2024 17:2842,416412,865,397352,056,44902,277,376
8Jun 7, 2024 17:2742,431410,283,762352,177,54002,273,280
9Jun 7, 2024 17:2842,464419,735,398352,452,11002,273,280
10Jun 7, 2024 17:2843,209434,810,573358,634,56302,260,992