結果

問題 No.810 割った余りの個数
ユーザー bluemeganebluemegane
提出日時 2019-04-13 19:49:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 338 bytes
コンパイル時間 2,851 ms
コンパイル使用メモリ 99,384 KB
実行使用メモリ 22,832 KB
最終ジャッジ日時 2023-10-13 14:32:17
合計ジャッジ時間 6,026 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,636 KB
testcase_01 AC 57 ms
20,660 KB
testcase_02 AC 58 ms
22,644 KB
testcase_03 AC 57 ms
22,648 KB
testcase_04 AC 58 ms
22,660 KB
testcase_05 AC 57 ms
20,640 KB
testcase_06 AC 58 ms
20,584 KB
testcase_07 AC 57 ms
20,580 KB
testcase_08 AC 60 ms
20,636 KB
testcase_09 AC 58 ms
20,744 KB
testcase_10 AC 57 ms
20,640 KB
testcase_11 AC 58 ms
20,648 KB
testcase_12 AC 57 ms
20,784 KB
testcase_13 AC 57 ms
20,672 KB
testcase_14 AC 58 ms
22,832 KB
testcase_15 AC 58 ms
20,608 KB
testcase_16 AC 58 ms
22,684 KB
testcase_17 AC 58 ms
20,588 KB
testcase_18 AC 59 ms
20,588 KB
testcase_19 AC 62 ms
20,656 KB
testcase_20 AC 58 ms
18,608 KB
testcase_21 AC 58 ms
22,808 KB
testcase_22 AC 59 ms
18,596 KB
testcase_23 AC 59 ms
22,700 KB
testcase_24 AC 60 ms
22,684 KB
testcase_25 AC 58 ms
20,712 KB
testcase_26 AC 58 ms
22,624 KB
testcase_27 AC 58 ms
18,464 KB
testcase_28 AC 58 ms
20,584 KB
testcase_29 AC 59 ms
20,584 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using static System.Math;
using System;

public class Hello
{
    static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var L = int.Parse(line[0]);
        var r = int.Parse(line[1]);
        var m = int.Parse(line[2]);
        var ans = Min(m, r - L + 1);
        Console.WriteLine(ans);
    }
}
0