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 listJun 6, 2021 11:13Andrey TsvetkovAndrey TsvetkovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2021 21:0300000no run stats recorded
2May 9, 2021 21:2400000no run stats recorded
3May 9, 2021 21:2400000no run stats recorded
4May 9, 2021 21:0800000no run stats recorded
5May 9, 2021 21:0700000no run stats recorded
6May 9, 2021 21:0700000no run stats recorded
7May 9, 2021 21:0600000no run stats recorded
8May 9, 2021 21:0600000no run stats recorded
9May 9, 2021 21:0400000no run stats recorded
10May 9, 2021 21:0400000no run stats recorded
11Jun 14, 2021 20:1650,353483,512,240417,928,28602,211,840
12Jul 18, 2021 22:4550,437471,554,698418,624,89802,203,648
13Jun 14, 2021 20:1650,580479,468,274419,818,12602,211,840
14Jul 18, 2021 22:4550,602478,483,748419,997,27202,215,936
15Jun 14, 2021 20:1650,755493,770,908421,269,70402,220,032
16Jun 6, 2021 11:1350,855480,929,546422,097,30502,207,744
17Jun 6, 2021 11:1350,858476,067,241422,123,73002,215,936
18Jul 18, 2021 22:4550,884481,220,354422,333,87202,215,936
19Jun 6, 2021 11:1350,888498,493,659422,371,80302,220,032