結果

問題 No.2252 Find Zero
ユーザー SSRSSSRS
提出日時 2023-03-24 21:22:13
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 1,527 ms
コンパイル使用メモリ 165,912 KB
実行使用メモリ 24,708 KB
平均クエリ数 208.94
最終ジャッジ日時 2023-10-18 20:38:44
合計ジャッジ時間 3,865 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 54 ms
24,660 KB
testcase_03 WA -
testcase_04 AC 57 ms
24,660 KB
testcase_05 WA -
testcase_06 AC 55 ms
24,660 KB
testcase_07 AC 55 ms
24,660 KB
testcase_08 AC 69 ms
24,660 KB
testcase_09 WA -
testcase_10 AC 53 ms
24,660 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 53 ms
24,660 KB
testcase_15 WA -
testcase_16 AC 54 ms
24,660 KB
testcase_17 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  for (int i = 0; i < N; i++){
    cout << "? " << 0 << ' ' << i << endl;
    int z;
    cin >> z;
    if (z == 0){
      cout << "! " << i << endl;
      break;
    }
  }
}
0