# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1136674 | mmdrzada | Nautilus (BOI19_nautilus) | C++20 | 81 ms | 1020 KiB |
// Nautilus
// Village
// Alphine walley
#include <bits/stdc++.h>
using namespace std;
#define vi vector<int>
#define REP(i, k) for(int i = 0 ; i < k ; i ++)
#define pb push_back
#define pii pair<int, int>
#define ll long long
#define sep ' '
#define F first
#define S second
const int N = 501, M = 5001;
int r, c, m;
string s[N];
string t;
bitset<N> dp[2][N];
bitset<N> emp[N];
pii change(pii curr, char c) {
if (c == 'N') curr.F++;
else if (c == 'S') curr.F--;
if (c == 'E') curr.S--;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |