← 返回 capitalone 的题目列表Banking System with Transaction Activity
类型:online_judge
Design and implement a banking system that supports account creation, deposit, withdrawal, and transfer operations. The system should log transaction activities for each account and allow querying of the top N active accounts. Ensure good object-oriented design and error handling. The system might extend to concurrency control and data consistency.
Example
Input
create account=1
deposit account=1 amount=100
withdraw account=1 amount=50
transfer from=1 to=2 amount=25
query top_n=1