結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー YFYF
提出日時 2025-01-25 12:38:48
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 521 bytes
コンパイル時間 8,068 ms
コンパイル使用メモリ 219,284 KB
実行使用メモリ 25,972 KB
平均クエリ数 12.45
最終ジャッジ日時 2025-01-25 22:07:25
合計ジャッジ時間 8,586 ms
ジャッジサーバーID
(参考情報)
judge10 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
template <typename T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template <typename T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

int main() {
    int x = 1000000000;
    while(true){
        cout << x << endl;
        int r;
        cin >> r;
        if(r == 1)return 0;
        x /= 2;
    }
}
0