← 返回 snapchat 的题目列表Ad Click Tracking and Real-Time Trending Ads System
类型:online_judge
snapchat
Design an advertisement association system. Users will click on ad links in a shopping environment. The system needs to associate ad ID with user ID and count the occurrences. Additionally, implement a feature to generate real-time trending ads.
Example
Input
ad1 user1\nad1 user2\nad2 user1\n