結果
問題 | No.669 対決!!! 飲み比べ |
ユーザー |
|
提出日時 | 2022-10-14 04:35:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 50 ms / 2,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 395 ms |
コンパイル使用メモリ | 82,488 KB |
実行使用メモリ | 55,808 KB |
最終ジャッジ日時 | 2024-06-26 12:24:01 |
合計ジャッジ時間 | 2,650 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 25 |
ソースコード
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')