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 12, 2024 19:09Matt 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 12, 2024 19:1700000Error: Exit with code 1: Segmentation fault at address: 140501470674880stderr
2Jun 12, 2024 19:2500000Error: Exit with code 1: Segmentation fault at address: 140014346305472stderr
3Jun 12, 2024 19:2400000Error: Exit with code 1: Segmentation fault at address: 140218921385920stderr
4Jun 12, 2024 19:2400000Error: Exit with code 1: Segmentation fault at address: 139795432996800stderr
5Jun 12, 2024 19:2300000Error: Exit with code 1: Segmentation fault at address: 140127842074560stderr
6Jun 12, 2024 19:2300000Error: Exit with code 1: Segmentation fault at address: 140518732332992stderr
7Jun 12, 2024 19:2200000Error: Exit with code 1: Segmentation fault at address: 140474889273280stderr
8Jun 12, 2024 19:2100000Error: Exit with code 1: Segmentation fault at address: 401602601472stderr
9Jun 12, 2024 19:2100000Error: Exit with code 1: Segmentation fault at address: 139968183795648stderr
10Jun 12, 2024 19:2000000Error: Exit with code 1: Segmentation fault at address: 140233704210368stderr
11Jun 12, 2024 19:2000000Error: Exit with code 1: Segmentation fault at address: 139986900877248stderr
12Jun 12, 2024 19:1900000Error: Exit with code 1: Segmentation fault at address: 140272329555904stderr
13Jun 12, 2024 19:1900000Error: Exit with code 1: Segmentation fault at address: 139707201617856stderr
14Jun 12, 2024 19:1800000Error: Exit with code 1: Segmentation fault at address: 139814485622720stderr
15Jun 12, 2024 19:0900000Error: Exit with code 1: Segmentation fault at address: 139899151843264stderr
16Jun 12, 2024 19:1700000Error: Exit with code 1: Segmentation fault at address: 140489644834752stderr
17Jun 12, 2024 19:1600000Error: Exit with code 1: Segmentation fault at address: 139738440794048stderr
18Jun 12, 2024 19:1600000Error: Exit with code 1: Segmentation fault at address: 139906066153408stderr
19Jun 12, 2024 19:1500000Error: Exit with code 1: Segmentation fault at address: 140487082115008stderr
20Jun 12, 2024 19:1500000Error: Exit with code 1: Segmentation fault at address: 139985250418624stderr
21Jun 12, 2024 19:1400000Error: Exit with code 1: Segmentation fault at address: 140580367630272stderr
22Jun 12, 2024 19:1300000Error: Exit with code 1: Segmentation fault at address: 140576263503808stderr
23Jun 12, 2024 19:1300000Error: Exit with code 1: Segmentation fault at address: 140378873266112stderr
24Jun 12, 2024 19:1200000Error: Exit with code 1: Segmentation fault at address: 140377130532800stderr
25Jun 12, 2024 19:1200000Error: Exit with code 1: Segmentation fault at address: 140205434601408stderr
26Jun 12, 2024 19:1100000Error: Exit with code 1: Segmentation fault at address: 139945113026496stderr
27Jun 12, 2024 19:1100000Error: Exit with code 1: Segmentation fault at address: 139998561042368stderr
28Jun 12, 2024 19:1000000Error: Exit with code 1: Segmentation fault at address: 139953681989568stderr