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.
28 lines
491 B
28 lines
491 B
package main |
|
|
|
import "../../lib" |
|
|
|
func main() { |
|
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 { |
|
lib.ChallengeMain("rpncalc", v) |
|
} |
|
lib.ChallengeMain("rpncalc") |
|
lib.ChallengeMain("rpncalc", "1 2 * 3 * 4 +", "10 33 - 12 %") |
|
}
|
|
|