結果

問題 No.264 じゃんけん
ユーザー MaxMellonMaxMellon
提出日時 2015-08-12 13:54:41
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 129 bytes
コンパイル時間 52 ms
コンパイル使用メモリ 11,400 KB
実行使用メモリ 15,356 KB
最終ジャッジ日時 2023-09-25 08:26:27
合計ジャッジ時間 1,515 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 81 ms
15,048 KB
testcase_02 AC 80 ms
15,044 KB
testcase_03 AC 80 ms
15,280 KB
testcase_04 WA -
testcase_05 AC 82 ms
15,156 KB
testcase_06 AC 82 ms
15,356 KB
testcase_07 AC 81 ms
15,128 KB
testcase_08 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

left, right = gets.split.map(&:to_i)
case left - right
when 2, -1
  puts 'Won'
when 1, -2
  puts 'Lost'
when 0
  puts 'Lost'
end
0