forked from CBNU-Nnet/2022-algorithm-study
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[3주차] : 홍범순 - 18247 겨울왕국 티켓 예매 Bronze3 (CBNU-Nnet#60)
- Loading branch information
beomsun0829
committed
Jul 13, 2022
1 parent
1f81911
commit 3797e14
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} | ||
} |