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 6, 2021 08:34David KlassenDavid KlassenScore: 94,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 6, 2021 08:3494,264835,176,271782,389,54602,207,744
2Aug 6, 2021 08:1394,266844,215,626782,411,60802,211,840
3Aug 6, 2021 08:1394,276832,632,140782,487,80702,215,936
4Aug 6, 2021 08:3494,281842,865,056782,534,48302,224,128
5Aug 6, 2021 08:1394,288845,798,260782,591,01202,199,552
6Aug 6, 2021 08:3494,290834,900,956782,610,70502,211,840