题解 | #进制转换#
进制转换
https://www.nowcoder.com/practice/8f3df50d2b9043208c5eed283d1d4da6
import Foundation
while let line = readLine() {
let line1 = String(line.dropFirst(2))
let int = Int(line1, radix: 16)!
print(int)
}
进制转换
https://www.nowcoder.com/practice/8f3df50d2b9043208c5eed283d1d4da6
import Foundation
while let line = readLine() {
let line1 = String(line.dropFirst(2))
let int = Int(line1, radix: 16)!
print(int)
}
相关推荐