← Back to List

18247번: 겨울왕국 티켓 예매 ↗

Solutions

Python 3
138 B | 138 chars
for i in range(int(input())):
    N,M=map(int,input().split())
    if N<12 or M <4:
        print(-1)
        continue
    print(11*M + 4)