728x90 ๋ฐ์ํ 134141 [python ๋ฐฑ์ค] ์ค๋ฒ3/๋ฐฑ์ค 13414๋ฒ ์๊ฐ์ ์ฒญ https://www.acmicpc.net/problem/13414 13414๋ฒ: ์๊ฐ์ ์ฒญ ์ ๋ ฅ ๋ฐ์ดํฐ๋ ํ์ค ์ ๋ ฅ์ ์ฌ์ฉํ๋ค. ์ ๋ ฅ์ 1๊ฐ์ ํ ์คํธ ๋ฐ์ดํฐ๋ก ๊ตฌ์ฑ๋๋ค. ์ ๋ ฅ์ ์ฒซ ๋ฒ์งธ ์ค์๋ ๊ณผ๋ชฉ์ ์๊ฐ ๊ฐ๋ฅ ์ธ์ K(1 ≤ K ≤ 100,000)์ ํ์๋ค์ด ๋ฒํผ์ ํด๋ฆญํ ์์๋ฅผ ๊ธฐ๋กํ ๋๊ธฐ๋ชฉ www.acmicpc.net 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import sys input=sys.stdin.readline k,l=map(int,input().rstrip().split()) d=dict() d2=dict() lst=[] for i in range(l): x = input().rstrip() # ํ๋ฒ์ ๋ฌธ์์ด๋ก d[l-i]=x #ํ.. 2021. 6. 20. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ