結果

問題 No.1389 Clumsy Calculation
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2021-02-12 21:27:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 254 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 87,088 KB
実行使用メモリ 107,624 KB
最終ジャッジ日時 2023-09-27 02:50:06
合計ジャッジ時間 5,301 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,404 KB
testcase_01 AC 74 ms
71,256 KB
testcase_02 AC 74 ms
71,500 KB
testcase_03 AC 75 ms
75,728 KB
testcase_04 AC 79 ms
75,796 KB
testcase_05 AC 78 ms
75,856 KB
testcase_06 AC 76 ms
75,864 KB
testcase_07 AC 78 ms
75,716 KB
testcase_08 AC 74 ms
71,296 KB
testcase_09 AC 129 ms
99,352 KB
testcase_10 AC 109 ms
103,876 KB
testcase_11 AC 75 ms
75,776 KB
testcase_12 AC 78 ms
75,828 KB
testcase_13 AC 77 ms
75,812 KB
testcase_14 AC 118 ms
107,368 KB
testcase_15 AC 117 ms
107,464 KB
testcase_16 AC 116 ms
107,624 KB
testcase_17 AC 126 ms
99,956 KB
testcase_18 AC 127 ms
100,112 KB
testcase_19 AC 126 ms
100,348 KB
testcase_20 AC 128 ms
100,176 KB
testcase_21 AC 126 ms
99,816 KB
testcase_22 AC 126 ms
99,916 KB
testcase_23 AC 127 ms
100,084 KB
testcase_24 AC 126 ms
99,940 KB
testcase_25 AC 125 ms
100,084 KB
testcase_26 AC 112 ms
106,992 KB
testcase_27 AC 114 ms
107,508 KB
testcase_28 AC 123 ms
100,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

N個に含まれる
が、答えのやつのみ1少ない

N * sum(A) - A[k]

sum(A) - A[k]
を出したい

"""

import sys
from sys import stdin

N,X = map(int,input().split())
S = list(map(int,input().split()))

ak = N*X - sum(S)
print (X - ak)
0