結果
| 問題 |
No.3211 NAND Oracle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-17 13:51:18 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 542 bytes |
| コンパイル時間 | 5,608 ms |
| コンパイル使用メモリ | 334,844 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2025-09-17 13:51:28 |
| 合計ジャッジ時間 | 9,353 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 17 WA * 11 |
ソースコード
#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+1<<endl;
};
}