結果

問題 No.3211 NAND Oracle
ユーザー Brandon Li
提出日時 2025-07-25 21:46:26
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 491 bytes
コンパイル時間 1,983 ms
コンパイル使用メモリ 194,364 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-07-25 21:46:32
合計ジャッジ時間 5,205 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 13 WA * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long; 
#ifdef LOCAL
#include <debug.h>
#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((n - 1) / 2 + 1 <= k){
    	cout << "Yes\n"; 
    	for(int i = 0; i < (n + 1) / 2; i++){
    		cout << "1 2\n"; 
    	}
    	for(int j = (n + 1) / 2; j < n; j++){
    		cout << "3 4\n"; 
    	}
    }
    else cout << "No\n"; 
    return 0; 
}
0