From 254a9cda2cf9f2d895a813eeac97bb030b703726 Mon Sep 17 00:00:00 2001 From: kny2383 Date: Sun, 17 Jul 2022 19:49:42 +0900 Subject: [PATCH] =?UTF-8?q?[3=EC=A3=BC=EC=B0=A8]=20:=20=EA=B9=80=EB=82=98?= =?UTF-8?q?=EC=98=81=20-=2018247=20=EA=B2=A8=EC=9A=B8=EC=99=95=EA=B5=AD=20?= =?UTF-8?q?=ED=8B=B0=EC=BC=93=20=EC=98=88=EB=A7=A4=20Bronze3=20(#60)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\352\271\200\353\202\230\354\230\201/18247.py" | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 "\352\271\200\353\202\230\354\230\201/18247.py" diff --git "a/\352\271\200\353\202\230\354\230\201/18247.py" "b/\352\271\200\353\202\230\354\230\201/18247.py" new file mode 100644 index 0000000..4327ad6 --- /dev/null +++ "b/\352\271\200\353\202\230\354\230\201/18247.py" @@ -0,0 +1,5 @@ +T = int(input()) # 테스트 케이스 개수 +for _ in range(T): + N, M = map(int,input().split()) # N은 영화관 자리의 열 개수, M은 영화관 한 열에 속한 좌석 개수 + if N < 12 or M < 4: print("-1") # 제한조건 + else: print(11 * M + 4) # L4의 좌석번호 \ No newline at end of file