← 返回 amazon 的题目列表Log Processing to Detect Anomalies
类型:online_judge
Given a log array containing userID, timestamp, and event, find users that triggered a particular event more than k times in the past 24 hours.
Example
Input
5
user1 2023-10-01 14:00:00 login
user2 2023-10-01 15:00:00 login
user3 2023-10-01 16:00:00 login
user1 2023-10-01 17:00:00 login
user1 2023-10-01 18:00:00 login
login 2