結果
| 問題 |
No.3211 NAND Oracle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-25 21:50:34 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 485 bytes |
| コンパイル時間 | 1,699 ms |
| コンパイル使用メモリ | 194,360 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-07-25 21:50:44 |
| 合計ジャッジ時間 | 4,676 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 9 |
ソースコード
#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 / 2 + 2 <= 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;
}