Submission #1370529
Source Code Expand
object Main extends App { def reverse[A](list: List[A]): List[A] = list match { case Nil => Nil case x :: xs => reverse(xs) ::: List(x) } val str = io.StdIn.readLine.split(" ").toList println(reverse(str).mkString(" ")) }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | atkrym |
Language | Scala (2.11.7) |
Score | 100 |
Code Size | 262 Byte |
Status | AC |
Exec Time | 323 ms |
Memory | 25292 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | sample_01.txt, sample_02.txt, test_13_69.txt, test_16_44.txt, test_40_40.txt, test_49_31.txt, test_51_74.txt, test_83_60.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 316 ms | 25284 KB |
sample_02.txt | AC | 314 ms | 25292 KB |
test_13_69.txt | AC | 314 ms | 25148 KB |
test_16_44.txt | AC | 319 ms | 23496 KB |
test_40_40.txt | AC | 314 ms | 25284 KB |
test_49_31.txt | AC | 323 ms | 23624 KB |
test_51_74.txt | AC | 316 ms | 24900 KB |
test_83_60.txt | AC | 316 ms | 25284 KB |