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
beomsun0829 committed Jul 13, 2022
1 parent 1f81911 commit 3797e14
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions 홍범순/18247 - 겨울왕국 티켓 예매/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package main

import (
"fmt"
)

func main() {
var T int
fmt.Scan(&T)

for ; T > 0; T-- {
var N, M int
fmt.Scan(&N, &M)

//L : 12

if N < 12 || M < 4 {
fmt.Print("-1\n")
} else {
fmt.Printf("%d\n", 11*M+4)
}
}
}

0 comments on commit 3797e14

Please sign in to comment.