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 listJun 5, 2024 12:26Matt 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
1Jun 5, 2024 12:2600000Error: expected "53692764821238736 ", got "53692831297023586 "
2Jun 5, 2024 12:2700000Error: Exit with code 1: Segmentation fault at address: 189174735296stderr
3Jun 5, 2024 12:2700000Error: expected "53682010297024278 ", got "53682035278238772 "
4Jun 5, 2024 12:2800000Error: expected "53681301883049342 ", got "53681302790827144 "
5Jun 5, 2024 12:2800000Error: expected "53689767610368270 ", got "53689799490607392 "
6Jun 5, 2024 12:2900000Error: expected "53683679641947585 ", got "53683920617356842 "
7Jun 5, 2024 12:3000000Error: expected "53681739802050230 ", got "53681817485201168 "
8Jun 5, 2024 12:3000000Error: expected "53691520853263514 ", got "53691526464384852 "
9Jun 5, 2024 12:3100000Error: expected "53688365070566631 ", got "53688766168666738 "
10Jun 5, 2024 12:3100000Error: expected "53681204518531528 ", got "53681220445655592 "
11Jun 5, 2024 12:3200000Error: expected "53688641378686300 ", got "53688654897117387 "
12Jun 5, 2024 12:325,436108,866,85645,122,42802,285,568
13Jun 5, 2024 12:325,44296,935,85745,166,89302,277,376
14Jun 5, 2024 12:325,472122,246,17545,417,01202,289,664