Division Remainder

The remainder of division is useful for checking even numbers, cycles, schedules, and many other patterns. Write a function remainder that takes two numbers a and b. Return the remainder of dividing a by b, the same way Python’s % operator works.

Примеры

Ввод
10, 3
Вывод
1
Ввод
20, 5
Вывод
0
Ввод
17, 4
Вывод
1

Нужно реализовать

def remainder(a: int, b: int) -> int:

Теги

math
PostgreSQLv16

Hier erscheint das Ergebnis der Codeausführung

Visible tests
1
Input
10, 3
Expected1
2
Input
20, 5
Expected0
3
Input
17, 4
Expected1
4
Input
1, 7
Expected1
5
Input
100, 7
Expected2
6
Input
20, 1000
Expected20
Focus radio
Paused · SomaFM · Fluid