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 7, 2024 15:45GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2024 15:4500000Error: expected "53679977548010017 ", got "53679934598337057 "stderr
2Jun 7, 2024 15:4738,748385,114,465321,611,85002,244,608
3Jun 7, 2024 15:4739,029393,626,132323,938,66002,248,704
4Jun 7, 2024 15:4739,045381,349,596324,071,06202,240,512
5Jun 7, 2024 15:4739,101386,571,766324,542,07602,248,704
6Jun 7, 2024 15:4739,264390,298,752325,892,06502,240,512
7Jun 7, 2024 15:4539,308395,662,265326,257,10102,244,608
8Jun 7, 2024 15:4539,355391,142,558326,648,01702,244,608
9Jun 7, 2024 15:4739,394410,766,637326,970,96602,240,512
10Jun 7, 2024 15:4539,500396,300,091327,853,54202,228,224
11Jun 7, 2024 15:4739,607386,825,616328,735,64802,244,608
12Jun 7, 2024 15:4539,739391,165,717329,837,42802,240,512
13Jun 7, 2024 15:4739,777382,647,122330,148,30502,371,584
14Jun 7, 2024 15:4739,865400,568,478330,883,46802,248,704
15Jun 7, 2024 15:4739,907391,176,225331,227,59502,367,488
16Jun 7, 2024 15:4739,933394,307,107331,445,85902,244,608
17Jun 7, 2024 15:4540,254396,068,196334,108,94102,244,608
18Jun 7, 2024 15:4541,073400,893,576340,906,71302,371,584
19Jun 7, 2024 15:4541,609406,005,932345,355,46302,236,416
20Jun 7, 2024 15:4542,219410,907,319350,420,51302,367,488
21Jun 7, 2024 15:4542,362414,802,118351,602,51902,236,416
22Jun 7, 2024 15:4742,667412,654,665354,135,65102,252,800