結果

問題 No.2357 Guess the Function
ユーザー i_am_noobi_am_noob
提出日時 2023-06-29 17:18:59
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 1,993 ms
コンパイル使用メモリ 196,956 KB
実行使用メモリ 24,312 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-20 12:34:39
合計ジャッジ時間 3,784 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
23,220 KB
testcase_01 AC 26 ms
23,664 KB
testcase_02 AC 26 ms
23,652 KB
testcase_03 WA -
testcase_04 AC 26 ms
23,892 KB
testcase_05 AC 26 ms
23,532 KB
testcase_06 AC 25 ms
23,472 KB
testcase_07 AC 26 ms
24,288 KB
testcase_08 AC 25 ms
23,628 KB
testcase_09 AC 26 ms
23,664 KB
testcase_10 AC 27 ms
24,312 KB
権限があれば一括ダウンロードができます

ソースコード

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