Last active
August 22, 2018 16:55
-
-
Save lrlucena/f131984593dcfbb2537d1a5ff5e66635 to your computer and use it in GitHub Desktop.
Aula 22/08/2018
This file contains hidden or 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
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") | |
This file contains hidden or 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
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) |
This file contains hidden or 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
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