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 22, 2022 02:56zhiayangzhiayangScore: 43,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 22, 2022 02:5642,356424,993,790351,552,07302,301,952
2Aug 22, 2022 02:5642,383417,788,716351,779,23202,293,760
3Aug 22, 2022 02:5643,211416,430,557358,651,73902,297,856
4Aug 22, 2022 02:5643,212429,705,188358,662,92002,306,048
5Aug 22, 2022 02:5643,229430,571,245358,804,53302,289,664
6Aug 22, 2022 02:5643,237422,821,031358,869,08602,281,472