結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー Cafe1942
提出日時 2025-01-25 14:37:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 739 bytes
コンパイル時間 914 ms
コンパイル使用メモリ 89,228 KB
実行使用メモリ 25,984 KB
平均クエリ数 11.50
最終ジャッジ日時 2025-01-25 23:24:06
合計ジャッジ時間 4,545 ms
ジャッジサーバーID
(参考情報)
judge2 / judge8
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>//小数点出力用
//cout << fixed << setprecision(10) << ans;
#include <cmath>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <map>
using ll = long long;
using namespace std;
#define modP 998244353
bool chkrng0idx(int pos, int sup) { return (0 <= pos && pos < sup); }
int clk4(int num) { return (num - 2) * (num % 2); }
void yn(bool tf) { cout << (tf ? "Yes\n" : "No\n"); }

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int N = 500000000;
    while (1) {
        cout << N << endl;
        int T;cin >> T;
        if (T) {
            return 0;
        }
        else {
            N /= 2;
        }
    }
    return 0;
}
0