結果

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

ソースコード

diff #

#include <bits/stdc++.h>
#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define REP(i, n) for (ll i = 0; i < (n); i++)
#define ALL(a) (a).begin(), (a).end()
using namespace std;
using ll = long long;

int main() {
    ll x = 1e9;


    while (true) {
        cout << x << endl;
        ll input1;
        cin >> input1;

        if (input1 == -1) {
            return 0;
        }

        if (input1 == 0) {
            x /= 2;
            continue;
        }
        else if (input1 == 1) {
            return 0;
        }
    }

    return 0;
}
0