結果

問題 No.810 割った余りの個数
ユーザー kabekabe
提出日時 2019-04-15 00:05:08
言語 Scala(Beta)
(3.4.0)
結果
TLE  
実行時間 -
コード長 194 bytes
コンパイル時間 10,457 ms
コンパイル使用メモリ 254,712 KB
実行使用メモリ 63,564 KB
最終ジャッジ日時 2023-09-14 15:59:36
合計ジャッジ時間 36,821 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 973 ms
62,572 KB
testcase_01 AC 968 ms
62,484 KB
testcase_02 AC 979 ms
62,664 KB
testcase_03 AC 978 ms
62,704 KB
testcase_04 AC 981 ms
62,912 KB
testcase_05 AC 997 ms
62,948 KB
testcase_06 AC 983 ms
62,944 KB
testcase_07 AC 989 ms
63,104 KB
testcase_08 AC 977 ms
62,728 KB
testcase_09 AC 992 ms
62,948 KB
testcase_10 AC 986 ms
62,728 KB
testcase_11 AC 993 ms
62,872 KB
testcase_12 AC 995 ms
62,932 KB
testcase_13 AC 986 ms
62,892 KB
testcase_14 AC 988 ms
63,564 KB
testcase_15 AC 988 ms
62,756 KB
testcase_16 AC 973 ms
62,728 KB
testcase_17 AC 988 ms
62,908 KB
testcase_18 AC 981 ms
62,752 KB
testcase_19 AC 993 ms
62,712 KB
testcase_20 TLE -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main extends App {
    val (l, r, m) = scala.io.StdIn.readLine().split(' ') match { case Array(l, r, m) => (l.toInt, r.toInt, m.toInt) }
    println((l to r).map(i => i % m).toSet.size)
}
0