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 listFeb 2, 2024 18:50Bubble BoiBubble BoiError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 2, 2024 18:3200000Error: expected "53690187236741949 ", got "4601181349731729645 "
2Feb 2, 2024 18:5057,710543,581,788478,995,14202,232,320
3Feb 2, 2024 18:3357,714548,823,937479,028,50402,236,416
4Feb 2, 2024 18:3357,767549,041,661479,462,40102,240,512
5Feb 2, 2024 18:4957,775547,429,619479,535,53302,252,800
6Feb 2, 2024 18:3357,933540,246,107480,843,53002,244,608
7Feb 2, 2024 18:4957,946551,820,261480,947,80902,240,512
8Feb 2, 2024 18:4957,948557,044,523480,971,67702,240,512
9Feb 2, 2024 18:5057,951545,189,709480,989,41402,236,416
10Feb 2, 2024 18:5058,120545,229,469482,395,82702,240,512