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 19:51matsuoka-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 19:5100000Error: expected "53687149434680398 ", got "79020567981516078"
2Jul 14, 2024 19:5200000Error: No answer to stdout. Died or killed?
3Jul 14, 2024 19:5200000Error: expected "53692862004908280 ", got "60821336567699335"
4Jul 14, 2024 19:5200000Error: No answer to stdout. Died or killed?
5Jul 14, 2024 19:5300000Error: No answer to stdout. Died or killed?
6Jul 14, 2024 19:5300000Error: expected "53691597214859761 ", got "73344222764371150"
7Jul 14, 2024 19:514,329111,628,49035,929,09402,248,704
8Jul 14, 2024 19:514,333104,843,03235,962,45702,252,800
9Jul 14, 2024 19:534,336115,405,19935,987,96102,379,776
10Jul 14, 2024 19:534,33796,881,09335,996,87002,244,608
11Jul 14, 2024 19:514,342102,606,41936,037,26302,256,896
12Jul 14, 2024 19:534,344102,275,25836,055,82302,252,800