You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
372 B

package main
import (
"strconv"
"github.com/01-edu/z01"
)
func main() {
args := [][]string{
{"1"},
{"2"},
{"3"},
{"4"},
{"1024"},
{"4096"},
{"8388608"},
{"1", "2"},
{},
}
for i := 0; i < 12; i++ {
args = append(args, []string{strconv.Itoa(z01.RandIntBetween(1, 2048))})
}
for _, v := range args {
z01.ChallengeMain("ispowerof2", v...)
}
}