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 listJul 23, 2022 09:59Robert BurkeRobert BurkeScore: 9,949Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2022 09:599,784140,355,62581,203,87902,187,264
2Jul 23, 2022 09:599,798140,382,68281,319,87602,199,552
3Jul 23, 2022 09:599,919108,100,80481,323,0001,003,0002,445,312
4Jul 23, 2022 09:599,929108,568,51081,403,0001,004,0002,277,376
5Jul 23, 2022 09:599,936102,302,81381,466,0001,005,0002,445,312
6Jul 23, 2022 09:599,937105,874,52081,475,0001,005,0002,277,376
7Jul 23, 2022 09:599,937106,068,01981,474,0001,005,0002,277,376
8Jul 23, 2022 09:599,949106,451,23181,584,000994,0002,539,520
9Jul 23, 2022 09:599,955109,494,75781,616,0001,007,0002,539,520
10Jul 23, 2022 09:599,956106,695,34881,628,0001,007,0002,539,520
11Jul 23, 2022 09:599,958111,561,28681,643,0001,007,0002,445,312
12Jul 23, 2022 09:599,966156,107,49182,721,72602,199,552
13Jul 23, 2022 09:599,977111,723,75980,813,0001,995,0002,449,408
14Jul 23, 2022 09:599,981112,701,89980,849,0001,996,0002,445,312
15Jul 23, 2022 09:599,982108,933,80281,851,000998,0002,277,376