結果

問題 No.1389 Clumsy Calculation
ユーザー TomoyarnTomoyarn
提出日時 2022-01-20 20:43:00
言語 PyPy3
(7.3.15)
結果
TLE  
実行時間 -
コード長 263 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 126,336 KB
最終ジャッジ日時 2024-05-03 07:11:43
合計ジャッジ時間 6,020 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
57,216 KB
testcase_01 AC 37 ms
51,584 KB
testcase_02 AC 34 ms
51,584 KB
testcase_03 AC 54 ms
64,128 KB
testcase_04 AC 53 ms
63,744 KB
testcase_05 AC 56 ms
64,768 KB
testcase_06 AC 57 ms
64,128 KB
testcase_07 AC 52 ms
64,128 KB
testcase_08 AC 33 ms
51,328 KB
testcase_09 AC 109 ms
126,332 KB
testcase_10 AC 87 ms
126,336 KB
testcase_11 AC 52 ms
64,256 KB
testcase_12 AC 50 ms
63,104 KB
testcase_13 AC 50 ms
63,232 KB
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, X = map(int, input().split())
S = list(map(int, input().split()))
A = []
B = []
for i in range(N):
    A.append(X - S[i])
    B.append(X - (S[i] / 2))

for i in range(N):
    if B[i] + (sum(A) - A[i]) == X:
        ans = i
        break
    
print(S[ans] // 2)
0