結果

問題 No.669 対決!!! 飲み比べ
ユーザー algon_320algon_320
提出日時 2018-03-23 23:01:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 1,150 bytes
コンパイル時間 168 ms
コンパイル使用メモリ 10,968 KB
実行使用メモリ 8,848 KB
最終ジャッジ日時 2023-09-07 07:44:08
合計ジャッジ時間 2,141 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 20 ms
8,628 KB
testcase_01 AC 20 ms
8,808 KB
testcase_02 AC 21 ms
8,688 KB
testcase_03 AC 20 ms
8,736 KB
testcase_04 AC 20 ms
8,708 KB
testcase_05 AC 20 ms
8,632 KB
testcase_06 AC 20 ms
8,740 KB
testcase_07 AC 20 ms
8,744 KB
testcase_08 AC 20 ms
8,740 KB
testcase_09 AC 20 ms
8,740 KB
testcase_10 AC 20 ms
8,804 KB
testcase_11 AC 20 ms
8,816 KB
testcase_12 AC 20 ms
8,636 KB
testcase_13 AC 20 ms
8,740 KB
testcase_14 AC 20 ms
8,636 KB
testcase_15 AC 20 ms
8,828 KB
testcase_16 AC 21 ms
8,800 KB
testcase_17 AC 20 ms
8,688 KB
testcase_18 AC 20 ms
8,632 KB
testcase_19 AC 20 ms
8,804 KB
testcase_20 AC 20 ms
8,632 KB
testcase_21 AC 20 ms
8,800 KB
testcase_22 AC 20 ms
8,580 KB
testcase_23 AC 21 ms
8,848 KB
testcase_24 AC 20 ms
8,828 KB
testcase_25 AC 20 ms
8,800 KB
testcase_26 AC 20 ms
8,676 KB
testcase_27 AC 20 ms
8,632 KB
testcase_28 AC 21 ms
8,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys
from collections import deque
import heapq
from collections import Counter
import math

# ------------------------------------------------------
class IN:
    @staticmethod
    def singleInt():
        return int(input())

    @staticmethod
    def singleStr():
        return input()

    @staticmethod
    def listInt():
        return list(map(int, input().split()))

    @staticmethod
    def listStr():
        return input().split()
# ------------------------------------------------------

print = lambda s: sys.stdout.write(str(s) + "\r\n")

def contain(c, x):
    return (x in c)

def str_reverse(s):
    return s[::-1]

def ctoi(c):
    return int.from_bytes(c.encode(), byteorder='big')
def itoc(x):
    return x.to_bytes((x.bit_length() + 7) // 8, byteorder='big').decode()

INF = 1001001001001001001
MOD = 1000000007
# ------------------------------------------------------


if __name__ == '__main__':
    N, K = IN.listInt()
    A = IN.listInt()
    g = 0
    for i in range(N):
        g ^= (A[i] % (K + 1))
    if g == 0:
        print("NO")
    else:
        print("YES")


0