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 listMay 29, 2024 17:20GraceGraceScore: 6,793Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2024 17:206,51477,938,36451,060,0003,003,0002,289,664
2May 29, 2024 17:206,52976,772,07951,177,0003,010,0002,412,544
3May 29, 2024 17:206,55076,615,19052,349,0002,013,0002,478,080
4May 29, 2024 17:206,57882,365,08651,567,0003,033,0002,289,664
5May 29, 2024 17:206,58783,472,27952,650,0002,025,0002,289,664
6May 29, 2024 17:206,63884,537,01051,089,0004,006,0002,289,664
7May 29, 2024 17:206,70286,875,13051,651,0003,973,0002,510,848
8May 29, 2024 17:206,79377,873,03452,358,0004,027,0002,326,528
9May 29, 2024 17:206,824116,411,21956,637,11702,187,264
10May 29, 2024 17:206,835123,033,18656,730,27602,310,144
11May 29, 2024 17:206,840121,619,17756,775,98202,187,264
12May 29, 2024 17:206,87979,223,05053,092,0004,006,0002,494,464
13May 29, 2024 17:207,59489,551,28160,031,0003,001,0002,420,736
14May 29, 2024 17:207,61791,755,09160,215,0003,010,0002,424,832
15May 29, 2024 17:207,66894,698,30461,626,0002,020,0002,416,640