// No.1543 [Cherry 2nd Tune A] これがプログラミングなのね package main import ( "fmt" "go/token" "go/types" "strings" ) func main() { var s, t int var c string fmt.Scan(&s, &t, &c) f := func(expr string) (types.TypeAndValue, error) { return types.Eval(token.NewFileSet(), types.NewPackage("main", "main"), token.NoPos, expr) } tv, _ := f(fmt.Sprintf("%d %s %d", s, strings.Replace(c, "=", "==", 1), t)) if tv.Value.ExactString() == "true" { fmt.Println("Yes") } else { fmt.Println("No") } }