| ||||||||||
| 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 | |||||||||
实在看不出好算法,直接分类讨论ac了。分4种情况分类讨论,代码直逼150行。
Orz
+-----+
| |
| |
+-----+
+--+
| | +----+
+--+ | |
| |
| |
+----+
+----+
| |
+----+
+--------+
| |
| |
+--------+
+--+
| |
+---+--+----+
| | | |
+---+--+----+
| |
| |
+--+
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator