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 25, 2024 13:18Steve HanSteve HanScore: 68,286Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2024 13:1767,879625,902,910563,399,58102,179,072
2Apr 25, 2024 13:1768,224654,512,276566,258,22902,301,952
3Apr 25, 2024 13:1868,228630,298,706566,289,55102,297,856
4Apr 25, 2024 13:1768,286630,224,769566,773,87502,301,952
5Apr 25, 2024 13:1868,374625,883,069567,507,80402,297,856
6Apr 25, 2024 13:1868,430625,907,094567,971,85002,301,952