Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "os"
- )
- func main() {
- var a, d, e, f, counter int
- var b, c string
- fmt.Scanln(&a)
- fmt.Scanln(&b)
- fmt.Scanln(&c)
- fmt.Scanln(&d)
- fmt.Scanln(&e)
- fmt.Scanln(&f)
- fmt.Scanln(&counter)
- for i := 1; i <= a; i++ {
- for j := int('A'); j <= int(b[0]); j++ {
- for k := int('a'); k <= int(c[0]); k++ {
- for l := 1; l <= d; l++ {
- for m := 1; m <= e; m++ {
- for n := 1; n <= f; n++ {
- counter--
- if counter == 0 {
- fmt.Printf("%d%c%c%d%d%d\n", i, j, k, l, m, n)
- os.Exit(0)
- }
- }
- }
- }
- }
- }
- }
- fmt.Println("No password on this position")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement