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 16:13GraceGraceScore: 6,242Success
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 16:136,05871,546,66947,268,0003,017,0002,392,064
2May 29, 2024 16:136,06583,754,54847,319,0003,020,0002,424,832
3May 29, 2024 16:136,07472,699,05547,393,0003,025,0002,396,160
4May 29, 2024 16:136,15974,990,08647,110,0004,009,0002,514,944
5May 29, 2024 16:136,16072,822,42147,120,0004,010,0002,269,184
6May 29, 2024 16:136,16374,741,03748,144,0003,009,0002,273,280
7May 29, 2024 16:136,17675,449,92847,240,0004,020,0002,502,656
8May 29, 2024 16:136,18173,598,01048,285,0003,017,0002,514,944
9May 29, 2024 16:136,18277,354,65048,293,0003,018,0002,289,664
10May 29, 2024 16:136,24284,597,38250,812,000996,0002,441,216
11May 29, 2024 16:136,27179,824,32948,045,0004,003,0002,330,624
12May 29, 2024 16:136,27175,294,71148,043,0004,003,0002,355,200
13May 29, 2024 17:186,464126,175,59853,647,84602,183,168
14May 29, 2024 16:136,470116,891,51953,698,50902,179,072
15May 29, 2024 17:186,474114,919,11353,735,51002,310,144
16May 29, 2024 16:136,487118,317,73153,842,48002,191,360
17May 29, 2024 17:186,516118,572,96154,079,99302,187,264
18May 29, 2024 16:136,560115,983,94654,449,29702,187,264