結果
問題 | No.476 正しくない平均 |
ユーザー | fujita |
提出日時 | 2023-05-10 09:14:30 |
言語 | C# (.NET 8.0.203) |
結果 |
WA
|
実行時間 | - |
コード長 | 706 bytes |
コンパイル時間 | 13,616 ms |
コンパイル使用メモリ | 146,100 KB |
実行使用メモリ | 164,504 KB |
最終ジャッジ日時 | 2023-08-17 16:33:19 |
合計ジャッジ時間 | 16,057 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 46 ms
30,320 KB |
testcase_01 | AC | 46 ms
28,568 KB |
testcase_02 | AC | 45 ms
28,432 KB |
testcase_03 | AC | 46 ms
28,380 KB |
testcase_04 | AC | 47 ms
28,412 KB |
testcase_05 | AC | 47 ms
28,380 KB |
testcase_06 | AC | 46 ms
28,288 KB |
testcase_07 | AC | 45 ms
28,232 KB |
testcase_08 | AC | 47 ms
30,248 KB |
testcase_09 | AC | 47 ms
30,380 KB |
testcase_10 | AC | 46 ms
30,292 KB |
testcase_11 | AC | 45 ms
28,604 KB |
testcase_12 | AC | 45 ms
28,584 KB |
testcase_13 | AC | 47 ms
28,484 KB |
testcase_14 | AC | 48 ms
30,316 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | AC | 48 ms
28,320 KB |
testcase_19 | AC | 48 ms
28,208 KB |
testcase_20 | AC | 48 ms
30,268 KB |
testcase_21 | WA | - |
testcase_22 | AC | 47 ms
28,276 KB |
testcase_23 | AC | 46 ms
28,196 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 45 ms
28,440 KB |
testcase_27 | WA | - |
testcase_28 | MLE | - |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 133 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; namespace yukicoder { class Program { static void Main(string[] args) { var str = Console.ReadLine().Split(" "); var n = int.Parse(str[0]); var a = int.Parse(str[1]); var str2 = Console.ReadLine().Split(" "); int x = 0 , sum = 0; for(int i = 0; i < str2.Length; i++) { x = int.Parse(str2[i]); sum += x; } if(sum / n == a && sum % n == 0) { Console.WriteLine("YES"); } else { Console.WriteLine("NO"); } } } }