結果

問題 No.3211 NAND Oracle
ユーザー GOTKAKO
提出日時 2025-07-25 21:32:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 489 bytes
コンパイル時間 2,427 ms
コンパイル使用メモリ 194,468 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-07-25 21:32:48
合計ジャッジ時間 4,540 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    int N,K; cin >> N >> K;
    K -= 2;
    if(N/2 > K) cout << "No\n";
    else{
        cout << "Yes\n";
        while(N){
            cout << "1 2\n"; N--;
            if(N == 0) break;
            cout << "1 2\n"; N--;
            if(N == 0) break;
            cout << "3 4\n"; N--;
            if(N == 0) break;
            cout << "3 4\n"; N--;
        }
    } 
}
0