結果
| 問題 | No.431 死亡フラグ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-01-26 13:55:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 538 bytes |
| 記録 | |
| コンパイル時間 | 916 ms |
| コンパイル使用メモリ | 114,384 KB |
| 実行使用メモリ | 19,968 KB |
| 最終ジャッジ日時 | 2026-05-29 12:02:18 |
| 合計ジャッジ時間 | 1,934 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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();
}
}