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 listJun 29, 2021 06:00Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2021 06:0000000Error: expected "53691845271246288 ", got "53691851768738470 "
2Jun 29, 2021 06:0000000Error: expected "53686550031256874 ", got "53686556528749056 "
3Jun 29, 2021 06:0000000Error: expected "53687117641636752 ", got "53687124139128934 "
4Jun 29, 2021 06:0147,676464,935,558395,709,64902,207,744
5Jun 29, 2021 06:0047,686459,181,738395,796,21902,207,744
6Jun 29, 2021 06:0147,691462,230,090395,837,92102,207,744
7Jun 29, 2021 06:0047,709451,218,110395,986,87502,207,744
8Jun 29, 2021 06:0147,711471,343,162395,997,81902,207,744
9Jun 29, 2021 06:0047,712474,654,249396,009,84302,207,744