結果
問題 |
No.3084 Identify f(x)
|
ユーザー |
![]() |
提出日時 | 2025-06-06 15:38:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 362 bytes |
コンパイル時間 | 1,552 ms |
コンパイル使用メモリ | 160,436 KB |
実行使用メモリ | 25,600 KB |
平均クエリ数 | 3.00 |
最終ジャッジ日時 | 2025-06-06 15:38:08 |
合計ジャッジ時間 | 3,101 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 7 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define rep(i, a, b) for (int i = a; i < b; i++) using ll = long long; int main(){ int x = 0, f, INF = 1e9; cout << "? " << x << endl; cin >> f; if(f == -INF) return 0; int b = f; x = 1; cout << "? " << x << endl; cin >> f; if(f == -INF) return 0; f -= b; cout << "! " << f << " " << b << endl; }