結果

問題 No.920 あかあお
ユーザー No
提出日時 2020-10-29 17:57:58
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 865 ms
コンパイル使用メモリ 108,964 KB
実行使用メモリ 28,312 KB
最終ジャッジ日時 2024-07-21 22:36:19
合計ジャッジ時間 1,755 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace y
{
    class y
    {
        static void Main(string[] args)
        {
            var ss = Console.ReadLine().Split();
            var x = int.Parse(ss[0]);
            var y = int.Parse(ss[1]);
            var z = int.Parse(ss[2]);

            int a = Math.Abs(x - y);
            z -= a;
            Console.WriteLine(Math.Max(x, y) + (int)(z / 2));
            Console.ReadLine();
        }
    }
}
0