답안 #999308

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
999308 2024-06-15T09:40:34 Z crafticat L-triominoes (CEOI21_ltriominoes) C++17
0 / 100
0 ms 348 KB
#include <bits/stdc++.h>

using namespace std;
int w, h, k;

vector<bool> getData(int pos) {
    vector<bool> exist(w);
    int j = 0;
    while (pos > 0) {
        if (pos % 2) exist[j] = true;
        pos /= 2;
    }
    return exist;
}

int main() {
    cin >> w >> h >> k;

    for (int i = 0; i < k; ++i) {
        int x, y; cin >> x >> y;
    }
    int pos = pow(2,w) + 1;

    if (h % 2 == 1) 
        cout << "NO";
    else
        cout << "YES";

    return 0;
}

Compilation message

ltrominoes.cpp: In function 'int main()':
ltrominoes.cpp:22:9: warning: unused variable 'pos' [-Wunused-variable]
   22 |     int pos = pow(2,w) + 1;
      |         ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Incorrect 0 ms 348 KB Output isn't correct
10 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 0 ms 348 KB Output is correct
6 Correct 0 ms 348 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Correct 0 ms 348 KB Output is correct
9 Incorrect 0 ms 348 KB Output isn't correct
10 Halted 0 ms 0 KB -