結果

問題 No.1264 010
ユーザー rutilicusrutilicus
提出日時 2020-10-24 08:12:09
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 309 ms / 1,000 ms
コード長 218 bytes
コンパイル時間 14,522 ms
コンパイル使用メモリ 408,552 KB
実行使用メモリ 53,036 KB
最終ジャッジ日時 2023-09-28 20:09:50
合計ジャッジ時間 19,439 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 296 ms
52,584 KB
testcase_01 AC 297 ms
53,036 KB
testcase_02 AC 299 ms
52,780 KB
testcase_03 AC 289 ms
52,696 KB
testcase_04 AC 290 ms
52,676 KB
testcase_05 AC 292 ms
52,672 KB
testcase_06 AC 295 ms
52,820 KB
testcase_07 AC 309 ms
52,856 KB
testcase_08 AC 291 ms
52,944 KB
testcase_09 AC 292 ms
52,656 KB
testcase_10 AC 291 ms
52,724 KB
testcase_11 AC 291 ms
52,708 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:13: warning: 'appendln(String?): kotlin.text.StringBuilder /* = java.lang.StringBuilder */' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
    builder.appendln("01" + "0".repeat(n))
            ^

ソースコード

diff #

fun main() {
    val builder = StringBuilder()

    val n = readInputLine().toInt()

    builder.appendln("01" + "0".repeat(n))

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
0