結果
問題 | No.514 宝探し3 |
ユーザー |
![]() |
提出日時 | 2017-05-05 23:23:09 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 503 bytes |
コンパイル時間 | 1,683 ms |
コンパイル使用メモリ | 165,580 KB |
実行使用メモリ | 25,604 KB |
平均クエリ数 | 3.50 |
最終ジャッジ日時 | 2024-07-16 13:26:30 |
合計ジャッジ時間 | 2,871 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> #define REP(i,n,N) for(int i=(n);i<(int)N;i++) #define p(s) cout<<(s)<<endl #define ck(n,a,b) ((a)<=(n)&&(n)<(b)) #define F first #define S second typedef long long ll; using namespace std; const int inf=1e9; int main(){ int X,Y; cout << 0 <<" "<< 0 <<endl; int d; cin>>d; X=d/2; Y=d-X; cout << X <<" "<< Y <<endl; int a; cin>>a; cout << X+a/2+a%2 <<" "<< Y-a/2-a%2 <<endl; cin>>d; if(d!=0){ cout << X-a/2-a%2 <<" "<< Y+a/2+a%2 <<endl; cin>>d; } return 0; }