結果

問題 No.1629 Sorting Integers (SUM of M)
ユーザー amino
提出日時 2021-07-30 22:49:40
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 16,192 KB
最終ジャッジ日時 2024-09-16 02:23:06
合計ジャッジ時間 3,765 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other TLE * 1 -- * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
c = list(map(int,input().split()))
a = 0
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)
for i in range(9):
    s //= fa(c[i])
t = int("1" * n)
print(s * a // n * t)
0