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 listJul 13, 2024 07:42Matt 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
1Jul 13, 2024 07:4200000Error: expected "53685551652068743 ", got "53685619267341437 "
2Jul 13, 2024 07:4200000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
3Jul 13, 2024 07:4200000Error: expected "53683832973672291 ", got "53683844104052974 "
4Jul 13, 2024 07:4300000Error: expected "53692676180509988 ", got "53692748376270720 "
5Jul 13, 2024 07:435,199100,170,31743,149,22602,285,568
6Jul 13, 2024 07:435,248120,049,71543,557,57902,289,664
7Jul 13, 2024 07:435,253117,947,76643,595,94602,297,856