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 listApr 29, 2024 18:42Steve HanSteve HanScore: 16,053Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2024 19:1015,978200,378,297132,620,45902,285,568
2Apr 29, 2024 18:4216,006197,831,637132,852,62802,269,184
3Apr 29, 2024 18:4316,020211,284,759132,965,91502,281,472
4Apr 29, 2024 18:4316,024190,633,261132,996,81102,285,568
5Apr 29, 2024 19:1016,030189,482,167133,045,46702,277,376
6Apr 29, 2024 19:1116,037199,572,420133,107,49202,277,376
7Apr 29, 2024 19:1116,043190,561,190133,158,14502,285,568
8Apr 29, 2024 19:1016,053197,950,310133,236,24802,404,352
9Apr 29, 2024 18:4216,055193,773,153133,254,22502,293,760
10Apr 29, 2024 19:1016,064194,637,066133,327,57402,289,664
11Apr 29, 2024 19:1016,068192,956,686133,366,91802,281,472
12Apr 29, 2024 18:4316,085204,396,030133,504,03702,285,568
13Apr 29, 2024 19:1016,105190,937,014133,668,15802,281,472
14Apr 29, 2024 19:1116,118191,884,052133,778,19102,289,664
15Apr 29, 2024 18:4216,133185,577,351133,906,99102,252,800