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 3, 2024 12:51Steve HanSteve HanScore: 107,954Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2024 12:51107,848962,381,630895,139,53402,293,760
2May 3, 2024 12:50107,883961,603,849895,429,84102,289,664
3May 3, 2024 12:44107,905953,059,069895,614,57902,281,472
4May 3, 2024 12:44107,912968,981,122895,673,17102,297,856
5May 3, 2024 12:50107,925970,216,168895,774,19902,293,760
6May 3, 2024 12:50107,934948,890,428895,855,09802,256,896
7May 3, 2024 12:47107,947955,208,636895,960,52302,297,856
8May 3, 2024 12:49107,951952,622,794895,991,65302,293,760
9May 3, 2024 12:47107,951954,725,177895,992,59802,289,664
10May 3, 2024 12:49107,954958,693,899896,015,08502,293,760
11May 3, 2024 12:47107,958962,254,711896,054,88002,301,952
12May 3, 2024 12:44107,974958,394,058896,182,92302,285,568
13May 3, 2024 12:49107,984969,631,509896,265,20902,285,568
14May 3, 2024 12:50107,990951,603,368896,314,20902,297,856
15May 3, 2024 12:50108,002974,686,822896,417,03102,281,472
16May 3, 2024 12:51108,019952,337,878896,559,95402,293,760
17May 3, 2024 12:50108,049961,635,413896,806,71502,297,856
18May 3, 2024 12:51108,089960,195,999897,137,80702,297,856