結果
| 問題 | No.810 割った余りの個数 |
| コンテスト | |
| ユーザー |
kuuso1
|
| 提出日時 | 2019-04-12 22:27:43 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 94 ms / 2,000 ms |
| + 837µs | |
| コード長 | 517 bytes |
| 記録 | |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 21,280 KB |
| 実行使用メモリ | 15,872 KB |
| 最終ジャッジ日時 | 2026-08-27 10:15:45 |
| 合計ジャッジ時間 | 4,826 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 30 |
ソースコード
from sys import stdin
## input functions for me
def ria(sep = ''):
if sep == '' :
return list(map(int, input().split()))
else: return list(map(int, input().split(sep)))
def rsa(sep = ''):
if sep == '' :
return input().split()
else: return input().split(sep)
def ri(): return int(input())
def rd(): return float(input())
def rs(): return input()
##
## main ##
L, R, M = map(int, input().split())
if(L == R):
print(1)
else:
print((R - L + 1) % M if (R - L + 1) < M else M)
kuuso1