Divisible by Both

Divisibility checks are common in filters, games, and simple math rules. Write is_divisible, which checks whether n divides evenly by both x and y. Return True if both divisions have no remainder; otherwise return False.

Примеры

Ввод
3, 1, 3
Вывод
True
Ввод
12, 2, 6
Вывод
True
Ввод
100, 5, 3
Вывод
False

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

def is_divisible(n: int, x: int, y: int) -> bool:

Теги

math
PostgreSQLv16

Hier verschijnt het resultaat van je code

Visible tests
1
Input
3, 1, 3
ExpectedTrue
2
Input
12, 2, 6
ExpectedTrue
3
Input
100, 5, 3
ExpectedFalse
4
Input
12, 7, 5
ExpectedFalse
5
Input
1000, 10, 100
ExpectedTrue
6
Input
12, 2, 1
ExpectedTrue
Focus radio
Paused · SomaFM · Fluid