Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "math"
- )
- func main() {
- var n, l int
- fmt.Scanln(&n)
- fmt.Scanln(&l)
- for a := 1; a <= n; a++ {
- for b := 1; b <= n; b++ {
- for c := 97; c < 97 + l; c++ {
- for d := 97; d < 97 + l; d++ {
- for e := int(math.Max(float64(a), float64(b))) + 1; e <= n; e++ {
- fmt.Printf("%d%d%c%c%d ", a, b, c, d, e)
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement