Skip to content

Instantly share code, notes, and snippets.

@modos
Created September 30, 2022 07:16
Show Gist options
  • Save modos/29142a24d09c796d420c4320cb81ee27 to your computer and use it in GitHub Desktop.
Save modos/29142a24d09c796d420c4320cb81ee27 to your computer and use it in GitHub Desktop.
معادله خط
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