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 4, 2024 21:27Matt StuchlikMatt StuchlikError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 21:2700000Error: expected "53680108107521865 ", got "53680124034645929 "
2Jun 4, 2024 21:3300000Error: expected "53681907704184407 ", got "53681943026255074 "
3Jun 4, 2024 21:415,725110,170,34647,513,69602,195,456
4Jun 4, 2024 21:305,749104,193,67447,714,53902,224,128
5Jun 4, 2024 21:305,763124,546,70047,836,85402,203,648
6Jun 4, 2024 21:305,791104,486,47448,067,92202,207,744
7Jun 4, 2024 21:415,820110,396,92448,302,77302,301,952
8Jun 4, 2024 21:415,836131,348,55548,436,54902,183,168