結果

問題 No.264 じゃんけん
ユーザー untarountaro
提出日時 2017-12-07 20:26:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 131 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 15,308 KB
最終ジャッジ日時 2023-08-19 12:19:56
合計ジャッジ時間 1,404 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,188 KB
testcase_01 AC 75 ms
15,052 KB
testcase_02 AC 66 ms
15,104 KB
testcase_03 AC 67 ms
15,308 KB
testcase_04 AC 68 ms
14,984 KB
testcase_05 AC 67 ms
15,108 KB
testcase_06 AC 71 ms
15,096 KB
testcase_07 AC 72 ms
14,996 KB
testcase_08 AC 69 ms
15,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b = gets.split
c = a.to_i - b.to_i
if c < 0
  c += 3
end
case c
when 0
  puts "Drew"
when 1
  puts "Lost"
when 2
  puts "Won"
end
0