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:45GraceGraceError
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:4500000Error: expected "53682317117195920 ", got "53682310563595920 "stderr
2Jun 7, 2024 11:4544,980441,474,754373,333,58202,248,704
3Jun 7, 2024 11:4545,130435,388,994374,580,30602,248,704
4Jun 7, 2024 11:4545,139442,494,418374,656,50102,244,608
5Jun 7, 2024 11:4545,350445,006,717376,404,74202,244,608
6Jun 7, 2024 11:4545,444432,018,722377,187,60902,244,608
7Jun 7, 2024 11:4545,607463,293,649378,541,91402,244,608
8Jun 7, 2024 11:4545,620439,793,921378,645,06002,256,896
9Jun 7, 2024 11:4545,878442,371,259380,788,37902,256,896
10Jun 7, 2024 11:4546,168448,152,965383,194,09702,236,416