結果
問題 |
No.513 宝探し2
|
ユーザー |
![]() |
提出日時 | 2017-05-18 01:17:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 620 bytes |
コンパイル時間 | 763 ms |
コンパイル使用メモリ | 88,064 KB |
最終ジャッジ日時 | 2025-01-05 00:21:17 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 12 |
ソースコード
#include <cstdio> #include <random> #include <vector> #include <algorithm> #include <array> using namespace std; const bool TEST=false; int manhattan(int x1,int y1,int x2,int y2){ return abs(x1-x2)+abs(y1-y2); } int getcount=0; int get(int x,int y){ getcount++; if(TEST){ return manhattan(x,y,8101919,364364); } printf("%d %d\n",x,y); int mh; int _=scanf("%d",&mh); return mh; } int main(){ int x,y; int l,r; l=get(0,0); r=get(0x7fffffff,0); if(TEST) printf("%d %d\n",l,r); x=(l-(r-0x7fffffff))>>1; y=l-x; printf("%d %d\n",x,y); if(TEST){ printf("getcount=%d\n",getcount); } return 0; }