結果

問題 No.1389 Clumsy Calculation
ユーザー KudeKude
提出日時 2021-02-12 21:27:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 100 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 87,296 KB
実行使用メモリ 100,108 KB
最終ジャッジ日時 2023-09-27 02:50:25
合計ジャッジ時間 4,728 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,208 KB
testcase_01 AC 71 ms
71,052 KB
testcase_02 AC 73 ms
71,128 KB
testcase_03 AC 83 ms
75,488 KB
testcase_04 AC 77 ms
75,632 KB
testcase_05 AC 77 ms
75,672 KB
testcase_06 AC 76 ms
75,580 KB
testcase_07 AC 78 ms
75,592 KB
testcase_08 AC 71 ms
71,148 KB
testcase_09 AC 118 ms
99,036 KB
testcase_10 AC 95 ms
89,984 KB
testcase_11 AC 75 ms
75,604 KB
testcase_12 AC 75 ms
75,556 KB
testcase_13 AC 74 ms
75,588 KB
testcase_14 AC 102 ms
93,704 KB
testcase_15 AC 101 ms
93,544 KB
testcase_16 AC 101 ms
93,628 KB
testcase_17 AC 114 ms
99,992 KB
testcase_18 AC 113 ms
99,812 KB
testcase_19 AC 113 ms
100,108 KB
testcase_20 AC 113 ms
99,956 KB
testcase_21 AC 116 ms
99,812 KB
testcase_22 AC 114 ms
100,100 KB
testcase_23 AC 116 ms
100,068 KB
testcase_24 AC 115 ms
100,100 KB
testcase_25 AC 115 ms
99,944 KB
testcase_26 AC 99 ms
93,244 KB
testcase_27 AC 104 ms
93,648 KB
testcase_28 AC 118 ms
99,984 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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