← 返回 atlassian 的题目列表Find Songs Pair with Total Duration
类型:online_judge
atlassian
Given a list of songs where each song is represented by its name and duration, find a pair of songs whose total duration is exactly 7 minutes. Assume durations are given in 'm:ss' format and return the names of the songs that match the criteria. If no such pair exists, return an empty list. Example Input: [("A", "3:44"), ("B", "5:00"), ("C", "3:16")]
Example
Input
[('A', '3:44'), ('B', '5:00'), ('C', '3:16')]