結果
| 問題 | 
                            No.431 死亡フラグ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2017-01-26 13:55:48 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 27 ms / 2,000 ms | 
| コード長 | 538 bytes | 
| コンパイル時間 | 1,045 ms | 
| コンパイル使用メモリ | 106,624 KB | 
| 実行使用メモリ | 19,072 KB | 
| 最終ジャッジ日時 | 2024-12-23 11:38:27 | 
| 合計ジャッジ時間 | 2,159 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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.Linq;
using System.Collections.Generic;
class Program
{
    static void Main(string[] args)
    {
        int[] s = Console.ReadLine().Split().Select(cc => int.Parse(cc)).ToArray();
        string output = "DEAD";
        if (s[3] == 1)
        {
            output = "SURVIVED";
        }
        else
        {
            s[3] = 0;
            if (s.Sum() < 2)
            {
                output = "SURVIVED";
            }
        }
        Console.WriteLine(output);
        Console.Read();
    }
}