結果

問題 No.431 死亡フラグ
ユーザー xcd0xcd0
提出日時 2016-10-22 18:04:26
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-05-02 22:15:14
合計ジャッジ時間 2,398 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 90 ms
12,160 KB
testcase_02 WA -
testcase_03 AC 91 ms
12,160 KB
testcase_04 AC 97 ms
12,160 KB
testcase_05 AC 92 ms
12,160 KB
testcase_06 AC 92 ms
12,160 KB
testcase_07 WA -
testcase_08 AC 89 ms
12,160 KB
testcase_09 WA -
testcase_10 AC 92 ms
12,160 KB
testcase_11 AC 91 ms
12,032 KB
testcase_12 AC 90 ms
12,032 KB
testcase_13 AC 90 ms
12,160 KB
testcase_14 AC 91 ms
12,160 KB
testcase_15 AC 89 ms
12,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#! /usr/bin/ruby


f1 = ARGV[1].to_i
f2 = ARGV[2].to_i
f3 = ARGV[3].to_i
s1 = ARGV[4].to_i

if s1
  puts "SURVIVED"
elsif (f1+f2+f3) < 2
  puts "SURVIVED"
else
  puts "DEAD"
end
0