結果
問題 | No.2962 Sum Bomb Bomber |
ユーザー | xiaokai hou |
提出日時 | 2024-12-26 15:16:25 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 3,246 bytes |
コンパイル時間 | 1,431 ms |
コンパイル使用メモリ | 119,436 KB |
実行使用メモリ | 25,592 KB |
平均クエリ数 | 69.68 |
最終ジャッジ日時 | 2024-12-26 15:16:40 |
合計ジャッジ時間 | 12,733 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 84 ms
24,824 KB |
testcase_01 | AC | 116 ms
24,568 KB |
testcase_02 | AC | 93 ms
24,824 KB |
testcase_03 | WA | - |
testcase_04 | AC | 109 ms
25,464 KB |
testcase_05 | WA | - |
testcase_06 | AC | 83 ms
24,824 KB |
testcase_07 | AC | 100 ms
25,208 KB |
testcase_08 | AC | 100 ms
25,208 KB |
testcase_09 | AC | 91 ms
24,568 KB |
testcase_10 | AC | 98 ms
25,208 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 100 ms
24,824 KB |
testcase_15 | AC | 93 ms
25,208 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | AC | 80 ms
25,208 KB |
testcase_22 | AC | 90 ms
24,824 KB |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | AC | 96 ms
25,208 KB |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | AC | 95 ms
25,208 KB |
testcase_31 | WA | - |
testcase_32 | AC | 93 ms
25,208 KB |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | AC | 97 ms
25,208 KB |
testcase_36 | AC | 96 ms
24,568 KB |
testcase_37 | WA | - |
testcase_38 | AC | 116 ms
24,568 KB |
testcase_39 | AC | 94 ms
24,932 KB |
testcase_40 | AC | 100 ms
25,208 KB |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | AC | 94 ms
25,124 KB |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | AC | 113 ms
25,208 KB |
testcase_47 | WA | - |
testcase_48 | AC | 100 ms
25,208 KB |
testcase_49 | WA | - |
testcase_50 | AC | 98 ms
24,824 KB |
testcase_51 | WA | - |
testcase_52 | AC | 102 ms
24,812 KB |
testcase_53 | AC | 84 ms
25,196 KB |
testcase_54 | AC | 81 ms
24,812 KB |
testcase_55 | AC | 83 ms
24,812 KB |
testcase_56 | AC | 131 ms
25,196 KB |
testcase_57 | WA | - |
testcase_58 | WA | - |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | AC | 89 ms
24,812 KB |
testcase_63 | AC | 90 ms
24,556 KB |
testcase_64 | AC | 87 ms
24,556 KB |
ソースコード
#include <iostream> #include <sstream> #include <iomanip> #include <cstring> #include <string> #include <algorithm> #include <cmath> #include <map> #include <set> #include <vector> #include <queue> #include <unordered_set> #include <unordered_map> #include <bitset> #include <ctime> #include <assert.h> #include <deque> #include <list> #include <stack> using namespace std; #define is_mul_overflow(a, b) \ ((b != 0) && (a > LLONG_MAX / b || a < LLONG_MIN / b)) typedef pair<long long, int> pli; typedef pair<int, long long> pil; typedef pair<long long , long long> pll; typedef pair<int, int> pii; typedef pair<double, double> pdd; typedef pair<int, pii> piii; typedef pair<int, long long > pil; typedef pair<long long, pii> plii; typedef pair<double, int> pdi; typedef long long ll; typedef unsigned long long ull; typedef pair<ull, ull> puu; typedef long double ld; const int N = 2000086, MOD = 998244353, INF = 0x3f3f3f3f, MID = 333; const long double EPS = 1e-8; int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1}; // int dx[8] = {1, 1, 0, -1, -1, -1, 0, 1}, dy[8] = {0, 1, 1, 1, 0, -1, -1, -1}; // int dx[8] = {2, 1, -1, -2, -2, -1, 1, 2}, dy[8] = {1, 2, 2, 1, -1, -2, -2, -1}; int n, m, cnt; int w[N]; vector<ll> num; ll res; ll lowbit(ll x) { return x & -x; } ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; } ll lcm(ll a, ll b) { return a / gcd(a, b) * b; } inline double rand(double l, double r) { return (double)rand() / RAND_MAX * (r - l) + l; } inline ll qmi(ll a, ll b, ll c) { ll res = 1; while (b) { if (b & 1) res = res * a % c; a = a * a % c; b >>= 1; } return res; } inline ll qmi(ll a, ll b) { ll res = 1; while (b) { if (b & 1) res *= a; a *= a; b >>= 1; } return res; } inline double qmi(double a, ll b) { double res = 1; while (b) { if (b & 1) res *= a; a *= a; b >>= 1; } return res; } // inline ll C(ll a, ll b) { if (a < b) return 0; if (b > a - b) b = a - b; ll res = 1; for (ll i = 1, j = a; i <= b; i++, j--) { res = res * (j % MOD) % MOD; res = res * qmi(i, MOD - 2, MOD) % MOD; } return res; } inline ll C(ll a, ll b, int* c) { if (a < b) return 0; ll res = 1; for (ll j = a, i = 1; i < b + 1; i++, j--) res *= j; for (ll j = a, i = 1; i < b + 1; i++, j--) res /= i; return res; } inline int find_(int x) { return lower_bound(num.begin(), num.end(), x) - num.begin(); } ll ask(int x, int y) { printf("1 %d %d\n", x, y); fflush(stdout); scanf("%lld", &res); return res; } int main() { cin >> n; int x = INF, y = INF; int l = -1e8, r = 1e8; while (l < r) { int mid = l + r >> 1; ll a = ask(mid, 0), b = ask(mid + 1, 0); if (a == b) { x = a; break; } if (a < b) r = mid; else l = mid + 1; } if (x == INF) { ll a = ask(l, 0), b = ask(l + 1, 0); x = a < b ? l : l + 1; } l = -1e8, r = 1e8; while (l < r) { int mid = l + r >> 1; ll a = ask(0, mid), b = ask(0, mid + 1); if (a == b) { y = a; break; } if (a < b) r = mid; else l = mid + 1; } if (y == INF) { ll a = ask(0, l), b = ask(0, l + 1); y = a < b ? l : l + 1; } printf("2 %d %d\n", x, y); return 0; }