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 listMay 31, 2024 04:18GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2024 04:1900000Error: expected "53681100719712843 ", got "53681100719647307 "
2May 31, 2024 04:1900000Error: expected "53688577181042757 ", got "53688577174423621 "
3May 31, 2024 04:1900000Error: expected "53691429044167497 ", got "53691429044101961 "
4May 31, 2024 04:1900000Error: expected "53683704598050134 ", got "53683704597984598 "
5May 31, 2024 04:1800000Error: expected "53688578289688948 ", got "53688578283135348 "
6May 31, 2024 04:195,555107,015,33446,102,64002,281,472
7May 31, 2024 04:195,557117,642,22146,121,18802,277,376
8May 31, 2024 04:195,557104,950,57546,126,66202,285,568
9May 31, 2024 04:195,561104,327,14146,155,12702,285,568
10May 31, 2024 04:195,569115,753,26846,224,22702,281,472
11May 31, 2024 04:195,571116,483,80546,237,17102,285,568
12May 31, 2024 04:195,575104,342,31046,270,26102,277,376
13May 31, 2024 04:195,583109,890,29246,337,21902,289,664
14May 31, 2024 04:195,605106,725,06346,519,41802,285,568
15May 31, 2024 04:195,607122,446,29946,538,75902,285,568
16May 31, 2024 04:195,611112,130,65646,571,26302,285,568
17May 31, 2024 04:195,612109,398,24046,577,09502,289,664
18May 31, 2024 04:195,624110,924,08746,679,91302,281,472
19May 31, 2024 04:195,637111,695,23046,784,02902,293,760
20May 31, 2024 04:195,646114,140,32846,864,05402,289,664