아스키코드
-
[백준 11654] [Kotlin] 아스키 코드백준 알고리즘 2021. 7. 15. 15:56
import java.io.* fun main() { val br = BufferedReader(InputStreamReader(System.`in`)) val n = br.readLine() println(n[0].toInt()) br.close() } 메모리 시간 언어 코드 길이 11900 KB 88 ms Kotlin (JVM) 167 B Main.kt:8:18: warning: 'toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead. println(n[0].toInt()) ^ import java.io.* fun main() { val br = BufferedReade..