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 13:21Matt 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 13:4900000Error: expected "53687856718567351 ", got "53688100656257491 "
2Jun 5, 2024 13:3500000Error: expected "53691663691136306 ", got "53691714503194353 "
3Jun 5, 2024 13:3500000Error: Exit with code 1: Segmentation fault at address: 23636740992stderr
4Jun 5, 2024 13:3600000Error: expected "53691577479183761 ", got "53691602291922526 "
5Jun 5, 2024 13:3600000Error: expected "53690562753216130 ", got "53690594633455252 "
6Jun 5, 2024 13:3700000Error: Exit with code 1: Segmentation fault at address: 380921491968stderr
7Jun 5, 2024 13:3700000Error: expected "53688718443672903 ", got "53688746920302420 "
8Jun 5, 2024 13:4600000Error: expected "53693370282128388 ", got "53693549740174332 "
9Jun 5, 2024 13:4600000Error: expected "53691885590496340 ", got "53691926705791665 "
10Jun 5, 2024 13:4700000Error: expected "53691593744115434 ", got "53691661732785503 "
11Jun 5, 2024 13:4800000Error: expected "53689379181661420 ", got "53689604230202613 "
12Jun 5, 2024 13:4800000Error: expected "53690591288122681 ", got "53690852982426026 "
13Jun 5, 2024 13:3400000Error: expected "53688125832234085 ", got "53688136962614768 "
14Jun 5, 2024 13:4900000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
15Sep 2, 2024 16:0000000Error: Exit with code 1: Segmentation fault at address: 53155990592stderr
16Sep 2, 2024 16:0100000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
17Sep 2, 2024 16:0100000Error: expected "53683746495907641 ", got "53683810135292878 "
18Sep 2, 2024 16:0200000Error: expected "53691982497927175 ", got "53692046733047940 "
19Sep 2, 2024 16:0300000Error: expected "53681108279719503 ", got "53681531171849614 "
20Sep 2, 2024 16:0300000Error: Exit with code 1: Segmentation fault at address: 378349335040stderr
21Sep 2, 2024 16:0400000Error: expected "53690313089655179 ", got "53690379565440029 "
22Sep 2, 2024 16:0400000Error: expected "53691696085840336 ", got "53691707976135082 "
23Sep 2, 2024 16:0500000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
24Sep 2, 2024 16:0500000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
25Jun 5, 2024 13:2600000Error: expected "53689390918644408 ", got "53689426789088319 "
26Jun 5, 2024 13:2500000Error: expected "53687387233230088 ", got "53687435457970543 "
27Jun 5, 2024 13:2500000Error: expected "53685789584412509 ", got "53685811442264938 "
28Jun 5, 2024 13:2400000Error: expected "53680863063408626 ", got "53680863971186428 "
29Jun 5, 2024 13:2400000Error: expected "53684753400002271 ", got "53684799837057820 "
30Jun 5, 2024 13:465,200100,324,41143,162,56602,277,376
31Jun 5, 2024 13:225,210110,654,25743,242,76602,179,072
32Jun 5, 2024 13:505,224134,588,89643,362,50202,179,072
33Jun 5, 2024 13:465,224121,763,09343,359,48002,277,376
34Jun 5, 2024 13:385,226111,015,61543,373,19202,285,568
35Jun 5, 2024 13:215,228101,574,21943,389,90102,297,856
36Jun 5, 2024 13:225,230116,210,92343,407,06202,297,856
37Jun 5, 2024 13:385,230120,057,72443,409,39002,301,952
38Jun 5, 2024 13:215,235119,410,73743,449,80402,297,856
39Jun 5, 2024 13:505,237111,127,49643,469,65102,281,472
40Jun 5, 2024 13:275,241100,443,66543,498,72002,289,664
41Jun 5, 2024 13:385,245115,747,64243,533,73202,277,376
42Jun 5, 2024 13:505,251122,671,84743,586,24602,293,760
43Jun 5, 2024 13:465,255101,549,05943,618,12402,174,976
44Jun 5, 2024 13:225,264110,601,65243,693,37102,293,760
45Jun 5, 2024 13:215,270100,325,17943,742,40402,281,472
46Jun 5, 2024 13:275,291121,642,08343,917,54002,183,168
47Jun 5, 2024 13:275,312122,289,23444,089,34802,301,952