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 listJan 15, 2024 12:20Mridul Krishna MishraMridul Krishna MishraScore: 1,645,526Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 15, 2024 12:201,644,87613,721,647,87713,652,470,24002,252,800
2Jan 15, 2024 12:201,645,52613,727,200,24813,657,866,17602,260,992
3Jan 15, 2024 12:201,652,61713,776,149,03913,716,721,34102,252,800