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.
 
 
 
 

27 lines
388 B

package main
import (
"strconv"
"github.com/01-edu/public/go/tests/lib"
)
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(lib.RandIntBetween(1, 2048))})
}
for _, v := range args {
lib.ChallengeMain("ispowerof2", v...)
}
}