結果
問題 | No.431 死亡フラグ |
ユーザー | jiro8719 |
提出日時 | 2018-07-20 17:31:08 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 58 ms |
コンパイル使用メモリ | 11,432 KB |
実行使用メモリ | 15,304 KB |
最終ジャッジ日時 | 2023-08-27 00:16:58 |
合計ジャッジ時間 | 2,325 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
15,060 KB |
testcase_01 | AC | 77 ms
15,304 KB |
testcase_02 | AC | 77 ms
15,232 KB |
testcase_03 | AC | 78 ms
15,272 KB |
testcase_04 | AC | 77 ms
15,080 KB |
testcase_05 | AC | 75 ms
15,196 KB |
testcase_06 | AC | 82 ms
15,016 KB |
testcase_07 | AC | 76 ms
15,284 KB |
testcase_08 | AC | 76 ms
15,216 KB |
testcase_09 | AC | 73 ms
15,056 KB |
testcase_10 | AC | 72 ms
15,124 KB |
testcase_11 | AC | 75 ms
15,244 KB |
testcase_12 | AC | 77 ms
15,228 KB |
testcase_13 | AC | 77 ms
15,020 KB |
testcase_14 | AC | 79 ms
15,108 KB |
testcase_15 | AC | 76 ms
15,136 KB |
コンパイルメッセージ
Syntax OK
ソースコード
input = gets.split(" ").map{|i|i.to_i} count = 0 if input[3] == 1 puts "SURVIVED" else for j in 0..2 if input[j] == 1 count += 1 end end if count < 2 puts "SURVIVED" else puts "DEAD" end end# your code goes here