結果
| 問題 | 
                            No.431 死亡フラグ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-10-14 22:23:07 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 24 ms / 2,000 ms | 
| コード長 | 586 bytes | 
| コンパイル時間 | 3,361 ms | 
| コンパイル使用メモリ | 103,552 KB | 
| 実行使用メモリ | 17,920 KB | 
| 最終ジャッジ日時 | 2024-11-22 07:02:23 | 
| 合計ジャッジ時間 | 2,990 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 16 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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); } }
    }
}