結果

問題 No.431 死亡フラグ
ユーザー jousenjousen
提出日時 2016-10-14 22:25:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 66 ms / 2,000 ms
コード長 506 bytes
コンパイル時間 2,229 ms
コンパイル使用メモリ 108,120 KB
実行使用メモリ 23,952 KB
最終ジャッジ日時 2023-08-14 10:55:02
合計ジャッジ時間 4,061 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,780 KB
testcase_01 AC 59 ms
23,904 KB
testcase_02 AC 60 ms
23,952 KB
testcase_03 AC 59 ms
23,896 KB
testcase_04 AC 61 ms
21,752 KB
testcase_05 AC 66 ms
23,836 KB
testcase_06 AC 65 ms
21,904 KB
testcase_07 AC 60 ms
21,836 KB
testcase_08 AC 61 ms
23,836 KB
testcase_09 AC 60 ms
21,904 KB
testcase_10 AC 60 ms
23,900 KB
testcase_11 AC 59 ms
23,776 KB
testcase_12 AC 59 ms
23,708 KB
testcase_13 AC 60 ms
21,972 KB
testcase_14 AC 61 ms
21,860 KB
testcase_15 AC 60 ms
19,760 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.Collections;
using System.Linq;


namespace tes
{
	class contest
	{
				
		
		static void Main(string[] args)
		{

			 var input = Console.ReadLine().Split(' ').Select(int.Parse).ToList();
            int suv = input[3];
            input.RemoveAt(3);

            if(input.Count(c=>c==1)<2 || suv == 1)
            {
                Console.WriteLine("SURVIVED");
            }
            else Console.WriteLine("DEAD");


			
		}	
		
			
	}
}
0