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 20, 2023 22:18gchebanovgchebanovScore: 8,083Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 20, 2023 22:187,54788,069,61161,632,0001,010,0002,465,792
2Jul 20, 2023 22:187,62389,067,63561,260,0002,008,0002,396,160
3Jul 20, 2023 22:187,62688,031,85161,283,0002,009,0002,404,352
4Jul 20, 2023 22:188,01487,632,58066,517,00002,478,080
5Jul 20, 2023 22:188,05194,399,83464,832,0001,994,0002,465,792
6Jul 20, 2023 22:188,05396,668,88464,842,0001,995,0002,383,872
7Jul 20, 2023 22:188,07492,020,66965,013,0002,000,0002,461,696
8Jul 20, 2023 22:188,08398,669,68365,086,0002,002,0002,457,600
9Jul 20, 2023 22:188,09993,798,00666,220,0001,003,0002,461,696
10Jul 20, 2023 22:188,13288,322,71267,497,00002,383,872
11Jul 20, 2023 22:188,13490,587,88567,513,00002,392,064
12Jul 20, 2023 22:188,17097,825,95267,809,00002,437,120
13Jul 20, 2023 22:188,631152,283,41271,634,31202,269,184
14Jul 20, 2023 22:188,684142,518,60472,078,06502,277,376
15Jul 20, 2023 22:188,804142,902,87773,076,35202,273,280