結果

問題 No.3011 あ、俺こいつの役やりたい!
ユーザー tomo8
提出日時 2025-01-25 14:26:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 1,477 ms
コンパイル使用メモリ 160,012 KB
実行使用メモリ 25,856 KB
平均クエリ数 12.45
最終ジャッジ日時 2025-01-25 23:19:01
合計ジャッジ時間 4,257 ms
ジャッジサーバーID
(参考情報)
judge7 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int t = 1000000000;
  while (1) {
  	cout << t << endl;
    int x; cin >> x;
    if (x == 1) {
      return 0;
    }
    else if (x == -1) {
      return 0;
    }
    else t>>=1;
  }
}
0