結果
| 問題 | No.637 X: Yet Another FizzBuzz Problem | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-04-10 19:23:49 | 
| 言語 | Kotlin (2.1.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 305 ms / 1,000 ms | 
| コード長 | 402 bytes | 
| コンパイル時間 | 9,974 ms | 
| コンパイル使用メモリ | 431,288 KB | 
| 実行使用メモリ | 57,104 KB | 
| 最終ジャッジ日時 | 2024-11-20 15:48:35 | 
| 合計ジャッジ時間 | 20,440 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 30 | 
コンパイルメッセージ
Main.kt:3:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^
            
            ソースコード
package net.ipipip0129.kotlin.yukicoder
fun main(args: Array<String>) {
    val list = readLine()!!.split(" ").map { it.toInt() }
    var count = 0
    list.forEach {
        count += if (it % 5 == 0 && it % 3 == 0) {
            8
        } else if (it % 5 == 0|| it % 3 == 0) {
            4
        } else {
            it.toString().length
        }
    }
    println(count)
}
            
            
            
        