Created
May 15, 2021 15:27
-
-
Save dongwooklee96/7733804e903c9f34e0333bfe472d1005 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
def solve(a, b): | |
return abs(a - b) | |
if __name__ == '__main__': | |
a, b = map(int, input().split()) | |
print(solve(a, b)) | |
def test_input_1(): | |
assert solve(-2, 5) == 7 | |
def test_input_2(): | |
assert solve(2, 5) == 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment