Skip to content

Commit

Permalink
[3주차] : 허원일 - 18247 겨울왕국 티켓 예매 Bronze3 (CBNU-Nnet#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonza-hub committed Jul 15, 2022
1 parent 41737e7 commit aadafe6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 허원일/18247 겨울왕국 티켓 예매.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
n = int(input())
for _ in range(n):
N, M = map(int, input().split())
if N < 12 or M < 4: # L4 자리가 존재할 수 없는 경우
print(-1)
else:
print(M*11 + 4)

0 comments on commit aadafe6

Please sign in to comment.