P1866 编号 python
生活随笔
收集整理的這篇文章主要介紹了
P1866 编号 python
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
https://www.luogu.com.cn/problem/P1866
""" P1866 編號 https://www.luogu.com.cn/problem/P1866"""s=1n=int(input())a=list(map( int,input().split() ))a.sort()for i in range(n):s*=(a[i]-i)s%=1000000007 print(s)總結(jié)
以上是生活随笔為你收集整理的P1866 编号 python的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 1.4编程基础之逻辑表达式与条件分支 0
- 下一篇: 第36课 天连碧水碧连天 《小学生C++