ABC209 C - Not Equal から学んだ
2294 ワード
うむ。結局、階乗で行けるのでは?
樹形図としては並び替えれば行けるんじゃね?
。。行けた。
NotEqual.py
n = int(input())
C = list(map(int,input().split()))
C.sort()
score = 1
for i in range(n):
score *= C[i]-i
score %= (7+10**9)
print(score)
解説もそれっぽい。
Author And Source
この問題について(ABC209 C - Not Equal から学んだ), 我々は、より多くの情報をここで見つけました https://qiita.com/AKpirion/items/21b1aead96fec77d67ef著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .