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:03Hal FHal FScore: 10,303Success
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:0310,081112,263,36782,665,0001,008,0002,498,560
2Jan 1, 2023 16:0310,100110,777,14980,835,0002,993,0002,285,568
3Jan 1, 2023 16:0310,147105,863,72782,211,0002,005,0002,441,216
4Jan 1, 2023 16:0310,157106,533,13881,289,0003,010,0002,330,624
5Jan 1, 2023 16:0310,200111,456,44083,651,0001,007,0002,334,720
6Jan 1, 2023 16:0310,217112,791,49882,803,0001,995,0002,330,624
7Jan 1, 2023 16:0310,273108,267,18483,259,0002,006,0002,441,216
8Jan 1, 2023 16:0310,303109,488,82083,503,0002,012,0002,416,640
9Jan 1, 2023 16:0310,304113,707,20785,527,00002,486,272
10Jan 1, 2023 16:0310,317116,607,28082,607,0003,022,0002,338,816
11Jan 1, 2023 16:0310,335112,616,24483,788,0001,994,0002,486,272
12Jan 1, 2023 16:0310,363110,357,90584,016,0002,000,0002,285,568
13Jan 1, 2023 16:0310,458152,460,99586,803,70002,199,552
14Jan 1, 2023 16:0310,554161,394,00087,596,81502,191,360
15Jan 1, 2023 16:0310,589151,382,77187,886,04302,191,360