結果
| 問題 |
No.1629 Sorting Integers (SUM of M)
|
| コンテスト | |
| ユーザー |
amino
|
| 提出日時 | 2021-07-30 22:50:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 16,320 KB |
| 最終ジャッジ日時 | 2024-09-16 02:25:23 |
| 合計ジャッジ時間 | 3,706 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | TLE * 1 -- * 13 |
ソースコード
n = int(input())
c = list(map(int,input().split()))
a = 0
mod = 10 ** 9 + 7
def fa(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 //= fa(c[i])
s %= mod
t = int("1" * n)
print((s * a // n * t) % mod)
amino