結果
問題 |
No.3211 NAND Oracle
|
ユーザー |
|
提出日時 | 2025-07-25 21:55:42 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,109 bytes |
コンパイル時間 | 2,930 ms |
コンパイル使用メモリ | 278,724 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-07-25 21:56:14 |
合計ジャッジ時間 | 7,979 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 WA * 1 |
ソースコード
#include <bits/stdc++.h> #define fi first #define se second #define rep(i,s,n) for (int i = (s); i < (n); ++i) #define rrep(i,n,g) for (int i = (n)-1; i >= (g); --i) #define all(a) a.begin(),a.end() #define rall(a) a.rbegin(),a.rend() #define len(x) (int)(x).size() #define dup(x,y) (((x)+(y)-1)/(y)) #define pb push_back #define eb emplace_back #define Field(T) vector<vector<T>> using namespace std; using ll = long long; using ull = unsigned long long; template<typename T> using pq = priority_queue<T,vector<T>,greater<T>>; using P = pair<int,int>; template<class T>bool chmax(T&a,T b){if(a<b){a=b;return 1;}return 0;} template<class T>bool chmin(T&a,T b){if(b<a){a=b;return 1;}return 0;} int main() { int q, k; cin >> q >> k; if (k >= 5|| (k == 4 && q <= 4) || (k == 3 && q <= 3) || (k == 2 && q == 1)) { vector<int> a = {1, 1, 2, 2, 2}; vector<int> b = {2, 3, 4, 5, 5}; cout << "Yes" << endl; rep(i,0,min(q, 5)) { cout << a[i] << " " << b[i] << endl; } rep(i,0,q-5) { cout << 6 << " " << 7 << endl; } return 0; } cout << "No" << endl; return 0; }