結果

問題 No.920 あかあお
ユーザー cccccc
提出日時 2022-08-27 20:16:08
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 485 bytes
コンパイル時間 10,444 ms
コンパイル使用メモリ 166,460 KB
実行使用メモリ 183,868 KB
最終ジャッジ日時 2024-04-22 17:33:02
合計ジャッジ時間 12,489 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
30,048 KB
testcase_01 AC 63 ms
29,952 KB
testcase_02 AC 64 ms
29,824 KB
testcase_03 AC 63 ms
30,208 KB
testcase_04 AC 64 ms
30,072 KB
testcase_05 AC 64 ms
29,824 KB
testcase_06 WA -
testcase_07 AC 64 ms
30,336 KB
testcase_08 AC 65 ms
30,080 KB
testcase_09 AC 63 ms
30,336 KB
testcase_10 AC 65 ms
30,336 KB
testcase_11 AC 62 ms
30,080 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (102 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using System.IO;
using System.Linq;

namespace ConsoleApp4
{
    class Program
    {
        static void Main()
        {
            var N = Console.ReadLine().Split().Select(int.Parse).ToArray();
            var x = N[0];
            var y = N[1];
            var z = N[2];

            var a = (Math.Abs(x - y) - N[2]) / 2;
            var b  = Math.Abs(a);

            var max = Math.Max(x, y);
            
            Console.WriteLine(b + max);

        }
    }
}
0