結果

問題 No.84 悪の算盤
ユーザー バカらっくバカらっく
提出日時 2019-09-26 07:59:59
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 236 bytes
コンパイル時間 13,580 ms
コンパイル使用メモリ 442,692 KB
実行使用メモリ 54,412 KB
最終ジャッジ日時 2023-10-24 15:12:48
合計ジャッジ時間 18,580 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 306 ms
54,408 KB
testcase_01 AC 303 ms
54,412 KB
testcase_02 AC 302 ms
54,400 KB
testcase_03 AC 303 ms
54,396 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 307 ms
54,396 KB
testcase_08 AC 302 ms
54,400 KB
testcase_09 AC 302 ms
54,396 KB
testcase_10 AC 306 ms
54,408 KB
testcase_11 AC 304 ms
54,408 KB
testcase_12 AC 305 ms
54,400 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
    val (r,c) = readLine()!!.split(" ").map { it.toLong() }
    var ans = r * c
    if(r == c) {
        ans -= (ans / 4)        
    } else {
        ans -= (ans / 2)
    }
    ans--
    println(ans)
}

0