結果

問題 No.1629 Sorting Integers (SUM of M)
ユーザー aminoamino
提出日時 2021-07-30 22:49:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 146 ms
コンパイル使用メモリ 10,576 KB
実行使用メモリ 7,920 KB
最終ジャッジ日時 2023-10-14 07:15:22
合計ジャッジ時間 4,848 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,912 KB
testcase_01 AC 15 ms
7,788 KB
testcase_02 AC 15 ms
7,864 KB
testcase_03 WA -
testcase_04 TLE -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

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