結果
問題 | No.431 死亡フラグ |
ユーザー | fujita |
提出日時 | 2023-04-28 17:15:48 |
言語 | C# (.NET 8.0.203) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 640 bytes |
コンパイル時間 | 9,555 ms |
コンパイル使用メモリ | 143,880 KB |
実行使用メモリ | 161,932 KB |
最終ジャッジ日時 | 2023-08-11 04:03:37 |
合計ジャッジ時間 | 11,596 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 46 ms
27,588 KB |
testcase_01 | AC | 46 ms
27,808 KB |
testcase_02 | AC | 46 ms
27,908 KB |
testcase_03 | AC | 46 ms
27,832 KB |
testcase_04 | AC | 46 ms
29,940 KB |
testcase_05 | AC | 46 ms
28,100 KB |
testcase_06 | AC | 47 ms
28,060 KB |
testcase_07 | AC | 46 ms
27,744 KB |
testcase_08 | AC | 47 ms
27,868 KB |
testcase_09 | AC | 47 ms
27,876 KB |
testcase_10 | AC | 47 ms
28,236 KB |
testcase_11 | AC | 47 ms
28,160 KB |
testcase_12 | AC | 47 ms
27,904 KB |
testcase_13 | AC | 46 ms
27,820 KB |
testcase_14 | AC | 46 ms
28,044 KB |
testcase_15 | AC | 46 ms
161,932 KB |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 140 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System.Collections.Generic; using System; using System.Linq; using System.Drawing; namespace yukicoder { class Program { static void Main(string[] args) { var d = Console.ReadLine(); var b = d.Split(" "); int D1 = int.Parse(b[0]); int D2 = int.Parse(b[1]); int D3 = int.Parse(b[2]); int s = int.Parse(b[3]); if (D1 + D2 + D3 <= 1 || s == 1) { Console.WriteLine("SURVIVED"); } else { Console.WriteLine("DEAD"); } } } }