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

Čia bus kodo vykdymo rezultatas

Tests12
Visible tests
Paslėptas testas 7
Paslėptas testas 8
Paslėptas testas 9
Paslėptas testas 10
Paslėptas testas 11
Paslėptas testas 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