結果

問題 No.669 対決!!! 飲み比べ
ユーザー tcltktcltk
提出日時 2021-06-06 05:45:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 489 bytes
コンパイル時間 192 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 86,864 KB
最終ジャッジ日時 2024-05-02 00:26:47
合計ジャッジ時間 5,202 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 136 ms
86,528 KB
testcase_01 AC 134 ms
86,792 KB
testcase_02 AC 151 ms
86,272 KB
testcase_03 AC 137 ms
86,656 KB
testcase_04 AC 134 ms
86,784 KB
testcase_05 AC 143 ms
86,656 KB
testcase_06 AC 131 ms
86,288 KB
testcase_07 AC 132 ms
86,272 KB
testcase_08 AC 132 ms
86,356 KB
testcase_09 AC 133 ms
86,528 KB
testcase_10 AC 136 ms
86,692 KB
testcase_11 AC 129 ms
86,528 KB
testcase_12 AC 131 ms
86,656 KB
testcase_13 AC 130 ms
86,272 KB
testcase_14 AC 131 ms
86,272 KB
testcase_15 AC 131 ms
86,656 KB
testcase_16 AC 135 ms
86,272 KB
testcase_17 AC 128 ms
86,784 KB
testcase_18 AC 130 ms
86,656 KB
testcase_19 AC 131 ms
86,656 KB
testcase_20 AC 132 ms
86,656 KB
testcase_21 AC 136 ms
86,528 KB
testcase_22 AC 136 ms
86,656 KB
testcase_23 AC 134 ms
86,656 KB
testcase_24 AC 136 ms
86,848 KB
testcase_25 AC 133 ms
86,272 KB
testcase_26 AC 143 ms
86,272 KB
testcase_27 AC 143 ms
86,864 KB
testcase_28 AC 143 ms
86,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
import bisect
import heapq


def input():
    return sys.stdin.readline()[:-1]


# sys.setrecursionlimit(1000000)

# _INPUT = """1 3
# 3
# """
# sys.stdin = io.StringIO(_INPUT)

YES = 'YES'
NO = 'NO'

N, K = map(int, input().split())
A = list(map(int, input().split()))

g = 0
for a in A:
    g ^= a % (K+1)
if g == 0:
    print('NO')
else:
    print('YES')
0