본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 31090번 2023은 무엇이 특별할까?

by 현장 2024. 1. 1.

-Code

for _ in range(int(input())):
    n = input()
    res = (int(n) + 1) % int(n[-2:])
    print("Good" if res == 0 else "Bye")