Division Remainder
Write a function remainder that takes the numbers a and b and returns the remainder of dividing a by b. The divisor b is never 0. The % operator will help — it gives the remainder of a division.
Примеры
Ввод
10, 3Вывод
1Ввод
20, 5Вывод
0Ввод
17, 4Вывод
1Нужно реализовать
def remainder(a: int, b: int) -> int:
Теги
math
Συνδεθείτε για να δείτε το ιστορικό υποβολών
ΣύνδεσηΣυνδεθείτε για να χρησιμοποιήσετε τον AI Mentor
ΣύνδεσηTests12
Visible tests
Κρυφό τεστ 7
Κρυφό τεστ 8
Κρυφό τεστ 9
Κρυφό τεστ 10
Κρυφό τεστ 11
Κρυφό τεστ 12
They run when you press "Submit" — your whole solution is checked against them so you can't hard-code answers for the visible cases.
Focus radio
Paused · SomaFM · Fluid