結果

問題 No.143 豆
ユーザー keymoonkeymoon
提出日時 2019-02-23 16:06:14
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 499 bytes
コンパイル時間 3,243 ms
コンパイル使用メモリ 99,288 KB
実行使用メモリ 23,880 KB
最終ジャッジ日時 2023-09-30 17:27:13
合計ジャッジ時間 5,409 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 64 ms
21,756 KB
testcase_01 AC 64 ms
19,632 KB
testcase_02 AC 65 ms
21,704 KB
testcase_03 AC 64 ms
21,756 KB
testcase_04 AC 64 ms
23,880 KB
testcase_05 AC 64 ms
23,864 KB
testcase_06 AC 63 ms
21,904 KB
testcase_07 AC 64 ms
23,800 KB
testcase_08 AC 65 ms
23,724 KB
testcase_09 AC 64 ms
23,808 KB
testcase_10 AC 64 ms
21,752 KB
testcase_11 AC 63 ms
21,664 KB
testcase_12 AC 63 ms
21,784 KB
testcase_13 AC 64 ms
23,736 KB
testcase_14 AC 64 ms
19,712 KB
testcase_15 AC 63 ms
19,776 KB
testcase_16 AC 64 ms
21,904 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

class P
{
    static void Main()
    {
        var knf = Console.ReadLine().Split().Select(int.Parse).ToList();
        Console.WriteLine(Max(knf[0] * knf[1] - Console.ReadLine().Split().Select(int.Parse).Sum(), -1));
    }
}
0