結果

問題 No.431 死亡フラグ
ユーザー minokasagominokasago
提出日時 2019-11-01 14:00:06
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 294 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 15,138 ms
コンパイル使用メモリ 410,812 KB
実行使用メモリ 52,964 KB
最終ジャッジ日時 2023-10-13 00:45:01
合計ジャッジ時間 17,363 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
52,608 KB
testcase_01 AC 286 ms
52,772 KB
testcase_02 AC 290 ms
52,704 KB
testcase_03 AC 285 ms
52,948 KB
testcase_04 AC 287 ms
52,684 KB
testcase_05 AC 289 ms
52,604 KB
testcase_06 AC 286 ms
52,728 KB
testcase_07 AC 288 ms
52,612 KB
testcase_08 AC 286 ms
52,620 KB
testcase_09 AC 291 ms
52,704 KB
testcase_10 AC 293 ms
52,676 KB
testcase_11 AC 294 ms
52,964 KB
testcase_12 AC 294 ms
52,872 KB
testcase_13 AC 289 ms
52,656 KB
testcase_14 AC 290 ms
52,728 KB
testcase_15 AC 293 ms
52,764 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import kotlin.math.*

fun main()
{
    val f = readLine()!!.split(" ").map(String::toInt)

    if (f[3] > 0 || f[0]+f[1]+f[2] < 2) {
        println("SURVIVED")
    } else {
        println("DEAD")
    }
}

0