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 16:56Jack FrigaardJack FrigaardScore: 5,042Success
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 16:565,02170,754,43139,640,0002,032,0002,461,696
2Jan 1, 2023 16:565,029111,777,52541,740,79802,203,648
3Jan 1, 2023 16:565,032112,454,51641,764,49102,199,552
4Jan 1, 2023 16:565,03670,214,17739,810,0001,990,0002,453,504
5Jan 1, 2023 16:565,03869,822,45338,829,0002,986,0002,301,952
6Jan 1, 2023 16:565,04179,885,89639,847,0001,992,0002,523,136
7Jan 1, 2023 16:565,04172,402,73138,855,0002,988,0002,453,504
8Jan 1, 2023 16:565,04269,809,95438,861,0002,989,0002,445,312
9Jan 1, 2023 16:565,045130,160,95241,875,35902,207,744
10Jan 1, 2023 16:565,07969,638,72139,148,0003,011,0002,465,792
11Jan 1, 2023 16:565,08767,110,09839,205,0003,015,0002,523,136
12Jan 1, 2023 16:565,09564,079,57639,267,0003,020,0002,514,944
13Jan 1, 2023 16:565,09770,659,80739,280,0003,021,0002,453,504
14Jan 1, 2023 16:565,16168,899,24740,847,0001,992,0002,441,216
15Jan 1, 2023 16:565,18774,524,86140,048,0003,003,0002,449,408