結果

問題 No.669 対決!!! 飲み比べ
ユーザー algon_320algon_320
提出日時 2018-03-23 22:57:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,144 bytes
コンパイル時間 667 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 8,864 KB
最終ジャッジ日時 2023-09-07 04:00:55
合計ジャッジ時間 3,218 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 20 ms
8,652 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 20 ms
8,692 KB
testcase_06 AC 21 ms
8,756 KB
testcase_07 AC 20 ms
8,620 KB
testcase_08 AC 20 ms
8,720 KB
testcase_09 WA -
testcase_10 AC 21 ms
8,744 KB
testcase_11 AC 20 ms
8,704 KB
testcase_12 AC 21 ms
8,740 KB
testcase_13 AC 21 ms
8,768 KB
testcase_14 AC 21 ms
8,652 KB
testcase_15 AC 20 ms
8,648 KB
testcase_16 AC 21 ms
8,704 KB
testcase_17 AC 20 ms
8,708 KB
testcase_18 AC 20 ms
8,652 KB
testcase_19 AC 20 ms
8,588 KB
testcase_20 AC 20 ms
8,648 KB
testcase_21 AC 20 ms
8,692 KB
testcase_22 AC 21 ms
8,592 KB
testcase_23 AC 20 ms
8,764 KB
testcase_24 AC 20 ms
8,672 KB
testcase_25 AC 20 ms
8,752 KB
testcase_26 AC 20 ms
8,660 KB
testcase_27 AC 21 ms
8,596 KB
testcase_28 AC 20 ms
8,692 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)
    if g == 0:
        print("NO")
    else:
        print("YES")


0