結果
| 問題 | No.207 世界のなんとか |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-07 00:24:56 |
| 言語 | Kotlin (2.3.20) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 278 bytes |
| 記録 | |
| コンパイル時間 | 7,418 ms |
| コンパイル使用メモリ | 440,032 KB |
| 最終ジャッジ日時 | 2026-04-12 11:36:43 |
| 合計ジャッジ時間 | 10,154 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
Main.kt:11:63: error: 'fun StringBuilder.appendln(value: Long): StringBuilder' is deprecated. Use appendLine instead. Note that the new method always appends the line feed character '\n' regardless of the system line separator.
if (i % 3 == 0L || i.toString().contains('3')) answer.appendln(i)
^^^^^^^^
ソースコード
fun main(args: Array<String>) {
p560()
}
fun p560() {
val (a, b) = readLine()!!.split(' ').map { it.toLong() }
val answer = StringBuilder()
for (i in a..b) {
if (i % 3 == 0L || i.toString().contains('3')) answer.appendln(i)
}
print(answer)
}