結果
| 問題 |
No.513 宝探し2
|
| コンテスト | |
| ユーザー |
dnish
|
| 提出日時 | 2017-05-05 23:22:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 502 bytes |
| コンパイル時間 | 1,892 ms |
| コンパイル使用メモリ | 165,592 KB |
| 実行使用メモリ | 25,220 KB |
| 平均クエリ数 | 3.50 |
| 最終ジャッジ日時 | 2024-07-17 01:03:16 |
| 合計ジャッジ時間 | 2,590 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
dnish