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 11, 2023 12:11igorfardocigorfardocScore: 32,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 11, 2023 12:0731,145324,579,747258,504,67302,289,664
2Aug 11, 2023 12:1431,153321,755,734258,572,28002,293,760
3Aug 11, 2023 12:0731,168328,194,210258,691,19302,285,568
4Aug 11, 2023 12:1432,630328,403,586270,828,52902,191,360
5Aug 11, 2023 12:1132,693346,855,008271,355,85102,293,760
6Aug 11, 2023 12:1132,699341,025,195271,404,91702,174,976
7Aug 11, 2023 12:1132,715355,329,654271,537,48802,297,856
8Aug 11, 2023 12:0732,724341,942,270271,605,45802,289,664
9Aug 11, 2023 12:1432,724337,261,366271,607,02702,289,664