結果

問題 No.63 ポッキーゲーム
ユーザー javyjavy
提出日時 2015-11-02 23:17:40
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 565 bytes
コンパイル時間 10,720 ms
コンパイル使用メモリ 428,976 KB
実行使用メモリ 57,104 KB
最終ジャッジ日時 2024-04-30 03:09:26
合計ジャッジ時間 18,785 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 316 ms
51,548 KB
testcase_01 AC 310 ms
51,776 KB
testcase_02 AC 308 ms
51,608 KB
testcase_03 AC 312 ms
51,796 KB
testcase_04 WA -
testcase_05 AC 313 ms
51,608 KB
testcase_06 AC 309 ms
51,740 KB
testcase_07 AC 316 ms
51,712 KB
testcase_08 AC 312 ms
51,808 KB
testcase_09 AC 309 ms
51,776 KB
testcase_10 AC 316 ms
51,680 KB
testcase_11 AC 313 ms
51,400 KB
testcase_12 AC 311 ms
51,676 KB
testcase_13 WA -
testcase_14 AC 309 ms
51,464 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 307 ms
51,648 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/02.
 */
fun main(args: Array<String>) {
    fun readLineLongArray() : List<Long> {
        val str = readLine() as String
        val arrStr = str.split(" ")
        val ret = arrStr.map { it.toLong() }
        return ret
    }
    fun readLineLong() : Long {
        val str = readLine() as String
        return str.toLong()
    }
    val inputNum = readLineLongArray()
    val pokeyLen = inputNum[0]
    val eatLen = inputNum[1]
    val eatLenTwo = eatLen * 2
    println(pokeyLen / eatLenTwo * eatLen)
}
0