結果

問題 No.810 割った余りの個数
ユーザー ひばちひばち
提出日時 2019-04-26 22:48:57
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 1,270 bytes
コンパイル時間 1,380 ms
コンパイル使用メモリ 67,980 KB
実行使用メモリ 22,920 KB
最終ジャッジ日時 2023-08-16 15:43:53
合計ジャッジ時間 4,519 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
22,772 KB
testcase_01 AC 51 ms
20,792 KB
testcase_02 AC 50 ms
20,808 KB
testcase_03 AC 50 ms
18,784 KB
testcase_04 AC 50 ms
20,756 KB
testcase_05 AC 50 ms
20,872 KB
testcase_06 AC 49 ms
20,812 KB
testcase_07 AC 50 ms
22,828 KB
testcase_08 AC 49 ms
20,812 KB
testcase_09 AC 51 ms
22,920 KB
testcase_10 AC 54 ms
22,788 KB
testcase_11 AC 51 ms
18,812 KB
testcase_12 AC 50 ms
20,716 KB
testcase_13 AC 49 ms
22,760 KB
testcase_14 AC 49 ms
20,824 KB
testcase_15 AC 52 ms
20,920 KB
testcase_16 AC 51 ms
20,836 KB
testcase_17 AC 50 ms
22,812 KB
testcase_18 AC 49 ms
20,728 KB
testcase_19 AC 49 ms
18,816 KB
testcase_20 AC 51 ms
20,776 KB
testcase_21 AC 51 ms
20,712 KB
testcase_22 AC 51 ms
20,708 KB
testcase_23 AC 52 ms
20,792 KB
testcase_24 AC 51 ms
20,736 KB
testcase_25 AC 52 ms
20,788 KB
testcase_26 AC 48 ms
20,776 KB
testcase_27 AC 52 ms
20,712 KB
testcase_28 AC 54 ms
20,920 KB
testcase_29 AC 54 ms
18,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;
using static System.Convert;
using static System.Math;
//using Debug;
//using static System.Globalization.CultureInfo;

class Program
{
    static void Main(string[] args)
    {
        Solve();
        //WriteLine(Solve());
    }
    static void Solve()
    {
        var lrm = Input.ar;
        WriteLine(Min(lrm[2], lrm[1] - lrm[0] + 1));
    }
}

public class Input
{
    public static string read => ReadLine();
    public  static int[] ar => Array.ConvertAll(read.Split(' '), int.Parse);
    public  static int num => ToInt32(read);
    public static long[] arL => Array.ConvertAll(read.Split(' '), long.Parse);
    public  static long numL => ToInt64(read);
    public static char[][] gred(int h) 
        => Enumerable.Repeat(0, h).Select(v => read.ToCharArray()).ToArray();
    public static int[][] ar2D(int num)
        => Enumerable.Repeat(0, num).Select(v => ar).ToArray();
    public static long[][] arL2D(int num)
        => Enumerable.Repeat(0, num).Select(v => arL).ToArray();
    public const long Inf = (long)1e18;
    public const double eps = 1e-6;
    public  const string Alfa = "abcdefghijklmnopqrstuvwxyz";
    public  const int MOD = 1000000007;
}
0