結果

問題 No.2357 Guess the Function
ユーザー i_am_noob
提出日時 2023-06-29 17:18:59
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 1,978 ms
コンパイル使用メモリ 193,544 KB
最終ジャッジ日時 2025-02-15 03:07:16
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
using pii=pair<int,int>;

#define all(a) a.begin(),a.end()
#define pb push_back
#define sz(a) ((int)a.size())

signed main(){
    ios_base::sync_with_stdio(0),cin.tie(0);
    cout << "? 100" << endl;
    int x; cin >> x;
    cout << "? " << 100-x-1 << endl;
    int b; cin >> b; b++;
    cout << "! " << (b-(100-x)%b)%b << ' ' << b << endl;
}
0