結果

問題 No.1389 Clumsy Calculation
ユーザー shotoyooshotoyoo
提出日時 2021-02-12 23:04:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 109 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 1,137 ms
コンパイル使用メモリ 86,836 KB
実行使用メモリ 107,576 KB
最終ジャッジ日時 2023-09-27 06:17:35
合計ジャッジ時間 4,348 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,344 KB
testcase_01 AC 62 ms
71,528 KB
testcase_02 AC 63 ms
71,408 KB
testcase_03 AC 65 ms
75,996 KB
testcase_04 AC 66 ms
76,144 KB
testcase_05 AC 72 ms
75,876 KB
testcase_06 AC 68 ms
75,800 KB
testcase_07 AC 67 ms
75,860 KB
testcase_08 AC 63 ms
71,380 KB
testcase_09 AC 109 ms
99,576 KB
testcase_10 AC 91 ms
103,792 KB
testcase_11 AC 63 ms
75,900 KB
testcase_12 AC 65 ms
75,884 KB
testcase_13 AC 64 ms
75,928 KB
testcase_14 AC 99 ms
107,552 KB
testcase_15 AC 100 ms
107,576 KB
testcase_16 AC 104 ms
107,340 KB
testcase_17 AC 104 ms
100,104 KB
testcase_18 AC 104 ms
100,064 KB
testcase_19 AC 103 ms
100,200 KB
testcase_20 AC 103 ms
100,184 KB
testcase_21 AC 104 ms
100,128 KB
testcase_22 AC 103 ms
99,936 KB
testcase_23 AC 103 ms
99,888 KB
testcase_24 AC 108 ms
100,020 KB
testcase_25 AC 106 ms
100,028 KB
testcase_26 AC 99 ms
106,980 KB
testcase_27 AC 98 ms
107,340 KB
testcase_28 AC 98 ms
100,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

sys.setrecursionlimit(2*10**5+10)
write = lambda x: sys.stdout.write(x+"\n")

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