結果

問題 No.857 素振り
ユーザー curryudon08
提出日時 2020-06-10 22:47:36
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 1,000 ms
コード長 470 bytes
コンパイル時間 1,868 ms
コンパイル使用メモリ 107,864 KB
実行使用メモリ 18,048 KB
最終ジャッジ日時 2024-06-23 18:45:07
合計ジャッジ時間 2,690 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

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

            var a = z;
            if(x <= z){
                a -= 1;
            }
            if(y <= z){
                a -= 1;
            }

            Console.WriteLine(a);
        }
    }
}
0