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

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

Posted by wyc4662 at 2011-09-18 13:45:42 on Problem 1657
先要考虑两次坐标相等的情况
对于王,输出横坐标差的绝对值与纵坐标差的绝对值的最大值
对于后,如果在同一斜线上或者同一行或者同一列上输出1否则输出2
对于车,如果在同一行上或者同一列上则输出1否则输出2
对于象,如果起点与终点的颜色不同输出Inf,如果在同一斜线上输出1否则输出2

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