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 |
理解题意是关键啊!很奇怪的,此题的数据流也不是很大,当我用cin进行一系列的输入是会TLE,但是我换成了scanf后就AC了。 还有一个非常关键的地方就是:You create a list of numbers where the i-th number is the position of the integer i in the permutation. 词句就是说 a[a[i]]==i 的意思。 给出此信息以供后人参考。我也是个菜鸟啊! Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator