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 7, 2023 20:27AndreyTSAndreyTSScore: 245,100Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 7, 2023 18:24244,9132,086,959,3602,032,779,49402,220,032
2Aug 7, 2023 21:08245,0172,091,663,9892,033,638,30602,224,128
3Aug 7, 2023 21:08245,0382,098,565,8022,033,814,08302,203,648
4Aug 7, 2023 20:27245,0852,093,812,1562,034,209,54202,224,128
5Aug 7, 2023 18:24245,1002,103,209,2792,034,327,29002,228,224
6Aug 7, 2023 20:27245,1962,102,678,7122,035,123,36702,220,032
7Aug 7, 2023 20:27245,2632,096,063,9292,035,685,88502,211,840
8Aug 7, 2023 18:24245,3702,126,841,4302,036,570,84402,215,936
9Aug 7, 2023 21:08246,3442,109,889,7822,044,655,11602,220,032