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 3, 2024 04:56GraceGraceScore: 5,220Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 3, 2024 04:565,19664,471,03942,122,0001,002,0002,273,280
2Jun 3, 2024 04:565,20371,191,64541,181,0002,008,0002,400,256
3Jun 3, 2024 04:565,20366,541,32442,184,0001,004,0002,273,280
4Jun 3, 2024 04:565,20669,665,58842,209,0001,004,0002,400,256
5Jun 3, 2024 04:565,20767,011,06241,206,0002,010,0002,273,280
6Jun 3, 2024 04:565,21266,043,63842,252,0001,006,0002,404,352
7Jun 3, 2024 04:565,21765,787,24642,292,0001,006,0002,273,280
8Jun 3, 2024 04:565,22063,401,41042,321,0001,007,0002,400,256
9Jun 3, 2024 04:565,24065,834,01443,490,00002,396,160
10Jun 3, 2024 04:565,417110,857,25544,963,43302,285,568
11Jun 3, 2024 04:565,422104,344,00045,005,31502,285,568
12Jun 3, 2024 04:565,423112,238,36845,014,63302,285,568
13Jun 3, 2024 04:565,426117,949,11245,039,23602,289,664
14Jun 3, 2024 04:565,434107,639,00145,103,35702,281,472
15Jun 3, 2024 04:565,437111,749,76545,124,86702,273,280