
๋์ํ์ด
์ฃผ์ฌ์ 3๊ฐ
๊ท์น(1) : ๊ฐ์ ๋3๊ฐ -> 10,000์ + (๋*1,000)
๊ท์น(2) : ๊ฐ์ ๋ 2๊ฐ -> 1,000์ + (๊ฐ์ ๋*100)
๊ท์น(3) : ๋ชจ๋ ๋ค๋ฅธ ๋ -> (๊ฐ์ฅ ํฐ๋*100)
์
๋ ฅ
N : ์ฌ๋ ์
N๊ฐ์ ์ค , ์ฃผ์ฌ์ 3๊ฐ ์
๋ ฅ (๋น์นธ ๋๊ณ )
์ถ๋ ฅ
๊ฐ์ฅ ๋ง์ ์๊ธ ๋ฐ์ ์ฌ๋์ ์๊ธ ์ถ๋ ฅ

์นด์ดํฐ ๋ฐฐ์ด ์์ฑ
์ฃผ์ฌ์์ ๋ ์ธ๋ฑ์ค์ ์นด์ดํฐ 1 ์ฆ๊ฐ
๊ฐ์๋์ด 3๊ฐ์ผ๋ ์นด์ดํฐ 3 ๊ฐ์๋์ด 3๊ฐ์ผ๋ 2๊ฐ์ผ๋ ๋ฐ๋ณตํ๊ณ
๋๋จธ์ง๋ for else ๋ฆฌํด
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
tmp = input().split()

๊ณต๋ฐฑ์ ์ฌ์ด๋ก ์ฌ๋ฌ๊ฐ ์
๋ ฅ์
๋ณ์ a ๋ list
a์ ์์๋ str

N๋ช
๋ฐ๋ณต
์ฐจ๋ก๋ก 3๊ฐ์ ๋ ์
๋ ฅ โ> tmp ์ ์ ์ฅ โ> ๋ค์ ๋ฐ๋ณต๋ฌธ ์์์์ ๊ทธ ์ ์ ๋ฐ์ดํฐ๋ ํ์์์ง
'Algorithm > ํ์ด์ฌ ์ฝ๋ฉํ ์คํธ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
ํ์&์๋ฎฌ๋ ์ด์ (string, 1์ฐจ์, 2์ฐจ์ ๋ฆฌ์คํธ ํ์ ) - 1. ํ๋ฌธ ๋ฌธ์์ด ๊ฒ์ฌ (0) | 2023.01.09 |
---|---|
์ฝ๋ ๊ตฌํ๋ ฅ ๊ธฐ๋ฅด๊ธฐ / 10. ์ ์๊ณ์ฐ (0) | 2023.01.07 |
์ฝ๋ ๊ตฌํ๋ ฅ ๊ธฐ๋ฅด๊ธฐ / 8 . ๋ค์ง์ ์์ (0) | 2023.01.06 |
์ฝ๋ ๊ตฌํ๋ ฅ ๊ธฐ๋ฅด๊ธฐ / 7. ์์(์๋ผํ ์คํ ๋ค์ค ์ฒด) (0) | 2023.01.06 |
์ฝ๋ ๊ตฌํ๋ ฅ ๊ธฐ๋ฅด๊ธฐ / 6. ์๋ฆฟ์์ ํฉ (0) | 2023.01.05 |