結果
問題 | No.3011 あ、俺こいつの役やりたい! |
ユーザー |
|
提出日時 | 2025-01-25 13:31:05 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 3,223 ms |
コンパイル使用メモリ | 273,668 KB |
実行使用メモリ | 25,984 KB |
平均クエリ数 | 11.50 |
最終ジャッジ日時 | 2025-01-25 22:49:23 |
合計ジャッジ時間 | 7,059 ms |
ジャッジサーバーID (参考情報) |
judge8 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 44 |
ソースコード
#include <bits/stdc++.h> using namespace std; using ll = long long; const int x_dir[] = {0, 1, 0, -1}; const int y_dir[] = {-1, 0, 1, 0}; int main() { ll n = 1e9; for (int i=0; i<30; ++i) { ll x = n/2; cout << x << endl; int r; cin >> r; switch(r) { case 0: n = x; break; case 1: case -1: return 0; } } return 0; }