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 listJul 16, 2023 23:57Yusuf KetenYusuf KetenScore: 1,641,636Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 16, 2023 23:571,641,25813,676,073,38313,622,438,86102,248,704
2Jul 16, 2023 23:571,641,63613,689,679,89213,625,578,78102,252,800
3Jul 16, 2023 23:571,701,93514,194,394,12014,126,063,20402,260,992