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 |
Language: Tomorrow Genius 2008
Description Tomorrow Genius Contest is a traditional event of Daisy Hill Primary School for the purpose of promoting the spirit of its motto, "Mens et Manus" among the students. This year's rules are quite simple: Given N triangles, the contestants are asked to piece them together to make a rectangle with width W and height H as rapidly and possible. The contestants are allowed to move, rotate but not turn over the triangles. The first one who achieves the goal is the winner of the contest. Of course the host doesn't want to hold a no-winner contest. So he asks you, the technology support of the contest, to determine whether a problem is solvable. Input The first line contains three integers, N (1 ≤ N ≤ 10), W (1 ≤ W ≤ 10), H (1 ≤ H ≤ 10). Output One line contains "YES" or "NO" indicating whether the problem is solvable. Sample Input
Sample Output
Source |
[Submit] [Go Back] [Status] [Discuss]
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator