μλ¬Έμ 1κ°λ₯Ό μ
λ ₯λ°μ 10μ§μ μ λμ½λ(Unicode) κ°μΌλ‘ μΆλ ₯ν΄λ³΄μ.
μ
λ ₯
μ λμ½λ μλ¬Έμ 1κ°κ° μ
λ ₯λλ€.
μΆλ ₯
μ λμ½λ κ°μ 10μ§μλ‘ μΆλ ₯νλ€.
μ
λ ₯ μμ
A
μΆλ ₯ μμ
65
n = ord(input()) #μ
λ ₯λ°μ λ¬Έμλ₯Ό 10μ§μ μ λμ½λ κ°μΌλ‘ λ³νν ν, nμ μ μ₯νλ€.
ord( ) λ μ΄λ€ λ¬Έμμ μμ μμΉ(ordinal position) κ°μ μλ―Ένλ€.
ord(c) : λ¬Έμ c λ₯Ό 10μ§μλ‘ λ³νν κ°
Algorithm/CodeUp κΈ°μ΄