Skip to content
Browse files

cruise-control 문제 initial commit

  • Loading branch information...
1 parent 56d6e47 commit 34e141c69d03b895ad811406efc64b41ca1e1c05 @nephilim committed May 2, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 src/main/scala/misc/codejam/sra/c/CruiseControl.scala
View
21 src/main/scala/misc/codejam/sra/c/CruiseControl.scala
@@ -0,0 +1,21 @@
+package misc.codejam.sra.c
+
+object CruiseControl extends App {
+
+ import scala.io.Source._
+
+// val caseReader = new CruiseControlCaseReader("B-small-practice.in");
+//
+// var total:Int = caseReader.headLine.toInt //테스트 케이스 총 수
+//
+// for ( caseNo <- 1 to total) {
+// val levelInfos:List[LevelInfo] = caseReader.readNext()
+// val analyzer = new CruiseAnalyzer(levelInfos);
+// val shortest = analyzer.findShortestAll2StarCount() match {
+// case -1 => "Too Bad"
+// case x@_ => x.toString
+// }
+// Console.println( "Case #%d: %s".format(caseNo, shortest))
+// }
+// caseReader.closeStream()
+}

0 comments on commit 34e141c

Please sign in to comment.
Something went wrong with that request. Please try again.