Python 2

โน๏ธ[SW Expert Academy] [Python] [D3] [1244] ์ตœ๋Œ€ ์ƒ๊ธˆ

๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=3&problemLevel=4&problemLevel=5&contestProbId=AV15Khn6AN0CFAYD&categoryId=AV15Khn6AN0CFAYD&categoryType=CODE&problemTitle=&orderBy=INQUERY_COUNT&selectCodeLang=ALL&select-1=5&pageSize=10&pageIndex=1 SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ํ’€์ด ์ด ๋ฌธ์ œ๋Š” ๋ฐฑํŠธ๋ž˜ํ‚น ๋ฌธ์ œ์ด๋‹ค. ์™„์ „ํƒ์ƒ‰์œผ๋กœ ํ’€๊ฒŒ๋˜๋ฉด ์‹œ๊ฐ„์ดˆ๊ณผ๊ฐ€ ๋ฐœ์ƒ..

โน๏ธ [SW Expert Academy] [Python] [D3] 1206. View

๋ฌธ์ œ https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV134DPqAA8CFAYh SW Expert Academy SW ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์—ญ๋Ÿ‰ ๊ฐ•ํ™”์— ๋„์›€์ด ๋˜๋Š” ๋‹ค์–‘ํ•œ ํ•™์Šต ์ปจํ…์ธ ๋ฅผ ํ™•์ธํ•˜์„ธ์š”! swexpertacademy.com ํ’€์ด SWEA์˜ D3 ๋ฌธ์ œ์ด๋‹ค. ๋ฌธ์ œ๋ฅผ ์ œ๋Œ€๋กœ ์ฝ์ง€ ์•Š์•„์„œ ์™ผ์ชฝ 2์นธ๊ณผ ์˜ค๋ฅธ์ชฝ ๋‘์นธ์€ ๋†’์ด๊ฐ€ 0์ธ ๊ฒƒ์„ ๊ฐ„๊ณผํ•˜์˜€๋‹ค. ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๊ธฐ ์œ„ํ•ด ๋ฌด์กฐ๊ฑด ๋ชจ๋“  ์กฐ๊ฑด์„ ์ •ํ™•ํžˆ ์ฝ๊ณ  ํ•ด๊ฒฐํ•ด์•ผ๊ฒ ๋‹ค. ์™ผ์ชฝ๊ณผ ์˜ค๋ฅธ์ชฝ ๋์˜ ๋†’์ด๊ฐ€ 0์ด๋ฏ€๋กœ ๋ฌธ์ œ์˜ ๋‚œ์ด๋„๊ฐ€ ํ™• ๋‚ฎ์•„์ง„๋‹ค. ๋‹จ์ˆœํžˆ ์ž์‹ ์˜ ์œ„์น˜์—์„œ ์™ผ์ชฝ๊ณผ ์˜ค๋ฅธ์ชฝ 2์นธ ์•ˆ์— ์žˆ๋Š” ๋ชจ๋“  ์นธ ์ค‘์— ๊ฐ€์žฅ ๋†’์€ ์นธ์˜ ๊ฐ’์„ ๋นผ๋ฉด ์กฐ๋ง๊ถŒ์˜ ์„ธ๋Œ€ ์ˆ˜๊ฐ€ ๋‚˜์˜ค๊ฒŒ ๋œ๋‹ค. T = int(i..