mirror of https://github.com/01-edu/public.git
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.
22 lines
512 B
22 lines
512 B
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"strconv"
|
||
|
|
||
5 years ago
|
"lib"
|
||
5 years ago
|
)
|
||
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
for i := 0; i < 10; i++ {
|
||
5 years ago
|
start := lib.RandIntBetween(-20, 20)
|
||
|
end := lib.RandIntBetween(-20, 20)
|
||
|
lib.ChallengeMain("reverserange", strconv.Itoa(start), strconv.Itoa(end))
|
||
5 years ago
|
}
|
||
5 years ago
|
lib.ChallengeMain("reverserange", "2", "1", "3")
|
||
|
lib.ChallengeMain("reverserange", "a", "1")
|
||
|
lib.ChallengeMain("reverserange", "1", "b")
|
||
|
lib.ChallengeMain("reverserange", "1", "nan")
|
||
|
lib.ChallengeMain("reverserange", "nan", "b")
|
||
|
lib.ChallengeMain("reverserange")
|
||
5 years ago
|
}
|