MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / shou_mondai

Function shou_mondai

codes/python/Code_5_06_1.py:2–8  ·  view source on GitHub ↗
(A, B, t)

Source from the content-addressed store, hash-verified

1# 小問題 t を解く関数
2def shou_mondai(A, B, t):
3 cl = (A + t - 1) // t # A÷t の小数点以下切り上げ
4 cr = B // t # B÷t の小数点以下切り捨て
5 if cr - cl >= 1:
6 return True
7 else:
8 return False
9
10A, B = map(int, input().split())
11for i in range(1, B + 1):

Callers 1

Code_5_06_1.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected