結果
問題 |
No.1149 色塗りゲーム
|
ユーザー |
|
提出日時 | 2021-01-23 16:36:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 736 bytes |
コンパイル時間 | 707 ms |
コンパイル使用メモリ | 98,252 KB |
最終ジャッジ日時 | 2025-01-18 07:34:26 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 4 WA * 46 |
ソースコード
#include <iostream> #include <algorithm> #include <map> #include <set> #include <queue> #include <stack> #include <numeric> #include <bitset> #include <cmath> static const int MOD = 1000000007; using ll = long long; using u32 = unsigned; using u64 = unsigned long long; using namespace std; template<class T> constexpr T INF = ::numeric_limits<T>::max() / 32 * 15 + 208; int main() { int n; cin >> n; auto answer = [&](int a, int b){ cout << a << " " << b << endl; }; if(n%2) answer(1, n/2+1); else answer(2, n/2); int t, k, x; auto get = [&](){ cin >> t; if(t >= 2) cin >> k >> x; return t >= 2; }; while(get()){ if(k == 1) answer(1, n-k+1); else answer(2, n-k); } return 0; }