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:a problem about H

Posted by frkstyc at 2006-09-29 20:40:57 on Problem 3019
In Reply To:a problem about H Posted by:ever16 at 2006-09-29 20:39:50
lh and lw for the first sample are both 2.

> If the rotated image has dimensions lh × lw, then its dimensions in pixels are (floor(lh) + 1) × (floor(lw) + 1).
> 
> According to this, the first example should output "4 4"? because floor(lh) + 1 = floor(3) + 1 = 4?
> 
> I think floor(x) + 1 should be replaced by ceil(x)

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