티스토리 뷰
1 2 3 4 5 6 7 | let input1 = Int(readLine()!)! let input2 = readLine()! var count = 0 for i in 0..<input1{ count += Int(input2[input2.index(input2.startIndex, offsetBy: i)].description)! } print(count) | cs |
'Algorithm > Baekjoon Online Judge' 카테고리의 다른 글
1427번 '소트인사이드' (0) | 2018.02.23 |
---|---|
11721번 '열 개씩 끊어 출력하기' (0) | 2018.02.23 |
11719번 '그대로 출력하기 2' (0) | 2018.02.23 |
11718번 '그대로 출력하기' (0) | 2018.02.23 |
11654번 '아스키 코드' (0) | 2018.02.23 |
댓글