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.
 
 
 
 
 
 

33 lines
543 B

package main
import (
"github.com/01-edu/z01"
correct "./correct"
student "./student"
)
func main() {
type node struct {
plus int
minus int
rand int
}
table := []node{
{50, 43, 20},
{13, 13, 0},
{10, 9, 0},
{5, 9, 2},
}
for i := 0; i < 15; i++ {
table = append(table, node{
plus: z01.RandIntBetween(0, 10),
minus: z01.RandIntBetween(0, 10),
rand: z01.RandIntBetween(0, 10),
})
}
for _, arg := range table {
z01.Challenge("Nauuo", student.Nauuo, correct.Nauuo, arg.plus, arg.minus, arg.rand)
}
}