結果

問題 No.1389 Clumsy Calculation
ユーザー 👑 KazunKazun
提出日時 2021-02-12 21:34:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 508 ms
コンパイル使用メモリ 87,060 KB
実行使用メモリ 108,112 KB
最終ジャッジ日時 2023-09-27 03:07:46
合計ジャッジ時間 4,873 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,296 KB
testcase_01 AC 70 ms
71,296 KB
testcase_02 AC 70 ms
71,424 KB
testcase_03 AC 75 ms
76,092 KB
testcase_04 AC 77 ms
76,312 KB
testcase_05 AC 76 ms
76,392 KB
testcase_06 AC 78 ms
76,060 KB
testcase_07 AC 77 ms
76,412 KB
testcase_08 AC 72 ms
71,260 KB
testcase_09 AC 124 ms
99,332 KB
testcase_10 AC 104 ms
103,832 KB
testcase_11 AC 75 ms
76,312 KB
testcase_12 AC 76 ms
76,176 KB
testcase_13 AC 76 ms
76,428 KB
testcase_14 AC 116 ms
108,108 KB
testcase_15 AC 118 ms
108,088 KB
testcase_16 AC 118 ms
107,976 KB
testcase_17 AC 125 ms
99,840 KB
testcase_18 AC 124 ms
99,796 KB
testcase_19 AC 130 ms
100,128 KB
testcase_20 AC 124 ms
100,072 KB
testcase_21 AC 126 ms
100,072 KB
testcase_22 AC 126 ms
100,096 KB
testcase_23 AC 126 ms
100,008 KB
testcase_24 AC 124 ms
100,076 KB
testcase_25 AC 125 ms
100,012 KB
testcase_26 AC 115 ms
107,376 KB
testcase_27 AC 118 ms
108,112 KB
testcase_28 AC 125 ms
100,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

S_sum=sum(S)
for s in S:
    a=(2*X-s)//2
    if S_sum+a==N*X:
        print(X-a)
        exit()
0