# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
919936 | vjudge1 | Nautilus (BOI19_nautilus) | C++17 | 176 ms | 157324 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <vector>
#include <map>
#include <bitset>
#define N 500
using namespace std;
int n, m, len;
string s;
bool check(int i, int j) {
if(i > -1 && j > -1 && i < n && j < m) return true;
return false;
}
int main() {
cin >> n >> m >> len;
vector<bitset<N>> a(n, bitset<N>());
for(int i = 0; i < n; i++) {
cin >> s;
for(int j = 0; j < m; j++) {
if(s[j] == '.') a[i][j] = 1;
}
}
cin >> s;
//dp
vector<vector<bitset<N>>> dp(len+1, vector<bitset<N>>(n, bitset<N>()));
//base case
for(int i = 0; i < n; i++) dp[0][i] = a[i];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |