Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:做做水题增强信心思路在此……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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator