# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
827080 | Alora | Selotejp (COCI20_selotejp) | C++17 | 29 ms | 356 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define name "cownav"
#define fi(i,a,b) for(int i = a; i <= b; i++)
#define fid(i,a,b) for(int i = a; i >= b; i--)
#define ll long long
#define f first
#define se second
#define pii pair<int, int>
#define getbit(i, j) ((i >> j) & 1)
#define pb push_back
#define all(v) v.begin(), v.end()
#define maxn 255
const int M = 1e9 + 7;
using namespace std;
int m, n, full, pre[1 << 10], dp[1 << 10];
char s[1003][11];
void sol(){
full = (1 << m) - 1;
memset(pre, 0x3f, sizeof(pre));
pre[0] = 0;
fi(j, 0, n - 1){
fi(i, 0, m - 1){
fi(tt, 0, full){
// if i-th bit of tt = 0 -> cell(j, i) is shut by a horizontal tape
// if i-th bit of tt = 1 -> cell(j, i) is shut by a vertical tape
if(s[j][i] == '.'){
if(getbit(tt, i)) dp[tt] = 1e9;
else dp[tt] = min(pre[tt], pre[tt^(1 << i)]);
continue;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |