結果
| 問題 | 
                            No.9002 FizzBuzz(テスト用)
                             | 
                    
| ユーザー | 
                             rutilicus
                         | 
                    
| 提出日時 | 2020-08-30 20:41:03 | 
| 言語 | Kotlin  (2.1.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 277 ms / 5,000 ms | 
| コード長 | 414 bytes | 
| コンパイル時間 | 9,973 ms | 
| コンパイル使用メモリ | 434,584 KB | 
| 実行使用メモリ | 56,976 KB | 
| 最終ジャッジ日時 | 2024-11-15 15:20:57 | 
| 合計ジャッジ時間 | 12,231 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 4 | 
コンパイルメッセージ
Main.kt:7:17: warning: 'appendln(Any?): 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(
                ^
            
            ソースコード
fun main() {
    val builder = StringBuilder()
    val n = readInputLine().toInt()
    for (i in 1..n) {
        builder.appendln(
            when {
                i % 15 == 0 -> "FizzBuzz"
                i % 5 == 0 -> "Buzz"
                i % 3 == 0 -> "Fizz"
                else -> i
            }
        )
    }
    print(builder.toString())
}
fun readInputLine(): String {
    return readLine()!!
}
            
            
            
        
            
rutilicus