結果

問題 No.3211 NAND Oracle
ユーザー Brandon Li
提出日時 2025-07-25 22:12:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 509 bytes
コンパイル時間 2,929 ms
コンパイル使用メモリ 194,492 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-07-25 22:12:37
合計ジャッジ時間 4,345 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#ifdef LOCAL
#include "debug.hh"
#else
#define dbg(...) 0
#define dbgn(...) 0
#endif

int32_t main() {
    cin.tie(0)->sync_with_stdio(0);
    int n, k;
    cin >> n >> k;
    if (k < n / 2 + 2) {
        cout << "No\n";
        return 0;
    }
    cout << "Yes\n";
    int v = (n + 1) / 2;
    for (int i = 0; i < v; i++) {
        cout << "1 2\n";
    }
    for (int i = 0; i < n - v; i++) {
        cout << "3 4\n";
    }
    return 0;
}
0