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 4, 2024 05:52GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 4, 2024 05:5200000Error: expected "53687563753131428 ", got "53687600935785196 "
2Jun 4, 2024 05:5200000Error: expected "53686512425465506 ", got "53686512425209506 "
3Jun 4, 2024 05:525,04172,308,01939,848,0001,992,0002,396,160
4Jun 4, 2024 05:525,04365,519,72441,859,00002,273,280
5Jun 4, 2024 05:525,04573,197,21440,874,000996,0002,273,280
6Jun 4, 2024 05:525,04966,879,41039,912,0001,995,0002,273,280
7Jun 4, 2024 05:525,05268,992,90039,935,0001,996,0002,404,352
8Jun 4, 2024 05:525,05665,949,09639,967,0001,998,0002,392,064
9Jun 4, 2024 05:525,05866,065,94639,983,0001,999,0002,273,280
10Jun 4, 2024 05:525,06064,233,13039,996,0001,999,0002,412,544
11Jun 4, 2024 05:525,06172,988,36440,006,0002,000,0002,404,352
12Jun 4, 2024 05:525,249124,716,30743,570,02702,277,376
13Jun 4, 2024 05:525,252108,054,82743,589,49602,289,664
14Jun 4, 2024 05:525,256103,873,81043,621,88002,285,568
15Jun 4, 2024 05:525,261108,496,13243,664,64102,289,664
16Jun 4, 2024 05:525,291114,192,71843,911,83602,289,664
17Jun 4, 2024 05:525,305105,451,62144,031,62402,285,568
18Jun 4, 2024 05:525,88577,628,73846,852,0001,993,0002,273,280
19Jun 4, 2024 05:525,90775,682,69547,030,0002,001,0002,273,280
20Jun 4, 2024 05:525,98373,034,41648,646,0001,013,0002,396,160