結果
問題 | No.513 宝探し2 |
ユーザー | rapurasu |
提出日時 | 2017-05-05 22:42:36 |
言語 | C++11 (gcc 11.4.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 714 bytes |
コンパイル時間 | 1,113 ms |
コンパイル使用メモリ | 144,100 KB |
実行使用メモリ | 35,896 KB |
最終ジャッジ日時 | 2023-09-24 01:03:45 |
合計ジャッジ時間 | 7,800 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | TLE | - |
testcase_01 | -- | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
ソースコード
#include<bits/stdc++.h> using namespace std; #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--) #define REP(i,n) for (int i=0;i<(n);i++) #define RREP(i,n) for (int i=(n)-1;i>=0;i--) typedef long long LL; int main(){ cout<<0<<" "<<0; LL a; cin>>a; LL x=0; LL now=100002; REP(i,20){ now/=2; cout<<0<<" "<<x+now<<endl; LL b; cin>>b; if(a>=b+now){ a=b; x=x+now; } } LL y=0; now=100002; REP(i,20){ now/=2; cout<<y+now<<" "<<x<<endl; LL b; cin>>b; if(a>=b+now){ a=b; x=x+now; } } return(0); }