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 9, 2021 13:48MaratMaratScore: 313,120Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 9, 2021 13:12311,2752,653,598,2722,583,578,51602,260,992
2Aug 9, 2021 13:48311,5602,634,669,9112,585,944,49902,203,648
3Aug 9, 2021 13:12311,6562,648,558,5762,586,743,56602,191,360
4Aug 9, 2021 13:48313,1202,679,016,4942,598,894,63902,211,840
5Aug 9, 2021 13:12313,6252,664,622,9512,603,091,23102,199,552
6Aug 9, 2021 13:48315,0872,676,924,8352,615,225,93202,252,800