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 11, 2024 01:02Joad NacerJoad NacerScore: 5,454Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2024 01:035,44368,398,84942,163,0003,011,0002,334,720
2Oct 11, 2024 01:025,44666,396,39642,191,0003,013,0002,342,912
3Oct 11, 2024 01:025,44673,155,55943,192,0002,008,0002,506,752
4Oct 11, 2024 01:025,44866,747,89243,209,0002,009,0002,510,848
5Oct 11, 2024 01:025,44870,308,53942,206,0003,014,0002,510,848
6Oct 11, 2024 01:025,44869,681,01443,213,0002,009,0002,510,848
7Oct 11, 2024 01:025,45066,632,04142,216,0003,015,0002,334,720
8Oct 11, 2024 01:035,45070,317,98942,219,0003,015,0002,510,848
9Oct 11, 2024 01:025,45172,363,79742,231,0003,016,0002,334,720
10Oct 11, 2024 01:035,45472,989,93442,252,0003,018,0002,506,752
11Oct 11, 2024 01:025,45769,795,44043,278,0002,012,0002,334,720
12Oct 11, 2024 01:025,46467,985,28743,335,0002,015,0002,502,656
13Oct 11, 2024 01:025,55664,743,44444,111,0002,005,0002,498,560
14Oct 11, 2024 01:035,56567,463,60743,176,0003,012,0002,506,752
15Oct 11, 2024 01:035,56669,809,50943,184,0003,012,0002,330,624
16Oct 11, 2024 01:035,56866,030,25644,208,0002,009,0002,330,624
17Oct 11, 2024 01:025,57368,355,88943,240,0003,016,0002,330,624
18Oct 11, 2024 01:025,57970,307,31844,296,0002,013,0002,330,624