結果
問題 |
No.264 じゃんけん
|
ユーザー |
|
提出日時 | 2016-04-05 00:18:42 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 80 ms / 5,000 ms |
コード長 | 205 bytes |
コンパイル時間 | 709 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-10-04 01:09:38 |
合計ジャッジ時間 | 1,357 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
input = gets.split(" ").map(&:to_i) myself = input[0] opponent = input[1] arr = [0, 1, 2] case arr[(opponent - myself) % 3] when 0 then puts "Drew" when 1 then puts "Won" when 2 then puts "Lost" end