結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー a01sa01to
提出日時 2025-01-27 00:00:54
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 399 bytes
コンパイル時間 3,686 ms
コンパイル使用メモリ 273,196 KB
実行使用メモリ 26,216 KB
平均クエリ数 11.66
最終ジャッジ日時 2025-01-27 00:01:03
合計ジャッジ時間 6,306 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
  #include "settings/debug.cpp"
#else
  #define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;

int main() {
  for (int i = 29; i >= 0; --i) {
    cout << (1 << i) << endl;
    int r;
    cin >> r;
    if (r == 1) break;
    assert(r == 0);
  }
  return 0;
}
0