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 listJun 7, 2024 17:37GraceGraceScore: 59,170Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 17:3759,102555,018,584490,546,35902,265,088
2Jun 7, 2024 17:3759,117553,311,681490,671,30302,265,088
3Jun 7, 2024 17:3759,159561,792,346491,015,55202,404,352
4Jun 7, 2024 17:3759,170554,952,460491,109,38002,273,280
5Jun 7, 2024 17:3759,236562,777,592491,660,94602,269,184
6Jun 7, 2024 17:3759,282560,250,616492,039,31502,273,280