# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
471598 | flappybird | Navigation 2 (JOI21_navigation2) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "Anna.h"
#include <bits/stdc++.h>
typedef int ll;
using namespace std;
namespace {
} // namespace
void Anna(int N, int K, std::vector<int> R, std::vector<int> C) {
ll i, j, k;
for (i = 0; i < N; i++) {
for (j = 0; j < N; j++) {
ll val = 0;
for (k = 0; k < K; k++) {
if (R[k] <= i && C[k] <= j) val |= (1 << k);
}
SetFlag(i, j, val + 1);
}
}
}
#include "Anna.h"
#include <bits/stdc++.h>
typedef int ll;
using namespace std;
namespace {
} // namespace
void Anna(int N, int K, std::vector<int> R, std::vector<int> C) {
ll i, j, k;
for (i = 0; i < N; i++) {
for (j = 0; j < N; j++) {
ll val = 0;
for (k = 0; k < K; k++) {
if (R[k] <= i && C[k] <= j) val |= (1 << k);
}
SetFlag(i, j, val + 1);
}
}
}