# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
391327 | Mlxa | Navigation 2 (JOI21_navigation2) | C++17 | 1052 ms | 824 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;
bool bit[8];
void smth(int i, int j) {
int msk = 0;
for (int i = 0; i < 8; ++i) {
if (bit[i]) {
msk |= (1 << i);
}
}
SetFlag(i, j, msk + 1);
}
void Anna(int n, int k, vector<int> r, vector<int> c) {
for (int i = 0; i < n; ++i) {
for (int j = 0; j < n; ++j) {
bit[7] = (i + j) % 2;
for (int t = 0; t < 7; ++t) {
int x = r[t], y = c[t];
bool eq = (i / 2 + j / 2) % 2;
if (bit[7]) {
bit[t] = i < x || (i == x && eq);
} else {
bit[t] = j < y || (j == y && eq);
}
}
smth(i, j);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |