結果
| 問題 |
No.1187 皇帝ペンギン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-22 19:45:15 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 349 bytes |
| コンパイル時間 | 1,541 ms |
| コンパイル使用メモリ | 166,688 KB |
| 実行使用メモリ | 32,012 KB |
| 最終ジャッジ日時 | 2024-07-17 06:37:22 |
| 合計ジャッジ時間 | 5,892 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 53 |
ソースコード
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
int ok=0,ng=1001;
while(ng-ok){
int n=(ok+ng)/2;
string S,T;
cout<<"? "<<n<<endl;
cin>>S;
cout<<"? "<<n+1<<endl;
cin>>T;
if(S=="out" && T=="out")ng=n;
else ok=n;
}
cout<<"! "<<ok<<endl;
}