結果

問題 No.264 じゃんけん
ユーザー nonmint25shnonmint25sh
提出日時 2017-02-08 17:37:54
言語 Ruby
(3.3.0)
結果
AC  
実行時間 72 ms / 5,000 ms
コード長 103 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 11,396 KB
実行使用メモリ 15,224 KB
最終ジャッジ日時 2023-08-26 17:34:23
合計ジャッジ時間 2,385 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
15,100 KB
testcase_01 AC 71 ms
15,080 KB
testcase_02 AC 70 ms
15,016 KB
testcase_03 AC 72 ms
15,088 KB
testcase_04 AC 71 ms
15,224 KB
testcase_05 AC 70 ms
15,216 KB
testcase_06 AC 69 ms
15,088 KB
testcase_07 AC 71 ms
15,008 KB
testcase_08 AC 70 ms
15,180 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,k = gets.split.map(&:to_i)
if n==k
  puts "Drew"
else
  puts (n-k==-1 || n-k==2) ? "Won" : "Lost"
end
0