結果

問題 No.2357 Guess the Function
ユーザー CleyLCleyL
提出日時 2023-12-05 23:28:50
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 237 bytes
コンパイル時間 668 ms
コンパイル使用メモリ 67,644 KB
実行使用メモリ 24,012 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-12-05 23:28:53
合計ジャッジ時間 2,296 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
using namespace std;

int main(){
  cout << "? 100" << endl;
  int x;cin>>x;
  cout << "? " << 100-(x+1) << endl;
  int y;cin>>y;
  int B = y+1;
  int A = (x+y+-99+B*100)%B;
  cout << "! " << A << " " << B << endl;
}
0