結果

問題 No.1291 小手調べ
ユーザー face4face4
提出日時 2021-04-13 10:07:28
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 417 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 10,768 ms
コンパイル使用メモリ 410,716 KB
実行使用メモリ 54,312 KB
最終ジャッジ日時 2023-09-11 14:05:34
合計ジャッジ時間 13,500 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 269 ms
50,640 KB
testcase_01 AC 317 ms
52,696 KB
testcase_02 AC 320 ms
52,576 KB
testcase_03 AC 417 ms
54,312 KB
testcase_04 AC 274 ms
50,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val n = readLine()!!.toInt()
    repeat(n){
        readLine()!!.toInt().let{
            if(it == 1){
                println(10)
            }else{
                print(9)
                repeat(it-1){
                    print(0)
                }
                println()
            }
        }
    }
}
0