結果

問題 No.431 死亡フラグ
ユーザー zazaboonzazaboon
提出日時 2017-01-29 12:39:59
言語 Ruby
(3.3.0)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 138 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-08-25 14:35:54
合計ジャッジ時間 2,257 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
15,084 KB
testcase_01 AC 64 ms
15,148 KB
testcase_02 AC 65 ms
15,348 KB
testcase_03 AC 64 ms
15,144 KB
testcase_04 AC 67 ms
15,028 KB
testcase_05 AC 65 ms
15,304 KB
testcase_06 AC 65 ms
15,176 KB
testcase_07 AC 67 ms
15,116 KB
testcase_08 AC 68 ms
15,172 KB
testcase_09 AC 66 ms
15,128 KB
testcase_10 AC 65 ms
15,148 KB
testcase_11 AC 63 ms
15,296 KB
testcase_12 AC 65 ms
15,332 KB
testcase_13 AC 67 ms
15,156 KB
testcase_14 AC 65 ms
15,356 KB
testcase_15 AC 66 ms
15,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s = gets.chomp.split(" ").map(&:to_i)
if(s[3] == 1)
    puts "SURVIVED"
elsif(s.count(1) > 1)
    puts "DEAD"
else
    puts "SURVIVED"
end
0