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 14, 2024 17:10matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 14, 2024 17:1000000Error: expected "53682539621443322 ", got "59489379377755432"stderr
2Jul 14, 2024 17:1100000Error: expected "53692061851102176 ", got "60664770747576909"stderr
3Jul 14, 2024 17:1100000Error: expected "53691272817123482 ", got "80051729679343194"stderr
4Jul 14, 2024 17:1100000Error: expected "53686817849715314 ", got "53686815429285066"stderr
5Jul 14, 2024 17:1200000Error: No answer to stdout. Died or killed?stderr
6Jul 14, 2024 17:1200000Error: expected "53685686561611785 ", got "64066436615833085"stderr
7Jul 14, 2024 17:1200000Error: expected "53682949872563262 ", got "70960798247803567"stderr
8Jul 14, 2024 17:1300000Error: expected "53687696274159851 ", got "86118157727961731"stderr
9Jul 14, 2024 17:134,385112,585,93136,391,69302,256,896
10Jul 14, 2024 17:134,389129,792,60436,432,07802,252,800
11Jul 14, 2024 17:134,400108,131,58536,516,40002,252,800