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 listApr 29, 2024 17:55Steve HanSteve HanScore: 16,730Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 17:5515,972192,392,750132,565,39302,174,976
2Apr 29, 2024 17:5516,012199,282,846132,899,71102,174,976
3Apr 29, 2024 17:5516,031198,647,367133,054,95102,297,856
4Apr 29, 2024 17:5516,730206,136,225138,858,42402,174,976
5Apr 29, 2024 17:5516,754206,002,352139,062,08802,306,048
6Apr 29, 2024 17:5516,816206,447,878139,572,29702,297,856