結果

問題 No.669 対決!!! 飲み比べ
ユーザー tcltktcltk
提出日時 2021-06-06 05:42:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 493 bytes
コンパイル時間 716 ms
コンパイル使用メモリ 82,368 KB
実行使用メモリ 87,084 KB
最終ジャッジ日時 2024-05-02 00:24:50
合計ジャッジ時間 5,022 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 114 ms
87,044 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 123 ms
86,784 KB
testcase_06 AC 114 ms
86,556 KB
testcase_07 AC 123 ms
86,784 KB
testcase_08 AC 117 ms
87,016 KB
testcase_09 WA -
testcase_10 AC 117 ms
86,880 KB
testcase_11 AC 122 ms
86,784 KB
testcase_12 AC 116 ms
86,936 KB
testcase_13 AC 120 ms
86,784 KB
testcase_14 AC 117 ms
86,768 KB
testcase_15 AC 122 ms
86,656 KB
testcase_16 AC 118 ms
86,644 KB
testcase_17 AC 121 ms
86,728 KB
testcase_18 AC 112 ms
86,620 KB
testcase_19 AC 122 ms
86,784 KB
testcase_20 AC 115 ms
86,848 KB
testcase_21 AC 121 ms
86,656 KB
testcase_22 AC 113 ms
86,796 KB
testcase_23 AC 125 ms
86,656 KB
testcase_24 AC 118 ms
86,660 KB
testcase_25 AC 124 ms
86,784 KB
testcase_26 AC 117 ms
86,800 KB
testcase_27 AC 121 ms
86,780 KB
testcase_28 AC 116 ms
86,856 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 = """# paste here...
# """
# 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
if g == 0:
    print('NO')
else:
    print('YES')
0