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 listJan 1, 2023 17:49Jack FrigaardJack FrigaardScore: 4,953Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2023 17:494,772120,052,92239,608,57702,195,456
2Jan 1, 2023 17:494,786109,915,04639,723,01702,195,456
3Jan 1, 2023 17:494,795101,759,43239,799,36502,199,552
4Jan 1, 2023 17:494,94464,637,47738,030,0003,002,0002,523,136
5Jan 1, 2023 17:494,94564,109,21538,044,0003,003,0002,297,856
6Jan 1, 2023 17:494,94765,516,41238,057,0003,004,0002,457,600
7Jan 1, 2023 17:494,94967,413,72939,073,0002,003,0002,514,944
8Jan 1, 2023 17:494,95373,261,87738,104,0003,008,0002,523,136
9Jan 1, 2023 17:494,95564,244,81738,114,0003,009,0002,461,696
10Jan 1, 2023 17:494,95865,555,85138,140,0003,011,0002,523,136
11Jan 1, 2023 17:494,96065,401,20738,152,0003,012,0002,523,136
12Jan 1, 2023 17:494,99466,416,91839,431,0002,022,0002,457,600
13Jan 1, 2023 17:494,99667,701,67739,448,0002,022,0002,457,600
14Jan 1, 2023 17:494,99964,800,15938,459,0003,036,0002,523,136
15Jan 1, 2023 17:495,05270,532,31939,932,0001,996,0002,457,600