結果
| 問題 |
No.3211 NAND Oracle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-17 13:49:51 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 540 bytes |
| コンパイル時間 | 5,263 ms |
| コンパイル使用メモリ | 334,996 KB |
| 実行使用メモリ | 7,720 KB |
| 最終ジャッジ日時 | 2025-09-17 13:50:01 |
| 合計ジャッジ時間 | 9,534 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 11 WA * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;
const ll MOD = 998244353;
#include<atcoder/all>
using namespace atcoder;
using mint = modint998244353;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
ll q,k;cin>>q>>k;
ll cnt=(q+2)/3*2+max(0LL,(q%3)-1);
if(cnt>k){
cout<<"No"<<endl;
}else {
cout<<"Yes"<<endl;
rep(i,q-1){
cout<<i+1<<" "<<i+2<<endl;
}
cout<<1<<" "<<q<<endl;
};
}