Submission #999312

#TimeUsernameProblemLanguageResultExecution timeMemory
999312crafticatL-triominoes (CEOI21_ltriominoes)C++17
0 / 100
1 ms348 KiB
#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 (w % 2 == 1 && h > 1e5) cout << "NO"; else cout << "YES"; return 0; }

Compilation message (stderr)

ltrominoes.cpp: In function 'int main()':
ltrominoes.cpp:22:9: warning: unused variable 'pos' [-Wunused-variable]
   22 |     int pos = pow(2,w) + 1;
      |         ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...