結果
| 問題 |
No.486 3 Straight Win(3連勝)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-05-11 13:34:34 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 97 ms / 2,000 ms |
| コード長 | 227 bytes |
| コンパイル時間 | 139 ms |
| コンパイル使用メモリ | 7,424 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-06-26 04:26:30 |
| 合計ジャッジ時間 | 3,738 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
コンパイルメッセージ
Syntax OK
ソースコード
str = gets
east = str.index("OOO")
west = str.index("XXX")
if east == nil
if west == nil
puts "NA"
else
puts "West"
end
elsif west == nil
puts "East"
elsif east < west
puts "East"
else
puts "West"
end