[백준] 15652 N과 M (4)
https://www.acmicpc.net/problem/15652 package main import ( "bufio" "fmt" "os" ) var writer = bufio.NewWriter(os.Stdout) var reader = bufio.NewReader(os.Stdin) func printf(f string, a ...interface{}) { fmt.Fprintf(writer, f, a...) } func scanf(f string, a ...interface{}) { fmt.Fscanf(reader, f, a...) } func solve(arr []int, s, n, m int) { if m == 0 { for _, v := range arr { printf("%d ", v) } pr..
[백준] 15651 N과 M (3)
https://www.acmicpc.net/problem/15651 package main import ( "bufio" "fmt" "os" ) var writer = bufio.NewWriter(os.Stdout) var reader = bufio.NewReader(os.Stdin) func printf(f string, a ...interface{}) { fmt.Fprintf(writer, f, a...) } func scanf(f string, a ...interface{}) { fmt.Fscanf(reader, f, a...) } func solve(arr []int, n, m int) { if m == 0 { for _, v := range arr { printf("%d ", v) } print..