結果
| 問題 |
No.3211 NAND Oracle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-07-25 22:32:15 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 402 bytes |
| コンパイル時間 | 960 ms |
| コンパイル使用メモリ | 80,288 KB |
| 実行使用メモリ | 7,840 KB |
| 最終ジャッジ日時 | 2025-07-25 22:32:19 |
| 合計ジャッジ時間 | 3,405 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
std::cout << "No\n";
return 0;
}