結果

問題 No.57 ミリオンダイス
ユーザー javyjavy
提出日時 2015-11-11 16:02:10
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 265 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 10,237 ms
コンパイル使用メモリ 430,628 KB
実行使用メモリ 54,296 KB
最終ジャッジ日時 2024-04-30 06:07:42
合計ジャッジ時間 14,397 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 253 ms
54,124 KB
testcase_01 AC 245 ms
54,224 KB
testcase_02 AC 246 ms
54,244 KB
testcase_03 AC 250 ms
54,208 KB
testcase_04 AC 259 ms
54,288 KB
testcase_05 AC 252 ms
54,120 KB
testcase_06 AC 251 ms
54,296 KB
testcase_07 AC 262 ms
54,240 KB
testcase_08 AC 264 ms
54,124 KB
testcase_09 AC 257 ms
54,192 KB
testcase_10 AC 262 ms
54,032 KB
testcase_11 AC 265 ms
54,088 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