結果

問題 No.57 ミリオンダイス
ユーザー javyjavy
提出日時 2015-11-11 16:02:10
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 260 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 14,475 ms
コンパイル使用メモリ 414,840 KB
実行使用メモリ 50,348 KB
最終ジャッジ日時 2023-08-12 14:27:10
合計ジャッジ時間 19,502 ms
ジャッジサーバーID
(参考情報)
judge2 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 259 ms
50,132 KB
testcase_01 AC 257 ms
50,328 KB
testcase_02 AC 254 ms
50,204 KB
testcase_03 AC 254 ms
50,104 KB
testcase_04 AC 260 ms
50,040 KB
testcase_05 AC 260 ms
50,212 KB
testcase_06 AC 256 ms
50,288 KB
testcase_07 AC 259 ms
50,260 KB
testcase_08 AC 260 ms
50,260 KB
testcase_09 AC 259 ms
50,052 KB
testcase_10 AC 256 ms
49,988 KB
testcase_11 AC 257 ms
50,348 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

package Yukicoder

/**
 * Created by hichikawa on 2015/11/11.
 */
fun main(args: Array<String>) {
    fun readLineLong() : Long {
        val str = readLine() as String
        return str.toLong()
    }

    val inputLong = readLineLong() * 7
    if (inputLong % 2.toLong() == 0.toLong()) {
        println(inputLong / 2)
    } else {
        println(inputLong / 2.0)
    }
}
0