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 14:45Matt 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 14:4700000Error: expected "53689455994156601 ", got "53689681042697794 "
2Jun 5, 2024 14:5100000Error: expected "53681893784953504 ", got "53682316679646175 "
3Jun 5, 2024 14:5100000Error: expected "53691649294549832 ", got "53691690409845157 "
4Jun 5, 2024 14:5000000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
5Jun 5, 2024 14:4900000Error: Exit with code 1: Segmentation fault at address: 401602601472stderr
6Jun 5, 2024 14:4900000Error: expected "53686508800094617 ", got "53686598529239962 "
7Jun 5, 2024 14:4800000Error: expected "53687197758833442 ", got "53687229617603487 "
8Jun 5, 2024 14:4800000Error: expected "53679676998048746 ", got "53679698855901175 "
9Jun 5, 2024 14:4800000Error: expected "53688788627693731 ", got "53688808958090201 "
10Jun 5, 2024 14:4700000Error: Exit with code 1: Segmentation fault at address: 23636740992stderr
11Jun 5, 2024 14:4700000Error: expected "53688439602560146 ", got "53688482705752007 "
12Jun 5, 2024 14:4700000Error: expected "53689939600348102 ", got "53689990412406149 "
13Jun 5, 2024 14:4600000Error: expected "53689695060049511 ", got "53689706190430194 "
14Jun 5, 2024 14:4600000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
15Jun 5, 2024 14:4500000Error: expected "53684526191145814 ", got "53684584831637185 "
16Jun 5, 2024 14:4500000Error: expected "53690622263071705 ", got "53691025737837837 "
17Jun 5, 2024 14:4500000Error: expected "53689107733981501 ", got "53689155958721956 "
18Jun 5, 2024 14:4500000Error: expected "53683639902635669 ", got "53683664883850163 "
19Jun 5, 2024 14:525,225127,578,79443,365,51202,277,376
20Jun 5, 2024 14:485,300112,076,44143,990,14802,260,992
21Jun 5, 2024 14:525,305108,960,96844,032,61102,191,360
22Jun 5, 2024 14:485,315114,732,04344,117,56102,289,664
23Jun 5, 2024 14:485,323116,466,53244,176,96302,424,832
24Jun 5, 2024 14:525,355109,023,04744,450,54802,289,664