結果

問題 No.57 ミリオンダイス
コンテスト
ユーザー javy
提出日時 2015-11-11 16:02:10
言語 Kotlin
(2.3.20)
コンパイル:
kotlinc _filename_ -include-runtime -d main.jar
実行:
kotlin main.jar
結果
AC  
実行時間 174 ms / 5,000 ms
コード長 375 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 9,718 ms
コンパイル使用メモリ 429,444 KB
実行使用メモリ 51,136 KB
最終ジャッジ日時 2026-05-14 00:26:14
合計ジャッジ時間 12,846 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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