結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
    std::ios::sync_with_stdio(false);
    std::cin.tie(nullptr);
    for(int i = 29; i >= 0; i--) {
        cout << (1LL << i) << endl;
        int r;
        cin >> r;
        if(r == 1) {
            return 0;
        }
    }
}
0