結果
| 問題 |
No.264 じゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-03-20 15:27:07 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 128 bytes |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-10-01 09:22:44 |
| 合計ジャッジ時間 | 1,396 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 6 |
コンパイルメッセージ
Main.rb:4: warning: mismatched indentations at 'elsif' with 'if' at 2 Syntax OK
ソースコード
a, b = gets.split.map(&:to_i)
if a == b then
puts "Drew"
elsif a == (b+1)%3 then
puts "Won"
else
puts "Lose"
end