# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
893758 | 2023-12-27T11:07:44 Z | danikoynov | Navigation 2 (JOI21_navigation2) | C++17 | 0 ms | 332 KB |
#include "Anna.h" #include <vector> #include<bits/stdc++.h> using namespace std; namespace { int FunctionExample(int r, int c, int K) { return (r + c) % K + 1; } } // namespace const int maxn = 310; int value[maxn][maxn]; void Anna(int N, int K, std::vector<int> R, std::vector<int> C) { for (int i = 0; i < K; i ++) { for (int x = 0; x < R[i]; x ++) for (int y = 0; y < N; y ++) { value[x][y] |= (1 << i); } for (int y = C[i] - 1; y >= 0; y -= 2) { value[R[i]][y] |= (1 << i); } value[R[i]][C[i]] |= (1 << i); } for (int i = 0; i < N; i ++) for (int j = 0; j < N; j ++) SetFlag(i, j, value[i][j] + 1); /**for (int i = 0; i < N; i ++, cout << endl) for (int j = 0; j < N; j ++) cout << value[i][j] << " "; cout << endl;*/ }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 332 KB | Wrong Answer [7] |
2 | Halted | 0 ms | 0 KB | - |