結果

問題 No.1389 Clumsy Calculation
ユーザー nephrologistnephrologist
提出日時 2021-02-12 22:37:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 115 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 87,236 KB
実行使用メモリ 107,504 KB
最終ジャッジ日時 2023-09-27 05:22:03
合計ジャッジ時間 4,464 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
71,400 KB
testcase_01 AC 60 ms
71,140 KB
testcase_02 AC 58 ms
71,432 KB
testcase_03 AC 63 ms
75,936 KB
testcase_04 AC 64 ms
75,824 KB
testcase_05 AC 63 ms
75,988 KB
testcase_06 AC 65 ms
75,868 KB
testcase_07 AC 64 ms
75,896 KB
testcase_08 AC 62 ms
71,500 KB
testcase_09 AC 113 ms
99,496 KB
testcase_10 AC 92 ms
103,948 KB
testcase_11 AC 64 ms
75,992 KB
testcase_12 AC 64 ms
75,804 KB
testcase_13 AC 63 ms
75,804 KB
testcase_14 AC 96 ms
107,504 KB
testcase_15 AC 97 ms
107,476 KB
testcase_16 AC 96 ms
107,468 KB
testcase_17 AC 105 ms
100,108 KB
testcase_18 AC 111 ms
100,252 KB
testcase_19 AC 105 ms
100,052 KB
testcase_20 AC 108 ms
100,264 KB
testcase_21 AC 104 ms
100,056 KB
testcase_22 AC 107 ms
100,060 KB
testcase_23 AC 107 ms
100,264 KB
testcase_24 AC 106 ms
100,144 KB
testcase_25 AC 108 ms
100,076 KB
testcase_26 AC 98 ms
106,880 KB
testcase_27 AC 102 ms
107,464 KB
testcase_28 AC 106 ms
99,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
S = list(map(int, input().split()))

goukei = sum(S)
print(goukei - (n - 1) * x)

0