Submission #1302215


Source Code Expand

fun main(args : Array<String> ) {
  val n = readLine()!!.toInt()

  val b = (1..n).map {
    readLine()!!.toList()
  }.toList()

  val a:MutableList<MutableList<Char>> = (1..n).map {
    val b:MutableList<Char> = (1..n).map { 'D'}.toMutableList()
    b
  }.toMutableList()

  (0 .. 3).map { y ->
    (0 .. 3).map { x ->
      a[x][Math.abs((y-3)%n)] = b[y][x]
    }
  }
  a.map { x->
    println(x.joinToString(""))
  }
}

Submission Info

Submission Time
Task B - 回転
User lightning
Language Kotlin (1.0.0)
Score 0
Code Size 443 Byte
Status WA
Exec Time 239 ms
Memory 33400 KB

Compile Error

Main.kt:9:9: warning: name shadowed: b
    val b:MutableList<Char> = (1..n).map { 'D'}.toMutableList()
        ^

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
AC × 1
WA × 10
Set Name Test Cases
All 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt
Case Name Status Exec Time Memory
000.txt AC 228 ms 31732 KB
001.txt WA 216 ms 29984 KB
002.txt WA 224 ms 31772 KB
003.txt WA 212 ms 33400 KB
004.txt WA 223 ms 29888 KB
005.txt WA 213 ms 29804 KB
006.txt WA 225 ms 31688 KB
007.txt WA 213 ms 30148 KB
008.txt WA 227 ms 27980 KB
009.txt WA 215 ms 28012 KB
010.txt WA 239 ms 31736 KB