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 13:24Steve HanSteve HanScore: 17,843Success
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 13:2417,007202,940,784141,160,11302,297,856
2Apr 29, 2024 13:2417,060224,441,980141,596,46302,293,760
3Apr 29, 2024 13:2517,085206,254,312141,804,58802,183,168
4Apr 29, 2024 13:2517,843209,890,075148,095,94402,297,856
5Apr 29, 2024 13:2517,899214,607,870148,560,76702,301,952
6Apr 29, 2024 13:2418,053222,925,837149,843,70102,301,952