結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-01-25 12:47:45 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 2,000 ms |
| コード長 | 246 bytes |
| コンパイル時間 | 735 ms |
| コンパイル使用メモリ | 63,628 KB |
| 実行使用メモリ | 25,984 KB |
| 平均クエリ数 | 11.50 |
| 最終ジャッジ日時 | 2025-01-25 22:21:31 |
| 合計ジャッジ時間 | 4,550 ms |
|
ジャッジサーバーID (参考情報) |
judge7 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 44 |
ソースコード
#include<iostream>
#include<vector>
#include<cassert>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int N=1e9;
while(true)
{
int x=(N+1)/2;
cout<<x<<endl;
int r;cin>>r;
if(r==1)break;
N=x-1;
}
}