結果

問題 No.920 あかあお
ユーザー NoNo
提出日時 2020-10-29 17:57:58
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 2,019 ms
コンパイル使用メモリ 98,904 KB
実行使用メモリ 24,952 KB
最終ジャッジ日時 2023-09-29 04:02:21
合計ジャッジ時間 3,696 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,828 KB
testcase_01 AC 60 ms
22,888 KB
testcase_02 AC 59 ms
20,948 KB
testcase_03 AC 58 ms
20,852 KB
testcase_04 AC 58 ms
20,780 KB
testcase_05 AC 60 ms
22,820 KB
testcase_06 WA -
testcase_07 AC 60 ms
22,796 KB
testcase_08 AC 59 ms
22,872 KB
testcase_09 AC 57 ms
20,828 KB
testcase_10 AC 58 ms
20,852 KB
testcase_11 AC 59 ms
20,784 KB
testcase_12 WA -
testcase_13 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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