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 7, 2024 15:00Evgeniy AsvatovEvgeniy AsvatovScore: 343,393Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 7, 2024 15:00342,7482,927,391,7082,844,807,46402,199,552
2Jan 7, 2024 15:00343,3932,904,620,7382,850,158,92002,203,648
3Jan 7, 2024 15:00346,3872,944,470,4802,875,010,23902,199,552