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:57Robert BurkeRobert BurkeScore: 8,329Success
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:578,29792,060,96167,864,000998,0002,277,376
2Dec 28, 2022 13:578,30791,046,80467,945,000999,0002,433,024
3Dec 28, 2022 13:578,30889,154,60866,956,0001,998,0002,428,928
4Dec 28, 2022 13:578,31489,989,75367,008,0002,000,0002,437,120
5Dec 28, 2022 13:578,32392,124,12067,076,0002,002,0002,510,848
6Dec 28, 2022 13:578,32588,326,70767,095,0002,002,0002,535,424
7Dec 28, 2022 13:578,32889,523,91968,124,0001,001,0002,539,520
8Dec 28, 2022 13:578,32990,503,60868,128,0001,001,0002,428,928
9Dec 28, 2022 13:578,33392,854,30968,161,0001,002,0002,428,928
10Dec 28, 2022 13:578,34093,042,75869,222,00002,433,024
11Dec 28, 2022 13:578,34494,693,53368,252,0001,003,0002,277,376
12Dec 28, 2022 13:578,34791,599,30268,274,0001,004,0002,535,424
13Dec 28, 2022 13:578,951135,451,87874,295,59602,297,856
14Dec 28, 2022 13:578,962129,087,91174,382,63202,179,072
15Dec 28, 2022 13:578,984123,609,85574,569,71302,170,880