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:10Jack FrigaardJack FrigaardScore: 4,950Success
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:104,89768,959,98438,611,0002,032,0002,523,136
2Dec 31, 2022 17:104,89966,901,98339,647,0001,016,0002,453,504
3Dec 31, 2022 17:104,90266,312,31739,667,0001,017,0002,523,136
4Dec 31, 2022 17:104,90472,868,64638,666,0002,035,0002,523,136
5Dec 31, 2022 17:104,91666,514,32139,808,000995,0002,523,136
6Dec 31, 2022 17:104,92863,169,00237,912,0002,993,0002,523,136
7Dec 31, 2022 17:104,94663,922,24239,050,0002,002,0002,457,600
8Dec 31, 2022 17:104,95067,195,26738,076,0003,006,0002,523,136
9Dec 31, 2022 17:104,95364,946,76238,101,0003,007,0002,523,136
10Dec 31, 2022 17:104,95962,926,15439,150,0002,007,0002,461,696
11Dec 31, 2022 17:104,96599,521,42841,211,68902,215,936
12Dec 31, 2022 17:104,97968,668,55439,309,0002,015,0002,523,136
13Dec 31, 2022 17:105,002112,235,64941,517,84202,215,936
14Dec 31, 2022 17:105,05162,968,85438,926,0002,994,0002,523,136
15Dec 31, 2022 17:105,057106,354,32241,974,70302,232,320