๐ฅ Silver5https://www.acmicpc.net/problem/1251 import sysfrom itertools import combinationsinput = sys.stdin.readlineword = list(input().strip())word_length = len(word)result = set()for i in range(1, word_length - 1): for j in range(i+1, word_length): first = word[:i] sec = word[i:j] thrid = word[j:] # reverse first.reverse() sec.reverse() thr..
๐ฅ Bronze3https://www.acmicpc.net/problem/2061 โ 1์ฐจ ํ์ดimport mathimport sysfrom itertools import permutations# ๋ ์์ ๊ตฌํ๊ธฐ# ๋ ์์๊ฐ l ์ด์์ธ์ง ํ์ธ# O - good# X - ๋ ์์ ์์ ์ถ๋ ฅinput = sys.stdin.readlinek, l = map(int, input().rstrip().split())for divisor in range(l,k): # ๋ ์์ ์ฐพ๊ธฐ if k%divisor==0: num2=k//divisor num1=divisor if num2์ฒ์์ ์๊ฐํ๋ ๋ฐฉ์์ ์ฃผ์ด์ง k=143๋ฅผ ์์ธ์๋ถํด ํ์๋ ์ถ์ถ๋๋ ๋ ๊ฐ์ด ๋ชจ๋ l์ด์์ด..
๐ฅ 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..