Submission #3856558


Source Code Expand

import scala.io.Source
import scala.collection.mutable.{ Set => MSet }

object Main {
  def main(args: Array[String]) = {
    val lines = Source.stdin.getLines.toStream

    val numLines = lines.head.toInt
    val reg = "(tokyo|kyoto)".r
    lines.drop(1).take(numLines).foreach { line =>
      println(reg.findAllIn(line).length)
    }
  }
}

Submission Info

Submission Time
Task A - 東京都
User honyacho
Language Scala (2.11.7)
Score 100
Code Size 357 Byte
Status AC
Exec Time 371 ms
Memory 26024 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 3
Set Name Test Cases
All 10_random_to_kyo.txt, 20_noised_tokyoto.txt, 99_teuchi.txt
Case Name Status Exec Time Memory
10_random_to_kyo.txt AC 363 ms 25796 KB
20_noised_tokyoto.txt AC 371 ms 26024 KB
99_teuchi.txt AC 342 ms 25028 KB