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 1, 2024 18:38Liam BuchananLiam BuchananError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 1, 2024 18:3600000Error: No answer to stdout. Died or killed?stderr
2Aug 1, 2024 18:3634,131349,249,204283,287,44002,297,856
3Aug 1, 2024 18:3734,147343,201,306283,424,20802,301,952
4Aug 1, 2024 18:3834,212357,317,504283,959,77602,297,856
5Aug 1, 2024 18:3834,240347,799,798284,188,59702,301,952
6Aug 1, 2024 18:3635,459358,356,156294,310,37402,174,976
7Aug 1, 2024 18:3836,741363,147,019304,951,46702,179,072
8Aug 1, 2024 18:3736,746373,700,842304,994,73602,183,168
9Aug 1, 2024 18:3636,762367,269,891305,127,04102,183,168
10Aug 1, 2024 18:3736,769362,304,414305,180,07202,297,856
11Aug 1, 2024 18:3836,775355,216,784305,230,86802,301,952
12Aug 1, 2024 18:3836,776369,990,007305,239,40002,306,048
13Aug 1, 2024 18:3836,779366,879,017305,267,30902,310,144