結果

問題 No.264 じゃんけん
ユーザー finefine
提出日時 2015-10-11 17:36:17
言語 Ruby
(3.3.0)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 124 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 11,524 KB
実行使用メモリ 15,300 KB
最終ジャッジ日時 2023-09-28 11:46:23
合計ジャッジ時間 1,594 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,160 KB
testcase_01 AC 84 ms
15,164 KB
testcase_02 AC 81 ms
15,240 KB
testcase_03 AC 81 ms
15,196 KB
testcase_04 AC 83 ms
15,300 KB
testcase_05 AC 81 ms
15,264 KB
testcase_06 AC 81 ms
15,280 KB
testcase_07 AC 83 ms
15,116 KB
testcase_08 AC 80 ms
15,244 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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