結果

問題 No.431 死亡フラグ
ユーザー claw88claw88
提出日時 2016-10-14 22:23:07
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 586 bytes
コンパイル時間 4,507 ms
コンパイル使用メモリ 106,120 KB
実行使用メモリ 22,932 KB
最終ジャッジ日時 2023-08-14 10:50:41
合計ジャッジ時間 3,780 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
20,668 KB
testcase_01 AC 48 ms
20,828 KB
testcase_02 AC 49 ms
20,892 KB
testcase_03 AC 48 ms
22,932 KB
testcase_04 AC 50 ms
20,824 KB
testcase_05 AC 50 ms
20,748 KB
testcase_06 AC 51 ms
22,892 KB
testcase_07 AC 50 ms
20,752 KB
testcase_08 AC 48 ms
20,608 KB
testcase_09 AC 48 ms
18,768 KB
testcase_10 AC 49 ms
20,772 KB
testcase_11 AC 50 ms
20,644 KB
testcase_12 AC 50 ms
20,624 KB
testcase_13 AC 49 ms
22,728 KB
testcase_14 AC 49 ms
20,840 KB
testcase_15 AC 50 ms
20,796 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yuki_431
{
    class Program
    {
        static void Main(string[] args)
        {
            var t = scan;
            bool flag = false;
            if (t[3] == 1) flag = true;
            else if (t[0] + t[1] + t[2] < 2) flag = true;

            if (flag) Console.WriteLine("SURVIVED");
            else Console.WriteLine("DEAD");
        }

        static int[] scan { get { return Array.ConvertAll(Console.ReadLine().Split(), int.Parse); } }
    }
}
0