結果

問題 No.669 対決!!! 飲み比べ
ユーザー tcltktcltk
提出日時 2021-06-06 05:45:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 208 ms / 2,000 ms
コード長 489 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 87,148 KB
実行使用メモリ 89,732 KB
最終ジャッジ日時 2023-08-14 12:10:59
合計ジャッジ時間 7,613 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 198 ms
89,644 KB
testcase_01 AC 194 ms
89,568 KB
testcase_02 AC 194 ms
89,588 KB
testcase_03 AC 190 ms
89,568 KB
testcase_04 AC 187 ms
89,656 KB
testcase_05 AC 192 ms
89,576 KB
testcase_06 AC 189 ms
89,616 KB
testcase_07 AC 188 ms
89,368 KB
testcase_08 AC 197 ms
89,452 KB
testcase_09 AC 197 ms
89,344 KB
testcase_10 AC 197 ms
89,584 KB
testcase_11 AC 201 ms
89,452 KB
testcase_12 AC 197 ms
89,624 KB
testcase_13 AC 199 ms
89,540 KB
testcase_14 AC 203 ms
89,456 KB
testcase_15 AC 193 ms
89,384 KB
testcase_16 AC 198 ms
89,600 KB
testcase_17 AC 188 ms
89,668 KB
testcase_18 AC 199 ms
89,456 KB
testcase_19 AC 189 ms
89,484 KB
testcase_20 AC 196 ms
89,536 KB
testcase_21 AC 198 ms
89,632 KB
testcase_22 AC 197 ms
89,344 KB
testcase_23 AC 208 ms
89,376 KB
testcase_24 AC 199 ms
89,404 KB
testcase_25 AC 199 ms
89,372 KB
testcase_26 AC 198 ms
89,404 KB
testcase_27 AC 199 ms
89,612 KB
testcase_28 AC 198 ms
89,732 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