結果

問題 No.1389 Clumsy Calculation
ユーザー titan23titan23
提出日時 2022-06-29 02:51:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 105 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 107,648 KB
最終ジャッジ日時 2024-05-01 16:49:54
合計ジャッジ時間 5,084 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
51,840 KB
testcase_01 AC 38 ms
51,968 KB
testcase_02 AC 39 ms
51,840 KB
testcase_03 AC 43 ms
58,624 KB
testcase_04 AC 43 ms
58,880 KB
testcase_05 AC 44 ms
59,264 KB
testcase_06 AC 44 ms
59,136 KB
testcase_07 AC 44 ms
58,624 KB
testcase_08 AC 40 ms
51,840 KB
testcase_09 AC 105 ms
102,936 KB
testcase_10 AC 80 ms
96,128 KB
testcase_11 AC 45 ms
58,880 KB
testcase_12 AC 45 ms
58,368 KB
testcase_13 AC 44 ms
58,880 KB
testcase_14 AC 89 ms
103,168 KB
testcase_15 AC 89 ms
103,168 KB
testcase_16 AC 90 ms
103,296 KB
testcase_17 AC 95 ms
107,472 KB
testcase_18 AC 95 ms
107,416 KB
testcase_19 AC 97 ms
107,412 KB
testcase_20 AC 95 ms
107,624 KB
testcase_21 AC 94 ms
107,264 KB
testcase_22 AC 94 ms
107,080 KB
testcase_23 AC 95 ms
107,648 KB
testcase_24 AC 95 ms
107,008 KB
testcase_25 AC 96 ms
107,392 KB
testcase_26 AC 88 ms
102,144 KB
testcase_27 AC 90 ms
103,168 KB
testcase_28 AC 96 ms
107,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda: sys.stdin.readline().rstrip()

#  -----------------------  #

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