C. Shinju and the Lost Permutation

Problem - C - Codeforces
C. Shinju and the Lost Permutation
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Shinju loves permutations very much! Today, she has borrowed a permutation pp from Juju to play with.
The ii-th cyclic shift of a permutation pp is a transformation on the permutation such that p=[p1,p2,…,pn]p=[p1,p2,…,pn] will now become p=[pn−i+1,…,pn,p1,p2,…,pn−i]p=[pn−i+1,…,pn,p1,p2,…,pn−i].
L

C. Shinju and the Lost Permutation最先出现在Python成神之路

版权声明:
作者:玉兰
链接:https://www.techfm.club/p/27461.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>