結果
| 問題 |
No.3084 Identify f(x)
|
| コンテスト | |
| ユーザー |
zawakasu
|
| 提出日時 | 2025-04-04 21:23:34 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 603 bytes |
| コンパイル時間 | 823 ms |
| コンパイル使用メモリ | 104,236 KB |
| 実行使用メモリ | 25,856 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2025-04-04 21:23:36 |
| 合計ジャッジ時間 | 1,632 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 7 |
ソースコード
#include <iostream>
#include <iomanip>
#include <cassert>
#include <vector>
#include <algorithm>
#include <utility>
#include <numeric>
// #include "Src/Utility/BinarySearch.hpp"
// #include "Src/Sequence/CompressedSequence.hpp"
// #include "Src/Sequence/RunLengthEncoding.hpp"
// using namespace zawa;
// #include "atcoder/modint"
// using mint = atcoder::modint998244353;
int main() {
std::cout << "? " << 0 << std::endl;
int b;
std::cin >> b;
std::cout << "? " << 1 << std::endl;
int p;
std::cin >> p;
int a = p - b;
std::cout << "! " << a << ' ' << b << std::endl;
}
zawakasu