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 16, 2024 20:47Matt 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 16, 2024 21:0400000Error: expected "53691176031746820 ", got "53691226843804867 "
2Jun 16, 2024 20:5500000Error: expected "53681891770618914 ", got "53681892678396716 "
3Jun 16, 2024 20:5600000Error: Exit with code 1: Segmentation fault at address: 189174735296stderr
4Jun 16, 2024 20:5600000Error: expected "53683131105295574 ", got "53683178580192358 "
5Jun 16, 2024 20:5700000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
6Jun 16, 2024 20:5700000Error: expected "53683515836840717 ", got "53683531763964781 "
7Jun 16, 2024 20:5800000Error: expected "53688270337178891 ", got "53688461703560662 "
8Jun 16, 2024 20:5800000Error: Exit with code 1: Segmentation fault at address: 378349334976stderr
9Jun 16, 2024 20:5900000Error: expected "53690668625671862 ", got "53690682489217621 "
10Jun 16, 2024 21:0000000Error: expected "53689865031678048 ", got "53689876162058731 "
11Jun 16, 2024 21:0000000Error: expected "53689227454971046 ", got "53689617066191419 "
12Jun 16, 2024 21:0100000Error: expected "53687446576309847 ", got "53687687551975104 "
13Jun 16, 2024 21:0100000Error: Exit with code 1: Segmentation fault at address: 189174735296stderr
14Jun 16, 2024 20:5400000Error: expected "53683779925262725 ", got "53683809707987495 "
15Jun 16, 2024 21:0500000Error: expected "53692426160289486 ", got "53692467275584811 "
16Jun 16, 2024 21:0500000Error: expected "53690668709899790 ", got "53691072179545666 "
17Jun 16, 2024 21:0600000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
18Jun 16, 2024 21:0600000Error: expected "53688358584854258 ", got "53688378915250728 "
19Jun 16, 2024 21:0700000Error: expected "53682064649170566 ", got "53682126227306875 "
20Jun 16, 2024 21:0800000Error: expected "53691256010742380 ", got "53691304235482835 "
21Jun 16, 2024 21:0800000Error: Exit with code 1: Segmentation fault at address: 189174735296stderr
22Jun 16, 2024 21:0900000Error: Exit with code 1: Segmentation fault at address: 23636740992stderr
23Jun 27, 2024 15:2700000Error: expected "53686869034418274 ", got "53686900224942964 "
24Jun 27, 2024 15:2800000Error: expected "53683127589548186 ", got "53683139479842932 "
25Jun 27, 2024 15:2900000Error: Exit with code 1: Segmentation fault at address: 401602601472stderr
26Jun 27, 2024 15:2900000Error: expected "53692508039430758 ", got "53692687497476702 "
27Jun 16, 2024 20:5400000Error: expected "53690092458284507 ", got "53690112788680977 "
28Jun 16, 2024 20:4700000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
29Jun 16, 2024 20:4800000Error: expected "53686962202212278 ", got "53687203177877535 "
30Jun 16, 2024 20:4800000Error: expected "53681082350487947 ", got "53681098277612011 "
31Jun 16, 2024 20:4900000Error: expected "53688174288302927 ", got "53688183506530607 "
32Jun 16, 2024 20:4900000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
33Jun 16, 2024 20:5000000Error: expected "53692021740487578 ", got "53692093936248310 "
34Jun 16, 2024 20:5100000Error: expected "53687254248025283 ", got "53687266138320029 "
35Jun 16, 2024 20:5200000Error: expected "53688802771286604 ", got "53688823101683074 "
36Jun 16, 2024 20:5200000Error: expected "53689260501652311 ", got "53689522195955656 "
37Jun 16, 2024 20:5300000Error: Exit with code 1: Segmentation fault at address: 378164751872stderr
38Jun 16, 2024 20:5300000Error: expected "53692406191883204 ", got "53692809661759480 "
39Jun 16, 2024 20:5000000Error: expected "53687727677535075 ", got "53687955651057265 "
40Jun 16, 2024 21:035,125116,204,92342,538,76702,289,664
41Jun 16, 2024 21:025,139111,922,20742,652,92702,420,736
42Jun 16, 2024 21:025,156105,314,96642,796,31602,269,184
43Jun 27, 2024 15:305,159126,411,96642,820,50902,293,760
44Jun 16, 2024 21:025,187104,309,62643,048,45802,277,376
45Jun 16, 2024 21:035,215118,314,40343,286,19902,412,544
46Jun 16, 2024 21:095,233115,583,83643,430,89102,183,168
47Jun 27, 2024 15:305,249110,274,68543,565,20102,416,640
48Jun 16, 2024 21:095,253120,825,10443,603,28402,183,168
49Jun 16, 2024 21:095,267105,889,73043,715,97502,183,168
50Jun 16, 2024 21:035,271110,676,60943,750,21102,293,760
51Jun 27, 2024 15:305,305112,017,96344,028,97202,277,376