結果

問題 No.264 じゃんけん
ユーザー 19241096kono19241096kono
提出日時 2021-06-13 17:55:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 164 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 11,396 KB
実行使用メモリ 15,276 KB
最終ジャッジ日時 2023-08-24 20:53:57
合計ジャッジ時間 1,830 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,192 KB
testcase_01 AC 78 ms
15,276 KB
testcase_02 AC 79 ms
15,244 KB
testcase_03 AC 79 ms
15,060 KB
testcase_04 AC 79 ms
15,088 KB
testcase_05 AC 79 ms
15,136 KB
testcase_06 AC 79 ms
15,088 KB
testcase_07 AC 80 ms
15,160 KB
testcase_08 AC 79 ms
15,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b = gets.chomp.split(" ").map(&:to_i)
if a == b 
    puts "Drew"
elsif (a==0 && b==1) || (a==1 && b==2) || (a==2 && b==0) 
    puts "Won"
else
    puts "Lost"
end
0