Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var a, e, n int
- var x, y, z string
- fmt.Scanln(&a)
- fmt.Scanln(&x)
- fmt.Scanln(&y)
- fmt.Scanln(&z)
- fmt.Scanln(&e)
- fmt.Scanln(&n)
- b := int(x[0])
- c := int(y[0])
- d := int(z[0])
- for i := a; i <= 99; i++ {
- for j := b; j <= 'Z'; j++ {
- for k := c; k <= 'z'; k++ {
- for l := d; l <= 'Z'; l++ {
- for m := e; m >= 10; m-- {
- if i % 10 == 2 && m % 10 == 5 {
- n--
- if n == 0 {
- fmt.Printf("%d%c%c%c%d\n", i, j, k, l, m)
- return
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement