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.
31 lines
490 B
31 lines
490 B
5 years ago
|
package main
|
||
|
|
||
5 years ago
|
import (
|
||
5 years ago
|
"lib"
|
||
5 years ago
|
)
|
||
5 years ago
|
|
||
5 years ago
|
func main() {
|
||
5 years ago
|
args := []string{
|
||
|
"1 2 * 3 * 4 +",
|
||
|
"3 1 2 * * 4 %",
|
||
|
"5 10 9 / - 50 *",
|
||
|
"21 3 2 % 2 3 2 *",
|
||
|
"1 2 3 4 +",
|
||
|
"324 + 1 - 23 ",
|
||
|
"32 / 22",
|
||
|
"11 22 +",
|
||
|
"23491234 102030932 -",
|
||
|
"123 2222 /",
|
||
|
"299 255 %",
|
||
|
"15 76 *",
|
||
|
"88 67 dks -",
|
||
|
" 1 3 * 2 -",
|
||
|
}
|
||
|
|
||
|
for _, v := range args {
|
||
5 years ago
|
lib.ChallengeMain("rpncalc", v)
|
||
5 years ago
|
}
|
||
5 years ago
|
lib.ChallengeMain("rpncalc")
|
||
|
lib.ChallengeMain("rpncalc", "1 2 * 3 * 4 +", "10 33 - 12 %")
|
||
5 years ago
|
}
|