結果

問題 No.2175 Exciting Combo
ユーザー 👑 kakel-sankakel-san
提出日時 2023-09-04 20:27:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 511 bytes
コンパイル時間 1,566 ms
コンパイル使用メモリ 57,736 KB
実行使用メモリ 15,956 KB
最終ジャッジ日時 2023-09-04 20:27:09
合計ジャッジ時間 2,911 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
15,764 KB
testcase_01 AC 60 ms
15,776 KB
testcase_02 AC 60 ms
15,852 KB
testcase_03 AC 59 ms
15,792 KB
testcase_04 AC 59 ms
15,896 KB
testcase_05 AC 59 ms
15,652 KB
testcase_06 AC 60 ms
15,776 KB
testcase_07 AC 60 ms
15,748 KB
testcase_08 AC 60 ms
15,772 KB
testcase_09 AC 59 ms
15,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
    static int NN => int.Parse(ReadLine());
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var c = NList;
        WriteLine(Math.Max(c.Sum(), c[2] * 3));
    }
}
0