結果

問題 No.431 死亡フラグ
ユーザー chike_pluschike_plus
提出日時 2019-03-26 16:35:01
言語 F#
(F# 4.0)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 303 bytes
コンパイル時間 7,119 ms
コンパイル使用メモリ 198,192 KB
実行使用メモリ 29,184 KB
最終ジャッジ日時 2024-04-19 08:52:38
合計ジャッジ時間 8,186 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
28,928 KB
testcase_01 AC 54 ms
28,780 KB
testcase_02 AC 53 ms
28,928 KB
testcase_03 AC 53 ms
28,928 KB
testcase_04 AC 53 ms
29,184 KB
testcase_05 AC 52 ms
29,032 KB
testcase_06 AC 53 ms
28,928 KB
testcase_07 AC 53 ms
29,028 KB
testcase_08 AC 53 ms
29,184 KB
testcase_09 AC 54 ms
29,056 KB
testcase_10 AC 53 ms
28,928 KB
testcase_11 AC 54 ms
29,184 KB
testcase_12 AC 53 ms
28,800 KB
testcase_13 AC 54 ms
29,056 KB
testcase_14 AC 55 ms
28,928 KB
testcase_15 AC 54 ms
29,056 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (245 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
/home/judge/data/code/Main.fs(6,11): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '2' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj]
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let ``No.431 死亡フラグ``()=

  stdin.ReadLine().Split(' ')
  |> Array.map int
  |> fun args ->
    match args.[3] with
    | 1 -> "SURVIVED"
    | 0 -> if Array.sum [| args.[0] ; args.[1]; args.[2] |] > 1 then "DEAD"
           else "SURVIVED"
  |> stdout.WriteLine
  
``No.431 死亡フラグ``()
0