結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-02 09:40:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 640 bytes |
| コンパイル時間 | 1,956 ms |
| コンパイル使用メモリ | 159,448 KB |
| 実行使用メモリ | 26,216 KB |
| 平均クエリ数 | 11.61 |
| 最終ジャッジ日時 | 2025-02-02 09:40:37 |
| 合計ジャッジ時間 | 6,992 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 44 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define P pair<ll,ll>
#define pub push_back
#define pob pop_back
#define mp make_pair
#define nl '\n' //new line
#define mset multiset
#define lb lower_bound
#define rep(i,n) for(ll i=0;i<(ll)(n);++i)
template<typename T> bool chmin(T& a,T b){if(a>b){a=b;return true;}return false;}
template<typename T> bool chmax(T& a,T b){if(a<b){a=b;return true;}return false;}
const int num=10'000'09; //2*10^5+9
const int INF=1'000'000'000; //10^9
int main(){
ll l=1,r=INF;
ll q=0;
while(q==0){
ll m=(l+r)/2;
cout<<m<<nl;
cin>>q;
if(q==0) r=m;
}
}