結果

問題 No.1264 010
ユーザー rutilicusrutilicus
提出日時 2020-10-24 08:12:09
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 309 ms / 1,000 ms
コード長 218 bytes
コンパイル時間 12,747 ms
コンパイル使用メモリ 428,684 KB
実行使用メモリ 56,904 KB
最終ジャッジ日時 2024-07-21 14:56:56
合計ジャッジ時間 16,480 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます
コンパイルメッセージ
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