結果
問題 |
No.3211 NAND Oracle
|
ユーザー |
![]() |
提出日時 | 2025-07-25 21:59:45 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 481 bytes |
コンパイル時間 | 868 ms |
コンパイル使用メモリ | 87,788 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-07-25 21:59:53 |
合計ジャッジ時間 | 3,750 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 16 WA * 12 |
ソースコード
#include <iostream> #include <vector> using namespace std; using ll = long long; int Q, K; int main(void){ ios::sync_with_stdio(false); cin.tie(nullptr); cin >> Q >> K; // [0, 1, 1], [0, 1] if(K < (Q + 1) / 2 + 1){ cout << "No\n"; return 0; } cout << "Yes\n"; vector<pair<int, int>> ans; ans.push_back({0, 1}); for(int i = 0;i < Q - 1;i++){ ans.push_back({i % 2, i % 2 + 2}); } for(auto [a, b] : ans){ cout << a + 1 << " " << b + 1 << "\n"; } return 0; }