結果
| 問題 | No.1217 せしすせそ |
| コンテスト | |
| ユーザー |
rutilicus
|
| 提出日時 | 2020-09-06 10:36:56 |
| 言語 | Kotlin (2.3.20) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 310 bytes |
| 記録 | |
| コンパイル時間 | 9,622 ms |
| コンパイル使用メモリ | 413,556 KB |
| 最終ジャッジ日時 | 2026-05-23 03:26:09 |
| 合計ジャッジ時間 | 12,437 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
Main.kt:8:21: error: 'fun StringBuilder.appendln(value: String?): 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("${i}to${s[i - 'a']}")
^^^^^^^^
ソースコード
fun main() {
val builder = StringBuilder()
val s = readInputLine()
for (i in 'a'..'z') {
if (s[i - 'a'] != i) {
builder.appendln("${i}to${s[i - 'a']}")
break
}
}
print(builder.toString())
}
fun readInputLine(): String {
return readLine()!!
}
rutilicus