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 listMay 27, 2024 14:03GraceGraceScore: 7,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 14:037,756125,004,02164,374,17402,273,280
2May 27, 2024 14:037,768122,035,60664,474,09002,273,280
3May 27, 2024 14:037,769128,978,17764,483,36102,277,376
4May 27, 2024 14:037,770121,779,20864,490,62902,269,184
5May 27, 2024 14:037,786121,616,53564,627,33402,273,280
6May 27, 2024 14:037,798137,787,65464,723,87402,260,992