結果

問題 No.1389 Clumsy Calculation
ユーザー paruf4paruf4
提出日時 2021-02-12 22:02:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 108,420 KB
最終ジャッジ日時 2023-09-27 04:01:03
合計ジャッジ時間 4,896 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,256 KB
testcase_01 AC 74 ms
71,172 KB
testcase_02 AC 74 ms
71,460 KB
testcase_03 AC 79 ms
76,520 KB
testcase_04 AC 80 ms
76,588 KB
testcase_05 AC 80 ms
76,412 KB
testcase_06 AC 79 ms
76,584 KB
testcase_07 AC 80 ms
76,484 KB
testcase_08 AC 74 ms
71,268 KB
testcase_09 AC 127 ms
99,348 KB
testcase_10 AC 107 ms
104,028 KB
testcase_11 AC 77 ms
76,824 KB
testcase_12 AC 78 ms
76,444 KB
testcase_13 AC 79 ms
76,700 KB
testcase_14 AC 118 ms
108,420 KB
testcase_15 AC 118 ms
108,308 KB
testcase_16 AC 120 ms
108,292 KB
testcase_17 AC 127 ms
100,108 KB
testcase_18 AC 126 ms
100,076 KB
testcase_19 AC 127 ms
99,828 KB
testcase_20 AC 126 ms
100,072 KB
testcase_21 AC 125 ms
99,924 KB
testcase_22 AC 125 ms
99,772 KB
testcase_23 AC 126 ms
100,276 KB
testcase_24 AC 126 ms
100,296 KB
testcase_25 AC 128 ms
100,112 KB
testcase_26 AC 117 ms
107,296 KB
testcase_27 AC 119 ms
108,264 KB
testcase_28 AC 126 ms
99,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, x = map(int, input().split())
s = list(map(int, input().split()))
sums = sum(s)

for ss in s:
    if sums-ss//2 == (n-1)*x:
        print(ss//2)
        exit(0)

0