# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
960994 | LucaIlie | L-triominoes (CEOI21_ltriominoes) | C++17 | 8090 ms | 10236 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int MAX_W = 13;
const int MAX_N = (1 << MAX_W);
map<int, int> conf;
bitset<MAX_N> adj[30][MAX_N];
bool hasBit( int mask, int i ) {
return ((mask >> i) & 1);
}
int main() {
int w, h, k;
cin >> w >> h >> k;
conf[0] = conf[h - 1] = 0;
for ( int i = 0; i < k; i++ ) {
int l, c;
cin >> l >> c;
l--;
c--;
conf[c] += (1 << l);
}
int n = (1 << w);
for ( int mask = 0; mask < n; mask++ ) {
vector<int> prvVec1 = { 0 }, prvVec2 = { 0 };
for ( int i = 0; i < w; 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |