結果

問題 No.3211 NAND Oracle
ユーザー Rumain831
提出日時 2025-07-27 03:37:50
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 437 bytes
コンパイル時間 634 ms
コンパイル使用メモリ 73,744 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-07-27 03:37:57
合計ジャッジ時間 6,502 ms
ジャッジサーバーID
(参考情報)
judge6 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 13 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
using ll = long long;

int main(void){
  int q, k; cin >> q >> k;
  if(q==1){
    cout << "Yes" << endl;
    cout << 1 << ' ' << 2 << endl;
    return 0;
  }
  if(k==2){
    cout << "No" << endl; return 0;
  }
  cout << "Yes" << endl;
  for(int i=0; i<2; i++) cout << 1 << ' ' << 2 << endl;
  for(int i=2; i<q; i++) cout << 3 << ' ' << 4 << endl;
  return 0;
}
0