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:40Jack FrigaardJack FrigaardScore: 4,944Success
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:404,770105,953,61839,593,55002,195,456
2Jan 1, 2023 17:404,777111,154,74339,645,06102,207,744
3Jan 1, 2023 17:404,788107,031,07139,738,24102,203,648
4Jan 1, 2023 17:404,93770,193,02439,981,000999,0002,519,040
5Jan 1, 2023 17:404,93965,081,25538,994,0001,999,0002,523,136
6Jan 1, 2023 17:404,94064,450,08338,999,0001,999,0002,465,792
7Jan 1, 2023 17:404,94263,292,97139,020,0002,001,0002,453,504
8Jan 1, 2023 17:404,94463,234,09139,034,0002,001,0002,523,136
9Jan 1, 2023 17:404,94963,606,66238,070,0003,005,0002,523,136
10Jan 1, 2023 17:404,95368,643,67140,105,0001,002,0002,523,136
11Jan 1, 2023 17:404,95369,400,15238,104,0003,008,0002,449,408
12Jan 1, 2023 17:404,99170,337,87039,403,0002,020,0002,523,136
13Jan 1, 2023 17:404,99165,058,97740,418,0001,010,0002,457,600
14Jan 1, 2023 17:404,99363,765,17439,418,0002,021,0002,457,600
15Jan 1, 2023 17:405,03870,543,69239,828,0001,991,0002,519,040