結果

問題 No.1129 Rating じゃんけん
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-08 18:40:36
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,228 KB
実行使用メモリ 15,332 KB
最終ジャッジ日時 2023-09-29 21:35:33
合計ジャッジ時間 2,300 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,096 KB
testcase_01 AC 76 ms
15,140 KB
testcase_02 AC 75 ms
15,124 KB
testcase_03 AC 79 ms
15,124 KB
testcase_04 AC 75 ms
15,332 KB
testcase_05 AC 76 ms
15,120 KB
testcase_06 AC 76 ms
15,148 KB
testcase_07 AC 75 ms
15,228 KB
testcase_08 AC 76 ms
15,312 KB
testcase_09 AC 75 ms
15,276 KB
testcase_10 AC 75 ms
15,048 KB
testcase_11 AC 76 ms
15,256 KB
testcase_12 WA -
testcase_13 AC 76 ms
15,284 KB
testcase_14 AC 76 ms
15,120 KB
testcase_15 AC 75 ms
15,272 KB
testcase_16 AC 76 ms
15,148 KB
testcase_17 AC 77 ms
15,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A,B,C,D = gets.split.map(&:to_i)
s = "???"
if A > C then
    s = "null"
elsif A < C then
    s = "tRue"
elsif B == 0 && D == 1 || B == 1 && D == 2 || B == 2 && D == 0 then
    s = "null"
elsif B == 0 && D == 2 || B == 1 && D == 0 || B == 2 && D == 1 then
    s = "tRue"
else # B == D
    s = "dRaw"
end

puts s
0