結果

問題 No.63 ポッキーゲーム
ユーザー uchida_tuchida_t
提出日時 2023-05-23 13:14:55
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 11,960 ms
コンパイル使用メモリ 419,248 KB
実行使用メモリ 54,972 KB
最終ジャッジ日時 2023-08-24 17:12:38
合計ジャッジ時間 20,193 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 286 ms
52,852 KB
testcase_01 AC 285 ms
52,744 KB
testcase_02 AC 287 ms
52,964 KB
testcase_03 WA -
testcase_04 AC 284 ms
53,260 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 286 ms
52,800 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>){
         ^
Main.kt:3:6: warning: variable 'c' is never used
	val c = a / b 
     ^

ソースコード

diff #

fun main(args: Array<String>){
    var (a,b)=readLine()!!.split(" ").map(String::toInt)
	val c = a / b 
	if (((a % b) != 0) || (((a / b) % 2) != 0)) {
        println((a / 2) * b)
    } else {
        println(0)
    }
}
0