no way to compare when less than two revisions

تفاوت‌ها

تفاوت دو نسخهٔ متفاوت از صفحه را مشاهده می‌کنید.


courseware:python_programming:resources:answer:22 [2022/07/19 17:51] (فعلی) – ایجاد شد - ویرایش خارجی 127.0.0.1
خط 1: خط 1:
 +==== پاسخ پرسش پرش قورباغه O(1) ====
  
 +<code python line-numbers="true">
 +x, y, d = int(input()), int(input()), int(input())
 +distance = y - x
 +print(distance // d if distance % d == 0 else distance // d + 1)
 +
 +</code>