結果
| 問題 |
No.476 正しくない平均
|
| ユーザー |
bluemegane
|
| 提出日時 | 2018-09-14 20:56:09 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 398 bytes |
| コンパイル時間 | 844 ms |
| コンパイル使用メモリ | 111,660 KB |
| 実行使用メモリ | 27,012 KB |
| 最終ジャッジ日時 | 2024-07-06 05:47:50 |
| 合計ジャッジ時間 | 2,664 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 12 RE * 14 |
コンパイルメッセージ
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
{
public static void Main()
{
string[] line = Console.ReadLine().Trim().Split(' ');
var n = int.Parse(line[0]);
var k = long.Parse(line[1]);
line = Console.ReadLine().Trim().Split(' ');
var a = Array.ConvertAll(line, int.Parse);
Console.WriteLine(n * k == a.Sum() ? "YES" : "NO");
}
}
bluemegane