๋ธŒ๋ฃจํŠธํฌ์Šค

๐Ÿฅˆ 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..
Yuuuki
'๋ธŒ๋ฃจํŠธํฌ์Šค' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก