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 25, 2024 07:03Javid izadiJavid izadiScore: 79,224Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2024 07:0378,705681,013,717479,448,000173,800,0002,527,232
2Dec 25, 2024 07:0578,847680,301,058479,585,000174,848,0002,510,848
3Dec 25, 2024 07:0578,855679,576,667479,633,000174,866,0002,510,848
4Dec 25, 2024 07:0578,907688,477,629481,944,000172,980,0002,289,664
5Dec 25, 2024 07:0378,915685,366,936479,996,000174,998,0002,420,736
6Dec 25, 2024 07:0378,951678,097,465481,483,000173,813,0002,297,856
7Dec 25, 2024 07:0578,958679,598,942480,525,000174,827,0002,285,568
8Dec 25, 2024 07:0579,042693,315,522481,037,000175,013,0002,269,184
9Dec 25, 2024 07:0379,193680,736,012482,489,000174,815,0002,416,640
10Dec 25, 2024 07:0579,224680,852,030479,679,000177,881,0002,306,048
11Dec 25, 2024 07:0379,228680,942,312479,701,000177,889,0002,342,912
12Dec 25, 2024 07:0379,257680,334,704481,879,000175,956,0002,285,568
13Dec 25, 2024 07:0379,314682,169,143479,496,000178,812,0002,297,856
14Dec 25, 2024 07:0579,356682,786,870480,749,000177,907,0002,469,888
15Dec 25, 2024 07:0379,430682,426,748480,469,000178,802,0002,416,640
16Dec 25, 2024 07:0379,441683,237,940480,532,000178,825,0002,285,568
17Dec 25, 2024 07:0579,451682,436,417477,600,000181,847,0002,293,760
18Dec 25, 2024 07:0579,602687,063,447480,778,000179,917,0002,301,952