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 listOct 15, 2024 00:05Joad NacerJoad NacerScore: 4,453Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2024 00:054,36563,397,01534,219,0002,012,0002,396,160
2Oct 15, 2024 00:044,38463,526,49235,380,0001,010,0002,535,424
3Oct 15, 2024 00:054,39555,794,77136,481,00002,269,184
4Oct 15, 2024 00:044,40455,611,70435,542,0001,015,0002,412,544
5Oct 15, 2024 00:044,42369,718,58736,715,00002,269,184
6Oct 15, 2024 00:054,44463,582,69034,891,0001,993,0002,404,352
7Oct 15, 2024 00:054,45359,075,11835,958,000998,0002,502,656
8Oct 15, 2024 00:054,45359,066,85234,966,0001,998,0002,408,448
9Oct 15, 2024 00:054,45561,802,12034,979,0001,998,0002,408,448
10Oct 15, 2024 00:054,45764,853,21735,995,000999,0002,265,088
11Oct 15, 2024 00:054,47062,679,14835,098,0002,005,0002,412,544
12Oct 15, 2024 00:054,48056,212,17036,182,0001,005,0002,404,352
13Oct 15, 2024 00:054,49567,898,91136,302,0001,008,0002,408,448
14Oct 15, 2024 00:054,50158,747,85237,361,00002,408,448
15Oct 15, 2024 00:054,50363,027,82736,368,0001,010,0002,396,160