Missing Triangle Angle
In every triangle, the angles always add up to 180 degrees, which makes the missing angle easy to calculate. Write a function other_angle that takes two angles a and b. Return the third angle of the triangle.
Примеры
Ввод
30, 60Вывод
90Ввод
60, 60Вывод
60Ввод
43, 78Вывод
59Нужно реализовать
def other_angle(a: int, b: int) -> int:
Теги
math
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit seVisible tests
1
Input
30, 60Expected
902
Input
60, 60Expected
603
Input
43, 78Expected
594
Input
10, 20Expected
1505
Input
90, 45Expected
456
Input
100, 78Expected
2Focus radio
Paused · SomaFM · Fluid