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:~~~~~WA~~~~~~~~~

Posted by 19890121 at 2008-11-18 18:53:04 on Problem 2160
In Reply To:~~~~~WA~~~~~~~~~ Posted by:19890121 at 2008-11-18 15:35:49
> 我先对六组数据进行了排序,之后再进行判断每两个一组是不是一样,如果一样的话说明正好有三个面,只要考虑其一半不就行了吗?如果这三个面的边能组成一组首尾相边的数应该就行了撒!还有,在这些数据里交换宽和高应该不会有影响吧,我是先交换了的,再按宽进行的排序,比如:
> 1345 2584
> 2584 683
> 2584 1345
> 683 1345
> 683 1345
> 2584 683
> 排序后为(多级排序)
> 
> 683 1345
> 683 1345
> 683 2584
> 683 2584
> 1345 2584
> 1345 2584
> 一次筛选过后就成了这三组了:
> 683 1345
> 1345 2584
> 2584 683
> 这样三组数能组成首尾相接的数就可以,我把有些能想到的测试数据都过了的,但为什么还是过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