⌨️

[AtCoder]ABC-067|A - Sharing Cookies

2022/12/31に公開

設問ページ

提出結果

def getIntMap():
    return map(int, input().split())


def main():
    a, b = getIntMap()

    print('Possible' if a % 3 == 0 or b %
          3 == 0 or (a + b) % 3 == 0 else 'Impossible')


if __name__ == "__main__":
    main()

Discussion