# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
414836 | 2021-05-31T08:50:02 Z | 조영욱(#7631) | Navigation 2 (JOI21_navigation2) | C++17 | 1 ms | 320 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; } int arr[7]={1,3,9,27,81,243,729}; int val[100][100]; } // namespace void Anna(int n,int k, vector<int> R, vector<int> C) { memset(val,0,sizeof(val)); for(int ind=0;ind<k;ind++) { int x=R[ind]; int y=C[ind]; for(int i=0;i<x;i++) { val[i][y]+=2*arr[ind]; } for(int i=0;i<n;i++) { for(int j=y+1;j<n;j++) { val[i][j]+=arr[ind]; } } } for(int i=0;i<n;i++) { for(int j=0;j<n;j++) { SetFlag(i,j,val[i][j]+1); } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 320 KB | Wrong Answer [7] |
2 | Halted | 0 ms | 0 KB | - |