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 listMay 28, 2024 05:07Matt 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
1May 28, 2024 05:1000000Error: expected "53684507509880853 ", got "53684559864567153 "
2May 28, 2024 05:2400000Error: Exit with code 1: Segmentation fault at address: 17833988stderr
3May 28, 2024 05:2300000Error: expected "53686713885655370 ", got "53686746334003339 "
4May 28, 2024 05:2000000Error: expected "53682448829774626 ", got "53682484151845293 "
5May 28, 2024 05:1900000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
6May 28, 2024 05:1800000Error: expected "53689907185263554 ", got "53689960632367603 "
7May 28, 2024 05:1700000Error: expected "53692358844382059 ", got "53692370734676805 "
8May 28, 2024 05:1600000Error: Exit with code 1: Segmentation fault at address: 1082163328stderr
9May 28, 2024 05:1500000Error: expected "53685061821702142 ", got "53685124368139072 "
10May 28, 2024 05:1400000Error: Exit with code 1: Segmentation fault at address: 570491008stderr
11May 28, 2024 05:1200000Error: expected "53692629524187292 ", got "53692740830514786 "
12May 28, 2024 05:1100000Error: expected "53690546087227591 ", got "53690584810352650 "
13May 28, 2024 05:0900000Error: expected "53690621105611500 ", got "53690626716732838 "
14May 28, 2024 05:0800000Error: expected "53683527678147071 ", got "53683544276661826 "
15May 28, 2024 05:0700000Error: Exit with code 1: Segmentation fault at address: 2416181376stderr
16May 28, 2024 05:136,164120,613,77951,163,85102,469,888
17May 28, 2024 05:226,192118,362,73051,392,94702,187,264
18May 28, 2024 05:226,203118,533,79551,483,75202,224,128
19May 28, 2024 05:226,277119,824,64952,102,20102,187,264
20May 28, 2024 05:136,286108,480,27752,171,37602,187,264
21May 28, 2024 05:256,310108,462,17752,376,92102,199,552
22May 28, 2024 05:136,334109,222,22052,568,89502,195,456
23May 28, 2024 05:256,356112,088,91152,751,78402,195,456
24May 28, 2024 05:256,379112,739,77852,945,93402,203,648