結果

問題 No.1389 Clumsy Calculation
ユーザー chineristACchineristAC
提出日時 2020-08-27 23:01:33
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 841 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 109,904 KB
最終ジャッジ日時 2023-09-27 00:43:58
合計ジャッジ時間 6,639 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,452 KB
testcase_01 AC 70 ms
71,264 KB
testcase_02 AC 70 ms
71,644 KB
testcase_03 AC 74 ms
76,160 KB
testcase_04 AC 75 ms
76,200 KB
testcase_05 AC 76 ms
76,524 KB
testcase_06 AC 76 ms
76,292 KB
testcase_07 AC 76 ms
76,280 KB
testcase_08 AC 69 ms
71,312 KB
testcase_09 AC 121 ms
101,180 KB
testcase_10 AC 102 ms
105,740 KB
testcase_11 AC 73 ms
76,176 KB
testcase_12 AC 74 ms
76,332 KB
testcase_13 AC 73 ms
76,096 KB
testcase_14 AC 113 ms
109,456 KB
testcase_15 AC 113 ms
109,404 KB
testcase_16 AC 111 ms
109,320 KB
testcase_17 AC 118 ms
101,424 KB
testcase_18 AC 118 ms
101,348 KB
testcase_19 AC 118 ms
101,408 KB
testcase_20 AC 118 ms
101,404 KB
testcase_21 AC 119 ms
101,344 KB
testcase_22 AC 119 ms
101,412 KB
testcase_23 AC 119 ms
101,440 KB
testcase_24 AC 118 ms
101,348 KB
testcase_25 AC 118 ms
101,312 KB
testcase_26 AC 109 ms
108,736 KB
testcase_27 AC 112 ms
109,904 KB
testcase_28 AC 117 ms
101,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

wrong_A = sum(pre_A)

print(X-wrong_A)
0