This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let input = readLine()!.split(separator: " ").map { Int($0)! } | |
let n = input[0], m = input[1], k = input[2] | |
// 더해줄 양분의 값들 | |
var addFoodValues: [[Int]] = [] | |
// 가장 처음의 양분 | |
var food = [[Int]](repeating: [Int](repeating: 5, count: n), count: n) | |
// 위치 (n * n)과 나무들를 갖고있는 3차원 배열 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(""" | |
,r'\"7 | |
r`-_ ,' ,/ | |
\\. ". L_r' | |
`~\\/ | |
| | |
| | |
""") |