题解:P11003 [蓝桥杯 2024 省 Python B] 蓝桥村的真相

· · 题解

for _ in range(int(input())):
    n = int(input())
    print(n * (1 + (n % 3 == 0)))#判断