結果
| 問題 |
No.2451 Redistribute Integers
|
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2023-09-01 22:42:47 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 320 bytes |
| コンパイル時間 | 2,551 ms |
| コンパイル使用メモリ | 104,320 KB |
| 実行使用メモリ | 64,728 KB |
| 最終ジャッジ日時 | 2024-06-11 11:04:04 |
| 合計ジャッジ時間 | 6,375 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 WA * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System.Linq;
using System;
public class Hello
{
static void Main()
{
var n = int.Parse(Console.ReadLine().Trim());
string[] line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, long.Parse);
Console.WriteLine(a.Sum() % n == 0 ? "Yes" : "No");
}
}
bluemegane