
๐ฅ Bronze2 https://www.acmicpc.net/problem/1440 โ
์ ๋ตํ์ดimport sysfrom itertools import permutations# ๊ฐ๋ฅํ 3๊ฐ์ง ๋ชจ๋ ์กฐํฉ ์์ฑ ์์ (permutations)# 1~12์๊ฐ ์๋ H ์ ์ธinput=sys.stdin.readlinetimes=map(int,input().rstrip().split(':')) #์ ๋ถ ์ดresult=0for i,comb in enumerate(permutations(times,3)): # ์ ํจ์ฑ ๊ฒ์ฌ if comb[0]>59 or comb[1]>59 or comb[2]>59 : break print(comb) if 0์ฒ์์ ์ค๋ณต์ ๊ฒฝ์ฐ๋ฅผ ์ ์ธํ๋์ค ์์๊ธฐ์ c..