티스토리 뷰
1 2 3 4 5 6 7 | if let input = readLine()?.split(separator: " "){ let r1 = Int((input.first?.description)!)! let s = Int((input.last?.description)!)! print(s * 2 - r1) } | cs |
'Algorithm > Baekjoon Online Judge' 카테고리의 다른 글
4673번 '셀프 넘버' (0) | 2018.02.23 |
---|---|
4344번 '평균은 넘겠지' (0) | 2018.02.23 |
2920번 '음계' (0) | 2018.02.23 |
2908번 '상수' (0) | 2018.02.23 |
2839번 '설탕 배달' (0) | 2018.02.23 |
댓글