結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー sai
提出日時 2025-01-25 13:04:16
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 255 bytes
コンパイル時間 5,273 ms
コンパイル使用メモリ 271,736 KB
実行使用メモリ 25,844 KB
平均クエリ数 11.66
最終ジャッジ日時 2025-01-25 22:31:58
合計ジャッジ時間 6,602 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  for (int i = 30; i--;) {
    std::cout << (1 << i) << std::endl;
    int r; std::cin >> r;
    if (r == 1) {
      exit(0);
    }
  }
  assert(false);
}
0