結果

問題 No.1926 Sequence of Remainders
ユーザー xsdxsd
提出日時 2022-07-17 00:45:22
言語 OCaml
(5.1.0)
結果
AC  
実行時間 104 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 2,129 ms
コンパイル使用メモリ 19,748 KB
実行使用メモリ 5,936 KB
最終ジャッジ日時 2023-09-11 11:07:25
合計ジャッジ時間 9,652 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 69 ms
5,836 KB
testcase_02 AC 68 ms
5,716 KB
testcase_03 AC 68 ms
5,936 KB
testcase_04 AC 68 ms
5,880 KB
testcase_05 AC 70 ms
5,836 KB
testcase_06 AC 100 ms
5,720 KB
testcase_07 AC 100 ms
5,716 KB
testcase_08 AC 100 ms
5,936 KB
testcase_09 AC 100 ms
5,912 KB
testcase_10 AC 100 ms
5,720 KB
testcase_11 AC 100 ms
5,716 KB
testcase_12 AC 100 ms
5,828 KB
testcase_13 AC 100 ms
5,836 KB
testcase_14 AC 101 ms
5,824 KB
testcase_15 AC 100 ms
5,820 KB
testcase_16 AC 100 ms
5,716 KB
testcase_17 AC 99 ms
5,848 KB
testcase_18 AC 99 ms
5,720 KB
testcase_19 AC 100 ms
5,844 KB
testcase_20 AC 100 ms
5,880 KB
testcase_21 AC 101 ms
5,720 KB
testcase_22 AC 100 ms
5,844 KB
testcase_23 AC 100 ms
5,716 KB
testcase_24 AC 100 ms
5,832 KB
testcase_25 AC 100 ms
5,716 KB
testcase_26 AC 100 ms
5,716 KB
testcase_27 AC 101 ms
5,920 KB
testcase_28 AC 102 ms
5,712 KB
testcase_29 AC 102 ms
5,736 KB
testcase_30 AC 101 ms
5,832 KB
testcase_31 AC 103 ms
5,716 KB
testcase_32 AC 104 ms
5,824 KB
testcase_33 AC 101 ms
5,828 KB
testcase_34 AC 101 ms
5,840 KB
testcase_35 AC 101 ms
5,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Scanf.scanf "%d" (fun t ->
    for i = 1 to t do
        Scanf.scanf " %d %d %d" (fun n m k ->
            let a0 = k mod m in
            Printf.printf "%d\n" @@ if m - n > a0 then a0 else 0
        )
    done
)
0