結果
| 問題 | No.3084 Identify f(x) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-01-21 01:42:34 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 2,000 ms |
| コード長 | 392 bytes |
| 記録 | |
| コンパイル時間 | 4,432 ms |
| コンパイル使用メモリ | 275,108 KB |
| 実行使用メモリ | 28,720 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2026-01-21 01:42:41 |
| 合計ジャッジ時間 | 6,025 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include <atcoder/all>
#include <bits/stdc++.h>
using namespace std;
#define int long long
void testcase() {
int a, b, temp;
cout << "? 0" << endl;
cin >> temp;
b = temp;
cout << "? 1" << endl;
cin >> temp;
a = temp - b;
cout << "! " << a << ' ' << b << endl;
return;
}
int32_t main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
testcase();
return 0;
}