← 返回 atlassian 的题目列表Call Operator Scoring System
类型:online_judge
Design a scoring system for call operators. Implement two methods: write and get. The write method updates the score of a specific agent, and the get method returns the names of the top K agents with the highest scores. Consider whether the system is read-heavy or write-heavy and optimize accordingly. Provide reasonable test cases.
Example
Input
write(John, 90)
write(Mary, 95)
get(2)