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 listDec 28, 2022 13:58Robert BurkeRobert BurkeScore: 10,604Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 13:589,15997,084,03974,019,0002,000,0002,433,024
2Dec 28, 2022 13:589,173109,106,79474,136,0002,003,0002,277,376
3Dec 28, 2022 13:589,20695,247,51075,404,0001,005,0002,277,376
4Dec 28, 2022 13:5810,589108,934,61386,890,000998,0002,424,832
5Dec 28, 2022 13:5810,590108,945,14486,895,000998,0002,277,376
6Dec 28, 2022 13:5810,596115,775,03985,952,0001,998,0002,424,832
7Dec 28, 2022 13:5810,600113,013,82086,979,000999,0002,424,832
8Dec 28, 2022 13:5810,604109,388,53086,010,0002,000,0002,428,928
9Dec 28, 2022 13:5810,612106,477,68688,076,00002,510,848
10Dec 28, 2022 13:5810,613111,414,96187,088,0001,001,0002,519,040
11Dec 28, 2022 13:5810,616109,117,07286,114,0002,002,0002,273,280
12Dec 28, 2022 13:5810,622115,976,79687,158,0001,001,0002,428,928
13Dec 28, 2022 13:5810,753161,134,94789,250,41202,301,952
14Dec 28, 2022 13:5810,759150,271,41189,303,27002,248,704
15Dec 28, 2022 13:5810,794161,828,22089,589,63002,252,800