結果

問題 No.810 割った余りの個数
ユーザー 310icecrystal310icecrystal
提出日時 2023-06-10 20:40:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 102 bytes
コンパイル時間 268 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 71,096 KB
最終ジャッジ日時 2023-08-31 00:46:09
合計ジャッジ時間 4,133 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 63 ms
71,088 KB
testcase_01 AC 61 ms
70,940 KB
testcase_02 AC 64 ms
70,816 KB
testcase_03 AC 60 ms
70,848 KB
testcase_04 AC 59 ms
70,960 KB
testcase_05 AC 59 ms
70,996 KB
testcase_06 AC 58 ms
70,712 KB
testcase_07 AC 58 ms
70,868 KB
testcase_08 AC 62 ms
70,956 KB
testcase_09 AC 62 ms
70,996 KB
testcase_10 AC 60 ms
70,920 KB
testcase_11 AC 59 ms
70,916 KB
testcase_12 AC 59 ms
70,956 KB
testcase_13 AC 57 ms
70,956 KB
testcase_14 AC 60 ms
70,960 KB
testcase_15 AC 59 ms
70,888 KB
testcase_16 AC 58 ms
70,888 KB
testcase_17 AC 60 ms
70,852 KB
testcase_18 AC 59 ms
70,908 KB
testcase_19 AC 62 ms
70,996 KB
testcase_20 AC 60 ms
70,524 KB
testcase_21 AC 60 ms
70,844 KB
testcase_22 AC 60 ms
70,648 KB
testcase_23 AC 57 ms
70,876 KB
testcase_24 AC 58 ms
71,020 KB
testcase_25 AC 59 ms
70,944 KB
testcase_26 AC 59 ms
70,948 KB
testcase_27 AC 57 ms
70,940 KB
testcase_28 AC 57 ms
71,096 KB
testcase_29 AC 56 ms
70,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

L,R,M = map(int,input().split())

if R - L >= M:
    print(M)
else:
    print((R % M - L % M) % M + 1)
0