用Python3试了一下,最后一个RE了
查看原帖
用Python3试了一下,最后一个RE了
349780
Mr_Zero楼主2021/3/19 23:41
from itertools import permutations
n=int(input())
a=list(range(1,n+1))
b=list(permutations(a))
c=tuple(map(int,list(input())))
print(b.index(c)+1)

前九个AC显示13ms,不到4MB,最后一个RE了……

2021/3/19 23:41
加载中...