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

大虾们,这题有什么要特别注意的地方吗?wa到不爽了。谢谢!

Posted by yujiashan at 2006-12-01 15:06:28 on Problem 1410
附思路:
       先找出矩形的左下角坐标 和 右上角坐标;
       然后判断矩形是否在以线段起点和终点为对顶点的矩形范围之外,是的话就返回‘F’;
       然后判断矩形的四个点是否都在线段的同一边,是的话就返回‘F’;
       否则就返回‘T’。
   PS:按照这样做的话,当线段在矩形内部的时候,得到的结果应该是‘T’,交上去 wa 后;我又改了下,
       变成在矩形内部时候返回‘F’,交上去还是 wa 。
 
多谢大虾指点!

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