結果
問題 | No.1586 Equal Array |
ユーザー | bluemegane |
提出日時 | 2021-07-08 22:38:07 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 72 ms / 1,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 1,861 ms |
コンパイル使用メモリ | 112,704 KB |
実行使用メモリ | 40,320 KB |
最終ジャッジ日時 | 2024-07-01 12:54:12 |
合計ジャッジ時間 | 4,213 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { static void Main() { var n = int.Parse(Console.ReadLine().Trim()); string[] line = Console.ReadLine().Trim().Split(' '); var asum = 0L; for (int i = 0; i < n; i++) asum += long.Parse(line[i]); Console.WriteLine(asum % n == 0 ? "Yes" : "No"); } }