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 16:53Jack FrigaardJack FrigaardScore: 5,163Success
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 16:535,11969,710,12140,465,0002,023,0002,523,136
2Dec 31, 2022 16:535,12063,560,04340,476,0002,023,0002,523,136
3Dec 31, 2022 16:535,12265,894,47141,501,0001,012,0002,523,136
4Dec 31, 2022 16:535,12263,747,53340,486,0002,024,0002,449,408
5Dec 31, 2022 16:535,12665,360,83040,520,0002,026,0002,457,600
6Dec 31, 2022 16:535,14071,246,43840,628,0002,031,0002,453,504
7Dec 31, 2022 16:535,15767,618,52741,812,000995,0002,453,504
8Dec 31, 2022 16:535,16370,796,52339,866,0002,990,0002,453,504
9Dec 31, 2022 16:535,164123,851,77042,863,13702,199,552
10Dec 31, 2022 16:535,16869,197,80041,876,0001,021,0002,523,136
11Dec 31, 2022 16:535,176120,989,86642,959,65702,207,744
12Dec 31, 2022 16:535,181109,576,92843,003,43202,199,552
13Dec 31, 2022 16:535,20269,296,98442,174,0001,004,0002,523,136
14Dec 31, 2022 16:535,21570,329,38541,269,0002,013,0002,523,136
15Dec 31, 2022 16:535,21672,167,15740,274,0003,020,0002,441,216