結果

問題 No.2357 Guess the Function
ユーザー SSRSSSRS
提出日時 2023-06-23 21:22:14
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 291 bytes
コンパイル時間 1,954 ms
コンパイル使用メモリ 162,724 KB
実行使用メモリ 24,216 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-13 16:22:52
合計ジャッジ時間 3,147 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,316 KB
testcase_01 AC 24 ms
23,988 KB
testcase_02 AC 23 ms
23,364 KB
testcase_03 WA -
testcase_04 AC 24 ms
23,580 KB
testcase_05 AC 24 ms
23,352 KB
testcase_06 AC 24 ms
23,628 KB
testcase_07 AC 24 ms
23,976 KB
testcase_08 AC 24 ms
23,496 KB
testcase_09 AC 24 ms
23,592 KB
testcase_10 AC 24 ms
23,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  cout << "? " << 100 << endl;
  int r1;
  cin >> r1;
  cout << "? " << 100 - r1 - 1 << endl;
  int r2;
  cin >> r2;
  int B = r2 + 1;
  int A = (r1 - 100) % B;
  if (A < 0){
    A += B;
  }
  cout << "! " << A << ' ' << B << endl;
}
0