結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 76 ms
15,380 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 77 ms
15,132 KB
testcase_05 WA -
testcase_06 AC 77 ms
15,280 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 77 ms
15,152 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 77 ms
15,076 KB
testcase_14 WA -
testcase_15 AC 77 ms
15,128 KB
testcase_16 WA -
testcase_17 AC 76 ms
15,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

A,B,C,D = gets.split.map(&:to_i)
s = "???"
if A > B then
    s = "null"
elsif A < B 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