結果
問題 |
No.1629 Sorting Integers (SUM of M)
|
ユーザー |
![]() |
提出日時 | 2021-07-30 22:53:29 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 403 bytes |
コンパイル時間 | 217 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-09-16 02:33:38 |
合計ジャッジ時間 | 10,687 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | RE * 13 TLE * 1 |
ソースコード
n = int(input()) c = list(map(int,input().split())) a = 0 mod = 10 ** 9 + 7 def fa(n,mod): a = 1 for i in range(n): a *= i + 1 a %= mod return a def f(n): a = 1 for i in range(n): a *= (i + 1) return a for i in range(9): a += (i + 1) * c[i] s = fa(n,mod) for i in range(9): s //= f(c[i]) s %= mod t = int("1" * n) print((s * a // n * t) % mod)