結果

問題 No.431 死亡フラグ
ユーザー phsplsphspls
提出日時 2020-03-28 14:06:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 2,239 ms
コンパイル使用メモリ 104,324 KB
実行使用メモリ 23,892 KB
最終ジャッジ日時 2023-08-30 17:39:53
合計ジャッジ時間 5,102 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
23,892 KB
testcase_01 AC 60 ms
21,752 KB
testcase_02 AC 62 ms
21,772 KB
testcase_03 AC 61 ms
23,688 KB
testcase_04 AC 61 ms
21,672 KB
testcase_05 AC 61 ms
21,768 KB
testcase_06 AC 60 ms
21,900 KB
testcase_07 AC 62 ms
21,748 KB
testcase_08 AC 62 ms
21,800 KB
testcase_09 AC 62 ms
21,704 KB
testcase_10 AC 61 ms
23,812 KB
testcase_11 AC 61 ms
21,756 KB
testcase_12 AC 62 ms
21,704 KB
testcase_13 AC 61 ms
21,716 KB
testcase_14 AC 61 ms
21,716 KB
testcase_15 AC 60 ms
21,716 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class P0431 {
    public static void Main() {
        var ddds = Console.ReadLine().Trim().Split(' ').Select(int.Parse).ToList();
        if(ddds.Take(3).Sum() < 2 || ddds[3] == 1) {
            Console.WriteLine("SURVIVED");
        } else {
            Console.WriteLine("DEAD");
        }
    }
}
0