[BaekJoon] 아스키 코드 - 11654번

2024. 10. 13. 16:51

https://www.acmicpc.net/problem/11654

import Foundation

let chars = readLine()!.map{$0}
for ch in chars {
    print(ch.asciiValue!)
}

 

 

asciiValue | Apple Developer Documentation

The ASCII encoding value of this character, if it is an ASCII character.

developer.apple.com

 

 

 

 

 

 

728x90

'Test > Coding Tests' 카테고리의 다른 글

[BaekJoon] A+B - 4  (0) 2024.10.06
[BaekJoon] A+B - 5  (0) 2024.10.06
[Programmers] 수 조작하기 1  (0) 2024.09.17
[Programmers] 원소들의 곱과 합  (0) 2024.08.11
[Programmers] 이어 붙인 수  (0) 2024.08.11

BELATED ARTICLES

more