結果
| 問題 |
No.3211 NAND Oracle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-25 21:52:56 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 533 bytes |
| コンパイル時間 | 3,198 ms |
| コンパイル使用メモリ | 276,120 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-07-25 21:53:03 |
| 合計ジャッジ時間 | 6,442 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 17 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int q, k;
cin >> q >> k;
if(q%2 == 0 || k <= q/2+1 || q < 3 || k > q){
cout << "No" << endl;
return 0;
}
cout << "Yes" << endl;
cout << "1 2" << endl;
cout << "1 3" << endl;
cout << "2 4" << endl; // 0:2 1:3
if(k == q-2){
for(int i=0; i<q-3; i++){
cout << "1 4" << endl;
}
}
else{
k -= 3;
q -= 3;
while(q != k){
cout << "1 3" << endl;
cout << "4 6" << endl;
k--;
q -= 2;
}
for(int i=0; i<q; i++){
cout << "1 4" << endl;
}
}
}