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
PostgreSQLv16

Itt jelenik meg a kód futtatásának eredménye

Tests12
Visible tests
Rejtett teszt 7
Rejtett teszt 8
Rejtett teszt 9
Rejtett teszt 10
Rejtett teszt 11
Rejtett teszt 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