728x90
반응형

단순 사칙연산 문제이다.

for _ in range(int(input())):
    N, M = map(int, input().split())
    print(11*M + 4 if N >= 12 and M >= 4 else -1)
728x90
반응형

+ Recent posts