結果

問題 No.476 正しくない平均
ユーザー phsplsphspls
提出日時 2020-03-28 14:09:51
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 413 bytes
コンパイル時間 1,995 ms
コンパイル使用メモリ 102,200 KB
実行使用メモリ 23,936 KB
最終ジャッジ日時 2023-08-30 17:40:11
合計ジャッジ時間 5,344 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
21,824 KB
testcase_01 AC 58 ms
23,792 KB
testcase_02 RE -
testcase_03 AC 56 ms
19,860 KB
testcase_04 AC 57 ms
23,804 KB
testcase_05 AC 57 ms
21,844 KB
testcase_06 AC 58 ms
21,756 KB
testcase_07 AC 57 ms
23,936 KB
testcase_08 AC 57 ms
21,756 KB
testcase_09 AC 58 ms
19,840 KB
testcase_10 AC 58 ms
21,904 KB
testcase_11 AC 57 ms
21,832 KB
testcase_12 AC 58 ms
21,916 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 WA -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 58 ms
21,828 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class P0476 {
    public static void Main() {
        var na = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToList();
        var mai = na[0] * na[1];
        var a = Console.ReadLine().Trim().Split(' ').Select(int.Parse).Sum();
        if(mai == a) {
            Console.WriteLine("YES");
        } else {
            Console.WriteLine("NO");
        }
    }
}
0