結果

問題 No.669 対決!!! 飲み比べ
ユーザー nebukuro09
提出日時 2018-04-07 23:38:47
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 669 ms
コンパイル使用メモリ 114,452 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-13 00:17:44
合計ジャッジ時間 1,590 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;

void main() {
    auto s = readln.split.map!(to!int);
    auto N = s[0];
    auto K = s[1];
    auto A = readln.split.map!(to!int).array;

    int ans = 0;
    foreach (a; A) ans ^= a % K;

    writeln(ans ? "YES" : "NO");
}
0