Submission #1302217
Source Code Expand
fun main(args : Array<String> ) { val n = readLine()!!.toInt() - 1 val b = (0..n).map { readLine()!!.toList() }.toList() val a:MutableList<MutableList<Char>> = (0..n).map { val b:MutableList<Char> = (0..n).map { 'D'}.toMutableList() b }.toMutableList() (0 .. n).map { y -> (0 .. n).map { x -> a[x][Math.abs((y-n)%(n+1))] = b[y][x] } } a.map { x-> println(x.joinToString("")) } }
Submission Info
Submission Time | |
---|---|
Task | B - 回転 |
User | lightning |
Language | Kotlin (1.0.0) |
Score | 100 |
Code Size | 451 Byte |
Status | AC |
Exec Time | 232 ms |
Memory | 33816 KB |
Compile Error
Main.kt:9:9: warning: name shadowed: b val b:MutableList<Char> = (0..n).map { 'D'}.toMutableList() ^
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
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 | 211 ms | 31928 KB |
001.txt | AC | 215 ms | 31740 KB |
002.txt | AC | 230 ms | 28032 KB |
003.txt | AC | 211 ms | 29756 KB |
004.txt | AC | 229 ms | 31732 KB |
005.txt | AC | 214 ms | 31804 KB |
006.txt | AC | 231 ms | 29944 KB |
007.txt | AC | 219 ms | 31648 KB |
008.txt | AC | 232 ms | 33816 KB |
009.txt | AC | 214 ms | 31768 KB |
010.txt | AC | 232 ms | 31680 KB |