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 listApr 28, 2024 15:50Steve HanSteve HanScore: 18,952Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 15:5018,835208,788,637156,331,96802,306,048
2Apr 28, 2024 15:5118,838222,829,813156,353,31802,301,952
3Apr 28, 2024 16:0718,873221,196,586156,642,90102,293,760
4Apr 28, 2024 16:0818,888222,465,808156,770,45002,301,952
5Apr 28, 2024 16:0818,916222,604,057157,006,90402,293,760
6Apr 28, 2024 15:5118,924222,433,151157,072,75302,301,952
7Apr 28, 2024 16:0818,952223,234,424157,303,88802,174,976
8Apr 28, 2024 15:5019,829222,478,140164,580,21402,301,952
9Apr 28, 2024 16:0719,900225,500,204165,166,81502,301,952
10Apr 28, 2024 16:0719,902229,461,211165,188,24902,306,048
11Apr 28, 2024 15:5119,936226,986,466165,470,26202,297,856
12Apr 28, 2024 15:5019,982225,747,048165,849,84002,297,856