Submission #174121


Source Code Expand

object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val n = sc.nextInt
    val lst = List.fill(n)(sc.nextInt)
    val ans = lst.sorted.init.last
    println(ans)
  }
}

Submission Info

Submission Time
Task B - 心配性な富豪、ファミリーレストランに行く。
User cohalz
Language Scala (2.9.1)
Score 0
Code Size 224 Byte
Status WA
Exec Time 1234 ms
Memory 43212 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
AC × 5
WA × 10
Set Name Test Cases
All random_1.txt, random_10.txt, random_2.txt, random_3.txt, random_4.txt, random_5.txt, random_6.txt, random_7.txt, random_8.txt, random_9.txt, small_1.txt, small_2.txt, small_3.txt, small_4.txt, small_5.txt
Case Name Status Exec Time Memory
random_1.txt WA 1120 ms 43076 KB
random_10.txt AC 1099 ms 43092 KB
random_2.txt WA 1076 ms 43084 KB
random_3.txt WA 1097 ms 43140 KB
random_4.txt WA 1115 ms 43132 KB
random_5.txt WA 1130 ms 43076 KB
random_6.txt WA 1103 ms 43088 KB
random_7.txt WA 1232 ms 43160 KB
random_8.txt WA 1171 ms 43212 KB
random_9.txt AC 1234 ms 43132 KB
sample_1.txt WA 1150 ms 43148 KB
sample_2.txt AC 1165 ms 43008 KB
sample_3.txt WA 1190 ms 43112 KB
small_1.txt AC 1193 ms 43056 KB
small_2.txt AC 1135 ms 42976 KB
small_3.txt AC 1213 ms 43132 KB
small_4.txt WA 1140 ms 42964 KB
small_5.txt WA 1144 ms 43004 KB