結果
| 問題 | No.669 対決!!! 飲み比べ |
| コンテスト | |
| ユーザー |
ixTL255
|
| 提出日時 | 2018-07-10 23:27:29 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 22 ms / 2,000 ms |
| コード長 | 466 bytes |
| 記録 | |
| コンパイル時間 | 638 ms |
| コンパイル使用メモリ | 114,344 KB |
| 実行使用メモリ | 19,968 KB |
| 最終ジャッジ日時 | 2026-04-04 09:08:29 |
| 合計ジャッジ時間 | 2,029 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 25 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
public class Yuki669
{
public static void Main()
{
var nk = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var a = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToList();
var g = new List<int>();
foreach(var n in a) g.Add(n % (nk[1] + 1));
var ans = 0;
foreach(var n in g)
{
ans = ans ^ n;
}
Console.WriteLine(ans == 0 ? "NO" : "YES");
}
}
ixTL255