Created
September 30, 2022 07:16
-
-
Save modos/29142a24d09c796d420c4320cb81ee27 to your computer and use it in GitHub Desktop.
معادله خط
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inp = input() | |
nums = [int(i) for i in inp.split(" ")] | |
# 0 0 | |
# - 0 | |
# 0 - | |
# - - | |
if nums[0] == 0 and nums[1] == 0: | |
print("infinite") | |
elif nums[1] == 0: | |
if nums[0] == 0: | |
print("infinite") | |
else: | |
print("unique") | |
elif nums[0] == 0: | |
if nums[1] == 0: | |
print("infinite") | |
else: | |
print("invalid") | |
else: | |
print("unique") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment