⌨️
[AtCoder]ABC-326|A - 2UP3DOWN
設問ページ
提出結果
def getIntMap():
return map(int, input().split())
def main():
x, y = getIntMap()
d = y - x
print('No' if d > 2 or d < -3 else 'Yes')
if __name__ == "__main__":
main()
def getIntMap():
return map(int, input().split())
def main():
x, y = getIntMap()
d = y - x
print('No' if d > 2 or d < -3 else 'Yes')
if __name__ == "__main__":
main()
Discussion