# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
508677 | 2022-01-13T14:23:43 Z | rainboy | None (JOI12_rotate) | C | 2000 ms | 6080 KB |
#include <stdio.h> #define N 2000 int main() { static char cc[N][N + 1], cc_[N][N + 1]; int n, q, i, j, i_, j_; scanf("%d%d", &n, &q); for (i = 0; i < n; i++) scanf("%s", cc[i]); while (q--) { int l; scanf("%d%d%d", &i, &j, &l), i--, j--; for (i_ = 0; i_ < l; i_++) for (j_ = 0; j_ < l; j_++) cc_[i + l - 1 - j_][j + i_] = cc[i + i_][j + j_]; for (i_ = 0; i_ < l; i_++) for (j_ = 0; j_ < l; j_++) cc[i + i_][j + j_] = cc_[i + i_][j + j_]; } for (i = 0; i < n; i++) printf("%s\n", cc[i]); return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 676 KB | Output is correct |
2 | Correct | 2 ms | 588 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1275 ms | 6068 KB | Output is correct |
2 | Correct | 0 ms | 280 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1296 ms | 6068 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1420 ms | 6072 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1515 ms | 6072 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1644 ms | 6072 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1676 ms | 6080 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1791 ms | 6076 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1892 ms | 6076 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 2055 ms | 5076 KB | Time limit exceeded |