結果
| 問題 |
No.2357 Guess the Function
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-26 20:23:02 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 469 bytes |
| コンパイル時間 | 6,581 ms |
| コンパイル使用メモリ | 251,856 KB |
| 最終ジャッジ日時 | 2025-02-15 02:26:22 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 WA * 1 |
ソースコード
typedef long long ll;
typedef long double ld;
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
std::cout << "? 100" << std::endl;
ll x1;
std::cin >> x1;
std::cout << "? "<<100-x1-1<< std::endl;
ll x2;
std::cin >> x2;
ll b = x2+1;
for (int i = 0; i < b; i++) {
if((i+100)%b==x1&&(i+100-x1-1)%b==x2){
std::cout << "! "<<i<<" "<<b << std::endl;
return 0;
}
}
}