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 25, 2024 02:45Steve HanSteve HanScore: 70,265Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2024 02:4568,581635,611,899569,221,85702,293,760
2Apr 25, 2024 02:4168,656644,116,350569,842,14802,289,664
3Apr 25, 2024 02:3868,693637,715,623570,150,36502,277,376
4Apr 25, 2024 02:3868,724622,438,240570,405,19002,281,472
5Apr 25, 2024 02:4169,513643,981,171576,954,67602,293,760
6Apr 25, 2024 02:4570,119647,673,000581,985,35802,297,856
7Apr 25, 2024 02:4170,158642,693,397582,313,58102,281,472
8Apr 25, 2024 02:3870,265647,681,369583,196,88402,297,856
9Apr 25, 2024 02:4570,283651,442,495583,351,77302,170,880
10Apr 25, 2024 02:4474,380676,620,171617,357,94302,289,664
11Apr 25, 2024 02:4574,474680,850,619618,135,99502,170,880
12Apr 25, 2024 02:4474,483677,310,748618,204,89502,297,856
13Apr 25, 2024 02:4576,053696,084,467631,240,77302,289,664
14Apr 25, 2024 02:4576,145693,496,805632,006,02702,285,568
15Apr 25, 2024 02:4476,235695,926,501632,752,20202,277,376