cswork / OA打开练习工作台

VisaOA #9

Banking System (Levels 1–4)

估计困难评测数据准备中,可先阅读题面

考点(AI 标注)迭代器设计哈希计数二分查找

同类可判练习:银行账本(四关递进)

Design a banking system that supports the operations: create_account, deposit, pay, top_activity (top-N accounts by outgoing volume), transfer (initiated; recipient must accept within 24h), accept_transfer, merge_accounts, and get_balance(time_at) (balance at a historical timestamp). Methods are called with monotonic timestamps.

Example: deposit, then pay, then get_balance at the deposit timestamp returns the post-deposit balance, while at a later timestamp returns the post-pay balance.