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 31, 2022 17:17Jack FrigaardJack FrigaardScore: 5,087Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 31, 2022 17:175,07365,641,10039,098,0003,007,0002,523,136
2Dec 31, 2022 17:175,07766,398,62639,126,0003,009,0002,523,136
3Dec 31, 2022 17:175,07867,220,10139,139,0003,010,0002,457,600
4Dec 31, 2022 17:175,07964,728,61339,147,0003,011,0002,297,856
5Dec 31, 2022 17:175,08269,266,53939,167,0003,012,0002,465,792
6Dec 31, 2022 17:175,08368,168,37239,173,0003,013,0002,523,136
7Dec 31, 2022 17:175,084109,438,72342,193,27502,211,840
8Dec 31, 2022 17:175,08767,591,74439,206,0003,015,0002,289,664
9Dec 31, 2022 17:175,10363,723,46940,340,0002,017,0002,523,136
10Dec 31, 2022 17:175,11169,583,83740,399,0002,019,0002,523,136
11Dec 31, 2022 17:175,12765,965,62741,539,0001,013,0002,523,136
12Dec 31, 2022 17:175,13064,354,95840,552,0002,027,0002,523,136
13Dec 31, 2022 17:175,13769,053,63340,604,0002,030,0002,445,312
14Dec 31, 2022 17:175,162111,321,87042,841,32602,203,648
15Dec 31, 2022 17:175,172116,233,84342,923,89802,211,840