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:04Jack FrigaardJack FrigaardScore: 4,966Success
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:044,94663,958,27838,047,0003,003,0002,523,136
2Dec 31, 2022 17:044,95068,045,48438,079,0003,006,0002,453,504
3Dec 31, 2022 17:044,95263,278,06538,098,0003,007,0002,453,504
4Dec 31, 2022 17:044,95662,451,37940,132,0001,003,0002,453,504
5Dec 31, 2022 17:044,95766,127,51839,134,0002,006,0002,453,504
6Dec 31, 2022 17:044,96063,555,85838,157,0003,012,0002,523,136
7Dec 31, 2022 17:044,96366,806,33738,178,0003,014,0002,523,136
8Dec 31, 2022 17:044,96664,574,86638,205,0003,016,0002,523,136
9Dec 31, 2022 17:044,96772,191,27738,209,0003,016,0002,523,136
10Dec 31, 2022 17:045,01367,231,24040,592,0001,014,0002,523,136
11Dec 31, 2022 17:045,02269,979,64440,665,0001,016,0002,523,136
12Dec 31, 2022 17:045,04168,741,22139,847,0001,992,0002,453,504
13Dec 31, 2022 17:045,05395,398,45541,936,15702,203,648
14Dec 31, 2022 17:045,059112,678,17541,992,11302,211,840
15Dec 31, 2022 17:045,072114,698,37142,100,59202,195,456