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 29, 2023 05:12wnwnScore: 77,694Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 29, 2023 05:1177,670720,856,975644,663,20602,265,088
2Jan 29, 2023 05:1277,679707,685,668644,735,45302,269,184
3Jan 29, 2023 05:1177,683702,759,089644,770,81902,273,280
4Jan 29, 2023 05:1177,694705,997,456644,862,66702,269,184
5Jan 29, 2023 05:1277,694700,118,952644,856,05402,269,184
6Jan 29, 2023 05:1277,700710,068,062644,908,88602,277,376