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
- ๋ถํ ์ ๋ณต
- GC
- g1gc
- ๋ฐฑ์ค
- ์ ์๋ก
- ์ ์ ์ค๋ ๋
- Markdown
- ๋ชฌํฐํ
- ํ๊ณ
- ๋น๋ํจํด
- ํ๋ก์ธ์ค
- ๊ตฌํ
- GarbageCollector
- ๊ทธ๋ํ ํ์
- Stack
- BFS
- ๊ทธ๋ฆฌ๋
- ๋ธ๋ฃจํธํฌ์ค
- ๊ทธ๋ํํ์
- ์ด์งํ์
- ๋ฐฐ์ด ๋๋ฆฌ๊ธฐ1
- Greedy
- springboot
- ๋ฉด์ ๋ณต๊ธฐ
- deque
- ๋ฌธ์ ํ์ด
- Python
- github
- 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