摘要: 3660. 最短时间 签到。 距离目标点$(r,c)$最远的一定是四个顶点中的某一个点。 int n,m; int r,c; int main() { int T; cin>>T; while(T--) { cin>>n>>m>>r>>c; cout<<max(r-1,n-r)+max(c-1,m- 阅读全文
posted @ 2021-06-13 15:14 Dazzling! 阅读(13) 评论(0) 推荐(0) 编辑