結果

問題 No.1389 Clumsy Calculation
ユーザー kazu_eykazu_ey
提出日時 2021-02-13 01:38:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 30,432 KB
最終ジャッジ日時 2023-09-27 08:54:34
合計ジャッジ時間 3,923 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,092 KB
testcase_01 AC 17 ms
8,196 KB
testcase_02 AC 15 ms
8,140 KB
testcase_03 AC 16 ms
8,512 KB
testcase_04 AC 17 ms
8,508 KB
testcase_05 AC 17 ms
8,504 KB
testcase_06 AC 17 ms
8,440 KB
testcase_07 AC 16 ms
8,496 KB
testcase_08 AC 15 ms
8,056 KB
testcase_09 AC 77 ms
30,028 KB
testcase_10 AC 50 ms
11,296 KB
testcase_11 AC 16 ms
8,368 KB
testcase_12 AC 17 ms
8,340 KB
testcase_13 AC 16 ms
8,260 KB
testcase_14 AC 113 ms
29,908 KB
testcase_15 AC 108 ms
29,968 KB
testcase_16 AC 113 ms
30,080 KB
testcase_17 AC 119 ms
30,048 KB
testcase_18 AC 103 ms
30,080 KB
testcase_19 AC 116 ms
29,968 KB
testcase_20 AC 114 ms
30,004 KB
testcase_21 AC 107 ms
30,056 KB
testcase_22 AC 108 ms
29,952 KB
testcase_23 AC 123 ms
29,992 KB
testcase_24 AC 106 ms
29,988 KB
testcase_25 AC 113 ms
29,972 KB
testcase_26 AC 122 ms
30,432 KB
testcase_27 AC 106 ms
30,024 KB
testcase_28 AC 108 ms
29,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
n,x=map(int,input().split())
s=list(map(int,input().split()))
ss=sum(s)
for i in range(n):
    if s[i]%2:
        continue
    if ss-(s[i]//2)==(n-1)*x:
        exit(print(s[i]//2))
0