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 13:16matsuoka-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 13:1600000Error: expected "53687293908187764 ", got "72767140439674771"
2Jul 14, 2024 13:1700000Error: expected "53683872101386990 ", got "56186406528062030"
3Jul 14, 2024 13:1900000Error: expected "53692311232102651 ", got "53692308811672403"
4Jul 14, 2024 13:1900000Error: No answer to stdout. Died or killed?
5Jul 14, 2024 13:2000000Error: No answer to stdout. Died or killed?
6Jul 14, 2024 15:5100000Error: expected "53686823804322649 ", got "75187801911023304"
7Jul 14, 2024 15:5100000Error: expected "53691124801825215 ", got "95013444102384735"
8Jul 14, 2024 15:5100000Error: expected "53690735733918351 ", got "87353184484931782"
9Jul 14, 2024 15:5100000Error: No answer to stdout. Died or killed?
10Jul 14, 2024 15:5200000Error: expected "53686105950682279 ", got "82416704231821904"
11Jul 14, 2024 15:5200000Error: No answer to stdout. Died or killed?
12Jul 14, 2024 15:5200000Error: No answer to stdout. Died or killed?
13Jul 14, 2024 15:5300000Error: expected "53686635206513178 ", got "55379850406414347"
14Jul 14, 2024 15:534,387110,371,77236,410,52602,383,872
15Jul 14, 2024 15:534,395110,192,74736,479,68802,248,704
16Jul 14, 2024 15:534,415103,781,42836,647,68202,265,088