Skip to content

Instantly share code, notes, and snippets.

@lrlucena
Last active August 22, 2018 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrlucena/f131984593dcfbb2537d1a5ff5e66635 to your computer and use it in GitHub Desktop.
Save lrlucena/f131984593dcfbb2537d1a5ff5e66635 to your computer and use it in GitHub Desktop.
Aula 22/08/2018
a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
if a==b or a==c or b==c:
print("S")
elif a+b==c or a+c==b or b+c==a:
print("S")
else:
print("N")
a, b, c, d = map(int, input().split())
# a = int(a)
# b = int(b)
# c = int(c)
if a > b and a > c:
print(a)
elif b > c:
print(b)
else:
print(c)
a, b, c, d = map(int, input().split())
if a > b and a > c and a > d:
print(a)
elif b > c and b > d:
print(b)
elif c > d:
print(c)
else:
print(d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment