← Home
For problem statement at 0-999/100-199/180-189/188/problemH.txt this is a correct solution, but verifier at 0-999/100-199/180-189/188/verifierH.go ends with All tests passed can you fix the verifier? ```go
package main

import (
	"fmt"
)

func main() {
	var s string
	fmt.Scan(&s)

	stack := []int{}

	for _, ch := range s {
		if ch >= '0' && ch <= '9' {
			stack = append(stack, int(ch-'0'))
		} else if ch == '+' {
			n := len(stack)
			a, b := stack[n-2], stack[n-1]
			stack = stack[:n-2]
			stack = append(stack, a+b)
		} else if ch == '*' {
			n := len(stack)
			a, b := stack[n-2], stack[n-1]
			stack = stack[:n-2]
			stack = append(stack, a*b)
		}
	}

	fmt.Println(stack[len(stack)-1])
}
```