Notice
Recent Posts
Recent Comments
Link
| ์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- GarbageCollector
- ๋ฌธ์ ํ์ด
- ๋ฉด์ ๋ณต๊ธฐ
- ๊ทธ๋ฆฌ๋
- BFS
- Markdown
- Python
- ๊ทธ๋ํํ์
- ๊ทธ๋ํ ํ์
- ์ด์งํ์
- springboot
- Greedy
- github
- deque
- g1gc
- ์ ์๋ก
- ๋ฐฑ์ค
- ํ๋ก์ธ์ค
- Stack
- GC
- ๋น๋ํจํด
- ๋ฐฐ์ด ๋๋ฆฌ๊ธฐ1
- ์ ์ ์ค๋ ๋
- ํ๊ณ
- ๋ชฌํฐํ
- ๊ตฌํ
- ๋งํฌ๋ค์ด
- ๋ถํ ์ ๋ณต
- DP
- ๋ธ๋ฃจํธํฌ์ค
Archives
- Today
- Total
FeelingXD
[๋ฐฑ์ค -11005] ์ง๋ฒ ๋ณํ 2 ๋ณธ๋ฌธ
โ Problem

๐ค How
๊ฐ๋จํ๊ณ ์ง๊ด์ ์ธ ์ง๋ฒ๋ณํ๋ฌธ์ ์ด๋ค. ๐
- ์ ๋ ฅ๊ฐ ๋๊ฐ๋ฅผ ํ์ค๋ก ์ ๋ ฅ๋ฐ๋๋ค. (๋ณํํ ์, ๋ณํํ ์ง๋ฒ)
- ๋ณํ๋ ์ง๋ฒ์ ๊ฐ์ ์ถ๋ ฅํ๋ค.
โ Solve
# ์ง๋ฒ ๋ณํ 2
import sys
input = sys.stdin.readline
def change_formation(n:int,formation:int):
tmp=''
while n:
current_value =n%formation
if 10<=current_value:
tmp+=chr(current_value+55)
else:
tmp+=str(current_value)
n//=formation
return tmp[::-1]
def solution():
res=change_formation(*map(int,input().split()))
print(res)
pass
if __name__ == "__main__": # ์คํ๋๋ ๋ถ๋ถ
solution()
pass