結果
| 問題 |
No.207 世界のなんとか
|
| コンテスト | |
| ユーザー |
rutilicus
|
| 提出日時 | 2020-08-30 21:08:40 |
| 言語 | Kotlin (2.1.0) |
| 結果 |
AC
|
| 実行時間 | 312 ms / 5,000 ms |
| コード長 | 328 bytes |
| コンパイル時間 | 11,167 ms |
| コンパイル使用メモリ | 430,120 KB |
| 実行使用メモリ | 57,028 KB |
| 最終ジャッジ日時 | 2024-11-15 15:28:00 |
| 合計ジャッジ時間 | 18,099 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 |
コンパイルメッセージ
Main.kt:8:21: warning: 'appendln(Int): 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(i)
^
ソースコード
fun main() {
val builder = StringBuilder()
val (a, b) = readInputLine().split(" ").map { it.toInt() }
for (i in a..b) {
if (i % 3 == 0 || i.toString().contains('3')) {
builder.appendln(i)
}
}
print(builder.toString())
}
fun readInputLine(): String {
return readLine()!!
}
rutilicus