← 返回 reddit 的题目列表Bill Status
类型:online_judge
You need to implement a bill status tracking system. The system should handle the following functionalities:
Add a new bill with a bill amount and a due date.
Update the payment status for a bill.
Query all unpaid bills and sort them by due date.
The bill information can be stored in-memory, and the system should consider handling a high-concurrency environment. Provide a complete code implementation and design test cases to verify correctness.