If this pull request (PR) is associated with coding or code transpilation, please attach the relevant console outputs to the PR and complete the following checklist:
[x] I have thoroughly reviewed the code, focusing on its formatting, comments, indentation, and file headers.
[x] I have confirmed that the code execution outputs are consistent with those produced by the reference code (Python or Java).
[x] The code is designed to be compatible on standard operating systems, including Windows, macOS, and Ubuntu.
If this pull request (PR) is associated with coding or code transpilation, please attach the relevant console outputs to the PR and complete the following checklist: