結果

問題 No.1389 Clumsy Calculation
ユーザー titan23titan23
提出日時 2022-06-29 02:51:59
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 107,520 KB
最終ジャッジ日時 2023-08-14 04:00:32
合計ジャッジ時間 5,988 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,272 KB
testcase_01 AC 70 ms
71,572 KB
testcase_02 AC 74 ms
71,380 KB
testcase_03 AC 73 ms
75,816 KB
testcase_04 AC 74 ms
75,788 KB
testcase_05 AC 76 ms
75,792 KB
testcase_06 AC 74 ms
75,792 KB
testcase_07 AC 73 ms
75,796 KB
testcase_08 AC 69 ms
71,280 KB
testcase_09 AC 120 ms
99,580 KB
testcase_10 AC 101 ms
103,872 KB
testcase_11 AC 74 ms
76,152 KB
testcase_12 AC 72 ms
75,740 KB
testcase_13 AC 73 ms
76,048 KB
testcase_14 AC 110 ms
107,520 KB
testcase_15 AC 111 ms
107,388 KB
testcase_16 AC 111 ms
107,408 KB
testcase_17 AC 119 ms
100,144 KB
testcase_18 AC 119 ms
100,108 KB
testcase_19 AC 118 ms
100,140 KB
testcase_20 AC 117 ms
99,908 KB
testcase_21 AC 118 ms
100,164 KB
testcase_22 AC 118 ms
99,920 KB
testcase_23 AC 116 ms
100,016 KB
testcase_24 AC 116 ms
99,992 KB
testcase_25 AC 119 ms
100,016 KB
testcase_26 AC 109 ms
106,796 KB
testcase_27 AC 109 ms
107,392 KB
testcase_28 AC 120 ms
100,032 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