結果

問題 No.857 素振り
ユーザー naimonon77naimonon77
提出日時 2019-10-29 17:47:24
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 55 ms / 1,000 ms
コード長 1,612 bytes
コンパイル時間 1,049 ms
コンパイル使用メモリ 65,216 KB
実行使用メモリ 22,668 KB
最終ジャッジ日時 2023-10-12 23:27:35
合計ジャッジ時間 2,155 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,612 KB
testcase_01 AC 54 ms
20,676 KB
testcase_02 AC 54 ms
20,796 KB
testcase_03 AC 55 ms
22,648 KB
testcase_04 AC 54 ms
18,560 KB
testcase_05 AC 54 ms
20,608 KB
testcase_06 AC 54 ms
22,668 KB
testcase_07 AC 54 ms
20,688 KB
testcase_08 AC 54 ms
22,604 KB
testcase_09 AC 53 ms
20,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
using System.Runtime.CompilerServices;
//using System.Web.UI;
using Debug = System.Diagnostics.Debug;
// using System.Drawing.Primitives;
//using System.Drawing;
using System.Windows;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            new Solver().Solve();
        }
    }

    class Solver
    {
        public const double inf = double.PositiveInfinity;
        readonly TextWriter error = Console.Error;

        private void Rep(int n_, Action<int> action)
        {
            for (int i = 0; i < n_; i++)
            {
                action(i);
            }
        }

        public string ReadLine()
        {
            return Console.ReadLine();
        }

        public string ReadNext()
        {
            var s = "";
            while (true)
            {
                var c = Console.Read();
                if (c == ' ' || c == '\n') break;
                s += (char)c;
            }
            return s;
        }

        public long ReadLong()
        {
            return Stol(ReadNext());
        }

        public long Stol(string s)
        {
            return long.Parse(s);
        }

        long n;

        public void Solve()
        {
            long x = ReadLong();
            long y = ReadLong();
            long z = ReadLong();

            var res = z;
            if (x <= z) res--;
            if (y <= z) res--;
            Console.WriteLine(res);
        }
    }
}
0