結果

問題 No.2175 Exciting Combo
ユーザー bluemeganebluemegane
提出日時 2023-01-06 22:37:30
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 1,789 ms
コンパイル使用メモリ 67,416 KB
実行使用メモリ 23,512 KB
最終ジャッジ日時 2023-08-20 15:54:26
合計ジャッジ時間 3,225 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
21,508 KB
testcase_01 AC 50 ms
23,348 KB
testcase_02 AC 49 ms
21,616 KB
testcase_03 AC 51 ms
23,512 KB
testcase_04 AC 49 ms
21,508 KB
testcase_05 AC 49 ms
21,484 KB
testcase_06 AC 49 ms
21,476 KB
testcase_07 AC 51 ms
23,456 KB
testcase_08 AC 53 ms
19,424 KB
testcase_09 AC 56 ms
21,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using static System.Math;
using System.Collections.Generic;
using System.Linq;
using System;

public class Hello
{
    static void Main()
    {
        var a = new int[3];
        string[] line = Console.ReadLine().Trim().Split(' ');
        a[0] = int.Parse(line[0]);
        a[1] = int.Parse(line[1]);
        a[2] = int.Parse(line[2]);
        var b = int.Parse(line[3]);
        Console.WriteLine(Max(a[2] * 3, a.Sum() + b));
    }
}
0