結果

問題 No.669 対決!!! 飲み比べ
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-10-14 04:35:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 1,610 ms
コンパイル使用メモリ 86,800 KB
実行使用メモリ 73,156 KB
最終ジャッジ日時 2023-09-08 19:27:59
合計ジャッジ時間 6,007 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
72,904 KB
testcase_01 AC 103 ms
73,156 KB
testcase_02 AC 103 ms
72,960 KB
testcase_03 AC 103 ms
72,872 KB
testcase_04 AC 102 ms
72,888 KB
testcase_05 AC 101 ms
72,772 KB
testcase_06 AC 102 ms
72,864 KB
testcase_07 AC 102 ms
72,812 KB
testcase_08 AC 101 ms
72,760 KB
testcase_09 AC 101 ms
72,872 KB
testcase_10 AC 100 ms
73,152 KB
testcase_11 AC 102 ms
72,988 KB
testcase_12 AC 103 ms
72,880 KB
testcase_13 AC 103 ms
73,072 KB
testcase_14 AC 102 ms
72,868 KB
testcase_15 AC 104 ms
73,008 KB
testcase_16 AC 104 ms
72,952 KB
testcase_17 AC 103 ms
72,876 KB
testcase_18 AC 102 ms
73,092 KB
testcase_19 AC 104 ms
72,904 KB
testcase_20 AC 103 ms
73,020 KB
testcase_21 AC 102 ms
73,012 KB
testcase_22 AC 102 ms
72,868 KB
testcase_23 AC 103 ms
72,596 KB
testcase_24 AC 103 ms
72,872 KB
testcase_25 AC 101 ms
72,904 KB
testcase_26 AC 101 ms
72,764 KB
testcase_27 AC 103 ms
72,736 KB
testcase_28 AC 103 ms
72,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline


N,K = map(int,input().split())
A = list(map(int,input().split()))
ans = 0
for a in A:
    
    ans ^= (a%(K+1))

if ans:
    print('YES')
else:
    print('NO')
0