結果

問題 No.1389 Clumsy Calculation
ユーザー chineristACchineristAC
提出日時 2020-08-28 00:12:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 87,224 KB
実行使用メモリ 108,840 KB
最終ジャッジ日時 2023-09-27 00:44:31
合計ジャッジ時間 4,672 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,260 KB
testcase_01 AC 69 ms
71,312 KB
testcase_02 AC 69 ms
71,108 KB
testcase_03 AC 74 ms
76,648 KB
testcase_04 AC 74 ms
76,476 KB
testcase_05 AC 77 ms
76,308 KB
testcase_06 AC 75 ms
76,132 KB
testcase_07 AC 76 ms
76,448 KB
testcase_08 AC 69 ms
71,440 KB
testcase_09 AC 125 ms
101,432 KB
testcase_10 AC 105 ms
105,948 KB
testcase_11 AC 74 ms
76,204 KB
testcase_12 AC 75 ms
76,400 KB
testcase_13 AC 73 ms
76,348 KB
testcase_14 AC 114 ms
108,352 KB
testcase_15 AC 116 ms
108,196 KB
testcase_16 AC 115 ms
108,168 KB
testcase_17 AC 124 ms
101,568 KB
testcase_18 AC 126 ms
101,712 KB
testcase_19 AC 125 ms
101,548 KB
testcase_20 AC 124 ms
101,540 KB
testcase_21 AC 124 ms
101,716 KB
testcase_22 AC 122 ms
101,508 KB
testcase_23 AC 121 ms
101,576 KB
testcase_24 AC 121 ms
101,720 KB
testcase_25 AC 123 ms
101,312 KB
testcase_26 AC 115 ms
108,840 KB
testcase_27 AC 118 ms
108,032 KB
testcase_28 AC 124 ms
101,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

assert(2<=N<=2*10**5)
assert(0<=X<=10**9)
for i in range(N):
    assert(1<=S[i]<=10**9)

pre_A = [X-S[i] for i in range(N)]

wrong_A = sum(pre_A)

assert(-10**18<=wrong_A<=10**18)

print(X-wrong_A)
0