結果

問題 No.2144 MM
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2022-12-02 21:47:22
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 281 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 105,472 KB
最終ジャッジ日時 2024-04-18 05:38:44
合計ジャッジ時間 4,810 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 41 ms
51,968 KB
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 AC 92 ms
100,352 KB
testcase_08 RE -
testcase_09 AC 91 ms
100,864 KB
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 AC 41 ms
51,584 KB
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

"""

偶奇さえ等しければいける気がしない?


"""

import sys
from sys import stdin

N,M = map(int,stdin.readline().split())

A = list(map(int,stdin.readline().split()))


Asum = sum(A)

if M % 2 == 0 and Asum % 2 == 1:
    print (-1)
    sys.exit()

assert False
0