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 listMay 27, 2024 14:02GraceGraceError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 27, 2024 14:0300000Error: expected "53683059084628027 ", got "53683059078074427 "
2May 27, 2024 14:027,57290,198,22360,853,0001,995,0002,285,568
3May 27, 2024 14:027,57294,348,87760,856,0001,995,0002,273,280
4May 27, 2024 14:027,59686,818,87662,045,0001,000,0002,277,376
5May 27, 2024 14:027,59788,077,01262,052,0001,000,0002,285,568
6May 27, 2024 14:027,60085,772,36362,076,0001,001,0002,285,568
7May 27, 2024 14:027,60292,149,83762,096,0001,001,0002,285,568
8May 27, 2024 14:027,60382,909,05161,103,0002,003,0002,285,568
9May 27, 2024 14:027,60984,679,19262,155,0001,002,0002,371,584
10May 27, 2024 14:027,61391,953,70861,186,0002,006,0002,285,568
11May 27, 2024 14:027,61585,977,91962,199,0001,003,0002,273,280
12May 27, 2024 14:027,62088,705,53361,241,0002,007,0002,379,776
13May 27, 2024 14:027,65493,123,82963,525,00002,285,568
14May 27, 2024 14:027,913120,698,46065,673,87602,289,664
15May 27, 2024 14:027,950128,183,55965,982,14702,293,760
16May 27, 2024 14:028,052139,669,70866,834,77002,285,568