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 listOct 1, 2022 15:22Sergey SlotinSergey SlotinScore: 19,573Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 11, 2023 03:5819,517191,232,447158,989,0002,999,0002,256,896
2Jul 11, 2023 03:5819,525187,283,827160,059,0002,000,0002,359,296
3Jul 11, 2023 03:5819,528187,864,972159,081,0003,001,0002,256,896
4Oct 1, 2022 15:2219,531187,807,438159,104,0003,001,0002,260,992
5Jul 11, 2023 03:5819,533190,926,193161,125,0001,000,0002,256,896
6Oct 1, 2022 15:2219,540191,175,120160,180,0002,002,0002,363,392
7Oct 1, 2022 15:2219,542188,377,208156,190,0006,007,0002,519,040
8Oct 1, 2022 15:2219,549190,406,549160,255,0002,003,0002,519,040
9Jul 11, 2023 03:5819,557189,366,100160,329,0001,991,0002,256,896
10Oct 1, 2022 15:2219,563188,597,082160,370,0002,004,0002,363,392
11Jul 11, 2023 03:5819,564186,849,849159,376,0003,007,0002,519,040
12Jul 11, 2023 03:5819,568187,675,816161,416,0001,002,0002,351,104
13Oct 1, 2022 15:2219,573181,869,193158,448,0004,011,0002,519,040
14Oct 1, 2022 15:2219,573187,310,584159,450,0003,008,0002,351,104
15Jul 11, 2023 03:5819,576192,044,856160,472,0002,005,0002,256,896
16Jul 11, 2023 03:5819,616190,520,329161,811,000998,0002,519,040
17Oct 1, 2022 15:2219,622185,672,997160,868,0001,998,0002,519,040
18Oct 1, 2022 15:2220,030190,597,924165,249,0001,001,0002,519,040
19Oct 1, 2022 15:2222,451236,119,929186,344,90402,265,088
20Jul 11, 2023 03:5822,464257,403,424186,448,86202,277,376
21Jul 11, 2023 03:5822,466254,531,227186,469,49702,277,376
22Oct 1, 2022 15:2222,472255,163,546186,520,74802,220,032
23Oct 1, 2022 15:2222,473255,925,928186,524,72002,265,088
24Jul 11, 2023 03:5822,509259,333,729186,828,54502,260,992