結果

問題 No.810 割った余りの個数
ユーザー kabekabe
提出日時 2019-04-15 00:36:44
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 958 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 8,457 ms
コンパイル使用メモリ 254,348 KB
実行使用メモリ 62,780 KB
最終ジャッジ日時 2023-09-14 16:00:34
合計ジャッジ時間 38,738 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 941 ms
62,352 KB
testcase_01 AC 926 ms
62,132 KB
testcase_02 AC 920 ms
62,120 KB
testcase_03 AC 906 ms
62,192 KB
testcase_04 AC 908 ms
62,408 KB
testcase_05 AC 915 ms
62,136 KB
testcase_06 AC 906 ms
62,124 KB
testcase_07 AC 913 ms
62,252 KB
testcase_08 AC 929 ms
62,260 KB
testcase_09 AC 916 ms
62,344 KB
testcase_10 AC 958 ms
62,152 KB
testcase_11 AC 954 ms
62,216 KB
testcase_12 AC 955 ms
62,300 KB
testcase_13 AC 954 ms
62,136 KB
testcase_14 AC 950 ms
62,200 KB
testcase_15 AC 927 ms
62,204 KB
testcase_16 AC 921 ms
62,068 KB
testcase_17 AC 937 ms
62,352 KB
testcase_18 AC 915 ms
62,232 KB
testcase_19 AC 923 ms
62,332 KB
testcase_20 AC 902 ms
62,204 KB
testcase_21 AC 918 ms
62,144 KB
testcase_22 AC 916 ms
62,256 KB
testcase_23 AC 927 ms
62,612 KB
testcase_24 AC 920 ms
62,196 KB
testcase_25 AC 917 ms
62,340 KB
testcase_26 AC 953 ms
62,060 KB
testcase_27 AC 913 ms
62,264 KB
testcase_28 AC 918 ms
62,236 KB
testcase_29 AC 918 ms
62,780 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import scala.io.StdIn
import scala.math.min

object Main extends App {
    val (l, r, m) = StdIn.readLine().split(' ') match {
        case Array(l, r, m) => (l.toInt, r.toInt, m.toInt)
    }
    println(min(m, r - (l - 1)))
}
0