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

只要能把这样的环处理掉就行了

Posted by aoxboxcox at 2021-08-20 11:35:04 on Problem 1512 and last updated at 2021-08-20 11:35:44
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:
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