val result
= (for (i1
<- range
; i2
<- range
) yield i1
* i2
) .filter(i => i.toString == i.toString.reverse)
.max
println(result)
}
ICAgIG9iamVjdCBNYWluIGV4dGVuZHMgQXBwIHsKICAgICAgdmFsIHJhbmdlID0gKDAgdG8gOTk5OSkKICAgICAgdmFsIHJlc3VsdCA9IChmb3IgKGkxIDwtIHJhbmdlOyBpMiA8LSByYW5nZSkgeWllbGQgaTEgKiBpMikKICAgICAgICAuZmlsdGVyKGkgPT4gaS50b1N0cmluZyA9PSBpLnRvU3RyaW5nLnJldmVyc2UpCiAgICAgICAgLm1heAogICAgICBwcmludGxuKHJlc3VsdCkKICAgIH0=