結果

問題 No.2357 Guess the Function
ユーザー 👑 CleyLCleyL
提出日時 2023-12-05 23:28:50
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 237 bytes
コンパイル時間 652 ms
コンパイル使用メモリ 67,456 KB
実行使用メモリ 25,220 KB
平均クエリ数 3.00
最終ジャッジ日時 2024-09-27 00:29:19
合計ジャッジ時間 1,990 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 9 WA * 1
権限があれば一括ダウンロードができます

ソースコード

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