結果

問題 No.796 well known
ユーザー 💕💖💞💕💖💞
提出日時 2019-05-06 14:07:59
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 424 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 11,100 ms
コンパイル使用メモリ 425,600 KB
実行使用メモリ 63,552 KB
最終ジャッジ日時 2024-04-30 20:28:51
合計ジャッジ時間 19,119 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 316 ms
57,156 KB
testcase_01 AC 318 ms
56,844 KB
testcase_02 AC 317 ms
56,940 KB
testcase_03 AC 315 ms
57,080 KB
testcase_04 AC 413 ms
63,292 KB
testcase_05 AC 411 ms
63,492 KB
testcase_06 AC 417 ms
63,408 KB
testcase_07 AC 370 ms
59,192 KB
testcase_08 AC 417 ms
63,552 KB
testcase_09 AC 419 ms
61,348 KB
testcase_10 AC 419 ms
63,476 KB
testcase_11 AC 373 ms
57,024 KB
testcase_12 AC 386 ms
59,088 KB
testcase_13 AC 424 ms
63,472 KB
testcase_14 AC 379 ms
59,144 KB
testcase_15 AC 384 ms
61,376 KB
testcase_16 AC 418 ms
63,468 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>){
         ^

ソースコード

diff #

fun main(args:Array<String>){
    val N = readLine()!!.toInt()
    (1..N).map {
        when {
            it != N -> 3
            else -> 1
        }
    }.map { it.toString() }.joinToString(" ").let { println(it) }
}
0