結果

問題 No.1129 Rating じゃんけん
ユーザー yocto_sothothyocto_sothoth
提出日時 2020-08-03 23:45:47
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 339 ms
コンパイル使用メモリ 11,200 KB
実行使用メモリ 15,396 KB
最終ジャッジ日時 2023-10-11 18:44:51
合計ジャッジ時間 3,102 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,048 KB
testcase_01 AC 82 ms
15,152 KB
testcase_02 AC 82 ms
15,264 KB
testcase_03 AC 83 ms
15,136 KB
testcase_04 AC 81 ms
15,332 KB
testcase_05 AC 82 ms
15,136 KB
testcase_06 AC 81 ms
15,156 KB
testcase_07 AC 82 ms
15,144 KB
testcase_08 AC 82 ms
15,048 KB
testcase_09 AC 82 ms
15,396 KB
testcase_10 AC 84 ms
15,152 KB
testcase_11 AC 83 ms
15,124 KB
testcase_12 AC 82 ms
15,124 KB
testcase_13 AC 82 ms
15,368 KB
testcase_14 AC 82 ms
15,252 KB
testcase_15 AC 82 ms
15,192 KB
testcase_16 AC 81 ms
15,132 KB
testcase_17 AC 81 ms
15,140 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a, b, c, d = gets.split.map(&:to_i)

if a > c
  puts :null
elsif a < c
  puts :tRue
elsif b == d
  puts :Draw
elsif b == 0 && d == 1 || b == 1 && d == 2 || b == 2 && d == 0
  puts :null
else
  puts :tRue
end
0