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 listAug 23, 2023 14:39matsuoka-601matsuoka-601Error
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2023 16:3500000Error: expected "53687476819961997 ", got "53687451219961997 "
2Aug 23, 2023 16:3500000Error: expected "53689848889589080 ", got "53689823289589080 "
3Aug 23, 2023 16:3500000Error: expected "53690330078628981 ", got "53690304478628981 "
4Aug 23, 2023 16:3500000Error: expected "53684832409072011 ", got "53684806809072011 "
5Aug 23, 2023 16:3700000Error: expected "53681761931602481 ", got "53681736331602481 "
6Aug 23, 2023 14:399,251142,176,52076,779,58302,277,376
7Aug 23, 2023 14:399,269146,155,07876,936,73102,289,664
8Aug 23, 2023 16:369,440135,838,57678,351,25102,281,472
9Aug 23, 2023 14:399,484145,640,62478,717,81702,277,376
10Aug 23, 2023 16:369,505153,532,12378,891,83002,273,280
11Aug 24, 2023 03:209,511144,438,11978,941,04802,256,896
12Aug 24, 2023 03:209,592144,840,15579,610,52302,277,376
13Aug 23, 2023 16:369,673145,542,70680,283,23602,281,472
14Aug 24, 2023 03:2010,144142,844,85084,196,07002,285,568