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 listOct 4, 2022 17:33Robert BurkeRobert BurkeScore: 10,006Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2022 17:339,989103,512,35681,911,000998,0002,539,520
2Oct 4, 2022 17:339,990109,785,12581,918,000999,0002,277,376
3Oct 4, 2022 17:339,995106,535,86981,958,000999,0002,433,024
4Oct 4, 2022 17:339,997108,090,28781,976,000999,0002,277,376
5Oct 4, 2022 17:3310,001102,520,87882,006,0001,000,0002,510,848
6Oct 4, 2022 17:3310,001106,763,15781,011,0002,000,0002,277,376
7Oct 4, 2022 17:3310,002105,372,06582,018,0001,000,0002,428,928
8Oct 4, 2022 17:3310,006110,368,58782,052,0001,000,0002,277,376
9Oct 4, 2022 17:3310,006111,140,88682,050,0001,000,0002,277,376
10Oct 4, 2022 17:3310,008108,064,26282,066,0001,000,0002,424,832
11Oct 4, 2022 17:3310,013107,586,73581,105,0002,002,0002,277,376
12Oct 4, 2022 17:3310,018107,638,91483,149,00002,428,928
13Oct 4, 2022 17:3311,607147,383,54796,340,97002,297,856
14Oct 4, 2022 17:3311,618151,905,19596,427,69602,170,880
15Oct 4, 2022 17:3311,641156,855,41696,623,46502,174,976