結果
問題 |
No.3211 NAND Oracle
|
ユーザー |
|
提出日時 | 2025-07-25 23:19:25 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 530 bytes |
コンパイル時間 | 740 ms |
コンパイル使用メモリ | 80,736 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-07-25 23:19:30 |
合計ジャッジ時間 | 4,506 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 WA * 8 |
ソースコード
#include <iostream> #include <cstdint> int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); uint_fast32_t Q, K, i; std::cin >> Q >> K; if (2 + (Q >> 1) <= K) { std::cout << "Yes\n1 2\n"; if (Q >= 2) std::cout << "2 3\n"; if (Q >= 3) std::cout << "1 4\n"; for (i = 3; i < Q; ++i) std::cout << i << ' ' << i + 2 << '\n'; } else if (Q >= 4 && K >= 5) { std::cout << "Yes\n1 2\n2 3\n3 4\n3 4\n"; for (i = 4; i < Q; ++i) std::cout << "5 6\n"; } else std::cout << "No\n"; return 0; }