結果

問題 No.1389 Clumsy Calculation
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-02-12 21:58:45
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 111 bytes
コンパイル時間 902 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 30,012 KB
最終ジャッジ日時 2023-09-27 03:55:45
合計ジャッジ時間 4,448 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,852 KB
testcase_01 AC 16 ms
7,812 KB
testcase_02 AC 15 ms
7,872 KB
testcase_03 AC 17 ms
8,252 KB
testcase_04 AC 17 ms
8,360 KB
testcase_05 AC 17 ms
8,600 KB
testcase_06 AC 17 ms
8,200 KB
testcase_07 AC 17 ms
8,556 KB
testcase_08 AC 15 ms
7,860 KB
testcase_09 AC 81 ms
29,804 KB
testcase_10 AC 51 ms
11,276 KB
testcase_11 AC 16 ms
8,300 KB
testcase_12 AC 16 ms
8,248 KB
testcase_13 AC 16 ms
8,268 KB
testcase_14 AC 121 ms
29,940 KB
testcase_15 AC 122 ms
29,900 KB
testcase_16 AC 122 ms
29,920 KB
testcase_17 AC 122 ms
29,904 KB
testcase_18 AC 126 ms
29,920 KB
testcase_19 AC 122 ms
29,812 KB
testcase_20 AC 122 ms
30,012 KB
testcase_21 AC 124 ms
29,840 KB
testcase_22 AC 123 ms
29,816 KB
testcase_23 AC 124 ms
29,836 KB
testcase_24 AC 122 ms
29,816 KB
testcase_25 AC 123 ms
30,008 KB
testcase_26 AC 120 ms
29,920 KB
testcase_27 AC 123 ms
29,808 KB
testcase_28 AC 125 ms
29,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
s = list(map(int, input().split()))
s.sort()
S = sum(s)
print(S - x * (n - 1))
0