This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Solution-Checker | |
| def Solver(problemNr, yourResult): | |
| solutions = """1. 233168 | |
| 2. 4613732 | |
| 3. 6857 | |
| 4. 906609 | |
| 5. 232792560 | |
| 6. 25164150 | |
| 7. 104743 | |
| 8. 23514624000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import io.vertx.core.Handler | |
| import io.vertx.scala.ext.web.RoutingContext | |
| class RCHandler(op:(RoutingContext) => Unit) extends Handler[RoutingContext] { | |
| override def handle(event: RoutingContext): Unit = { | |
| op(event) | |
| } | |
| } | |
| object handler { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import io.vertx.lang.scala.ScalaVerticle | |
| import io.vertx.scala.core.Vertx | |
| import io.vertx.scala.ext.web.{Router, RoutingContext} | |
| class VerticleTest extends ScalaVerticle { | |
| override def start(): Unit = { | |
| val server = vertx.createHttpServer() | |
| val router = Router.router(vertx) | |
| /* Simple route, works like a charme. */ |