Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- count = int(input())
- m = {}
- for i in range(count):
- s =list(map(int, input().split()))
- a=0
- while(m.get(s[0]*60*60+s[1]*60+s[2]+a)):
- a= a+0.001
- m.update([[s[0]*60*60+s[1]*60+s[2]+a,s]])
- m2 = {}
- mt = sorted(m,key=m.get)
- for i in mt:
- m2[i]=m[i]
- for i in m2:
- s = m2[i]
- print(s[0],s[1],s[2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement