#include <bits/stdc++.h>
using namespace std;
namespace lzyqwq {
const int N = 1005; int n, m, k, x = 1, y = 1; bool op[N][N];
int dx[] = {-1, 0, 1, 0}, dy[] = {0, 1, 0, -1}, st = 0;
void Main() {
cin.tie(0), cout.tie(0), ios::sync_with_stdio(0); cin >> n >> m >> k;
while (k--) {
if (op[x][y]) {
op[x][y] = 0; st = (st + 3) % 4;
} else op[x][y] = 1, st = (st + 1) % 4;
x += dx[st], y += dy[st];
if (x > n) x = 1; if (y > m) y = 1;
if (x < 1) x = n; if (y < 1) y = m;
}
for (int i = 1; i <= n; ++i) {
for (int j = 1; j <= m; ++j)
if (op[i][j]) cout << '#'; else cout << '.';
cout << '\n';
}
}
}
signed main() { return lzyqwq::Main(), 0; }
Main.cpp: In function ‘void lzyqwq::Main()’:
Main.cpp:13:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
13 | if (x > n) x = 1; if (y > m) y = 1;
| ^~
Main.cpp:13:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
13 | if (x > n) x = 1; if (y > m) y = 1;
| ^~
Main.cpp:14:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
14 | if (x < 1) x = n; if (y < 1) y = m;
| ^~
Main.cpp:14:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
14 | if (x < 1) x = n; if (y < 1) y = m;
| ^~