結果

問題 No.810 割った余りの個数
ユーザー stngstng
提出日時 2022-07-06 14:37:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 127 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 87,056 KB
実行使用メモリ 71,548 KB
最終ジャッジ日時 2023-08-23 12:36:05
合計ジャッジ時間 4,372 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,188 KB
testcase_01 AC 74 ms
71,256 KB
testcase_02 WA -
testcase_03 AC 80 ms
71,320 KB
testcase_04 AC 74 ms
71,408 KB
testcase_05 AC 75 ms
71,544 KB
testcase_06 AC 76 ms
71,192 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 75 ms
71,348 KB
testcase_11 AC 73 ms
71,304 KB
testcase_12 AC 74 ms
71,536 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 75 ms
71,040 KB
testcase_17 WA -
testcase_18 AC 74 ms
71,380 KB
testcase_19 AC 73 ms
71,440 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 AC 73 ms
71,356 KB
testcase_28 WA -
testcase_29 AC 74 ms
71,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l,r,m = map(int,input().split())
if (l-r+1) >= m:
    print(m)
else:
    end = r % m
    srt = l % m
    print(abs(end-srt)+1)
0