I had similar issue for 2nd Problem "You Can Go Your Own Way"
The code is quite straightforward, but it gives TLE for the 3rd tests set.

object Solution {
  def main(args: Array[String]): Unit = {

    val T = readInput.toInt

    for(caseNumber <- 1 to T) {
      val _ = readInput

      val LydiaPath = readInput.toList

      print(s"Case #${caseNumber}: ")

      LydiaPath.foreach(c =>
        if (c == 'E') print("S")
        else print("E")
      )

      println()
    }
  }

  private def readInput(): String = scala.io.StdIn.readLine()
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/b2cf6073-7fad-43f0-b0f5-0bb218c24da4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to