Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:做做水题增强信心思路在此……

Posted by cz_insane at 2013-02-07 19:14:10 on Problem 1657
In Reply To:做做水题增强信心思路在此…… Posted by:wyc4662 at 2011-09-18 13:45:42
> 先要考虑两次坐标相等的情况
> 对于王,输出横坐标差的绝对值与纵坐标差的绝对值的最大值
> 对于后,如果在同一斜线上或者同一行或者同一列上输出1否则输出2
> 对于车,如果在同一行上或者同一列上则输出1否则输出2
> 对于象,如果起点与终点的颜色不同输出Inf,如果在同一斜线上输出1否则输出2
the answer of queen is min(the answer of bishop, the answer of rook).
when the answer of the bishop is "Inf", then the answer of queen equals the answer of rook

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator