結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー hamikan
提出日時 2025-09-05 19:50:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 268 bytes
コンパイル時間 2,485 ms
コンパイル使用メモリ 194,612 KB
実行使用メモリ 25,984 KB
平均クエリ数 11.61
最終ジャッジ日時 2025-09-05 19:50:39
合計ジャッジ時間 7,495 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int x = 1000000000, flg = 0;
    while(flg == 0) {
        cout << x / 2 + (x % 2) << endl;
        cin >> flg;
        x = x / 2 + (x % 2);
    }
}
0