結果
| 問題 |
No.3011 あ、俺こいつの役やりたい!
|
| コンテスト | |
| ユーザー |
umezo
|
| 提出日時 | 2025-01-26 00:17:25 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 434 bytes |
| コンパイル時間 | 3,963 ms |
| コンパイル使用メモリ | 272,860 KB |
| 実行使用メモリ | 25,984 KB |
| 平均クエリ数 | 11.66 |
| 最終ジャッジ日時 | 2025-01-26 00:17:38 |
| 合計ジャッジ時間 | 6,661 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 44 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ALL(v) v.begin(),v.end()
typedef long long ll;
template <class T> using V=vector<T>;
template <class T> using VV=V<V<T>>;
int main(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
for(int i=29;i>=0;i--){
cout<<(1<<i)<<endl;
int r;
cin>>r;
if(r==-1) return 0;
if(r==1) return 0;
}
return 0;
}
umezo