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 25, 2024 11:10GraceGraceScore: 9,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 25, 2024 11:109,767102,973,38480,069,0001,000,0002,383,872
2May 25, 2024 11:109,769106,686,19779,084,0002,002,0002,289,664
3May 25, 2024 11:109,770103,181,52479,085,0002,002,0002,396,160
4May 25, 2024 11:109,771107,061,50879,098,0002,002,0002,285,568
5May 25, 2024 11:109,782105,167,74179,185,0002,004,0002,285,568
6May 25, 2024 11:109,786103,646,98579,218,0002,005,0002,265,088
7May 25, 2024 11:109,794103,659,87879,286,0002,007,0002,285,568
8May 25, 2024 11:109,795108,920,64179,290,0002,007,0002,269,184
9May 25, 2024 11:109,796102,588,08880,307,0001,003,0002,273,280
10May 25, 2024 11:109,807102,463,65980,391,0001,004,0002,273,280
11May 25, 2024 11:109,811102,585,83780,426,0001,005,0002,285,568
12May 25, 2024 11:109,812103,651,53780,436,0001,005,0002,285,568
13May 25, 2024 11:109,940142,541,40082,499,49302,293,760
14May 25, 2024 11:1010,065154,619,31183,535,39802,293,760
15May 25, 2024 11:1010,093154,206,80783,775,09902,281,472