結果

問題 No.646 逆ピラミッド
ユーザー 💕💖💞💕💖💞
提出日時 2018-02-15 21:11:22
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 353 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 10,641 ms
コンパイル使用メモリ 427,340 KB
実行使用メモリ 57,132 KB
最終ジャッジ日時 2024-04-30 16:48:56
合計ジャッジ時間 15,192 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 320 ms
57,104 KB
testcase_01 AC 351 ms
57,036 KB
testcase_02 AC 315 ms
57,048 KB
testcase_03 AC 348 ms
57,020 KB
testcase_04 AC 326 ms
57,108 KB
testcase_05 AC 321 ms
57,048 KB
testcase_06 AC 353 ms
57,132 KB
testcase_07 AC 321 ms
57,072 KB
testcase_08 AC 322 ms
57,128 KB
testcase_09 AC 318 ms
57,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^
Main.kt:5:19: warning: parameter 'a' is never used, could be renamed to _
    (1..it).map { a -> n.toString() }.joinToString("")
                  ^

ソースコード

diff #

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

  (n downTo 1).map { 
    (1..it).map { a -> n.toString() }.joinToString("")
  }.joinToString("\n").let { println(it) }
}
0