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 13, 2021 22:45evgenikwtevgenikwtScore: 28,040Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2021 22:4527,521304,383,119228,425,57102,240,512
2Jun 13, 2021 22:4527,531290,243,563228,505,23102,252,800
3Jun 13, 2021 22:4527,915302,163,087231,697,74702,248,704
4Jun 13, 2021 22:4527,951296,941,780231,995,40502,248,704
5Jun 13, 2021 22:4527,956303,550,355232,032,19702,260,992
6Jun 13, 2021 22:4527,978290,556,904232,220,42202,236,416
7Jun 13, 2021 22:4528,035257,626,626232,691,00002,371,584
8Jun 13, 2021 22:4528,040259,535,813232,734,00002,260,992
9Jun 13, 2021 22:4528,550262,449,257234,966,0001,999,0002,260,992
10Jun 13, 2021 22:4528,593264,330,465236,318,0001,001,0002,498,560
11Jun 13, 2021 22:4528,617264,227,536236,521,0001,002,0002,260,992
12Jun 13, 2021 22:4528,623264,134,084235,578,0001,996,0002,375,680
13Jun 13, 2021 22:4528,640263,008,864236,713,000998,0002,519,040
14Jun 13, 2021 22:4528,650261,510,432236,796,000999,0002,256,896
15Jun 13, 2021 22:4528,674261,523,658235,994,0001,999,0002,375,680