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 |
只要能把这样的环处理掉就行了Input: 3 3 A = 1 2 3 D D = 10 20 G G = 100 200 300 400 A A 70000000 70000032 D 70000000 70000032 G 70000000 70000032 Output: 300 400 1 2 3 10 20 100 200 300 400 1 2 3 10 20 100 200 300 400 1 2 3 10 20 100 200 300 400 1 2 3 10 2 3 10 20 100 200 300 400 1 2 3 10 20 100 200 300 400 1 2 3 10 20 100 200 300 400 1 2 3 10 20 100 200 10 20 100 200 300 400 1 2 3 10 20 100 200 300 400 1 2 3 10 20 100 200 300 400 1 2 3 10 20 100 200 300 400 由于zip的复杂度是log级的,所以即使有环,递归几次问题不大。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator