⌨️
[AtCoder]ABC-309|A - Nine
設問ページ
提出結果
def getIntMap():
return map(int, input().split())
def main():
a, b = getIntMap()
print('Yes' if b - a == 1 and a % 3 != 0 else 'No')
if __name__ == "__main__":
main()
def getIntMap():
return map(int, input().split())
def main():
a, b = getIntMap()
print('Yes' if b - a == 1 and a % 3 != 0 else 'No')
if __name__ == "__main__":
main()
Discussion