結果
問題 |
No.207 世界のなんとか
|
ユーザー |
|
提出日時 | 2020-02-07 00:24:56 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 308 ms / 5,000 ms |
コード長 | 278 bytes |
コンパイル時間 | 12,184 ms |
コンパイル使用メモリ | 439,668 KB |
実行使用メモリ | 57,068 KB |
最終ジャッジ日時 | 2024-09-25 07:05:16 |
合計ジャッジ時間 | 18,493 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 |
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used fun main(args: Array<String>) { ^ Main.kt:11:63: warning: 'appendln(Long): 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. 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) }