結果
| 問題 |
No.486 3 Straight Win(3連勝)
|
| コンテスト | |
| ユーザー |
もいちゃん
|
| 提出日時 | 2017-03-08 19:12:17 |
| 言語 | Ruby (3.4.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 7,680 KB |
| 実行使用メモリ | 12,544 KB |
| 最終ジャッジ日時 | 2024-06-23 19:23:49 |
| 合計ジャッジ時間 | 3,456 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 19 RE * 9 |
コンパイルメッセージ
Syntax OK
ソースコード
s = gets.chomp e, w = s.length, s.length e = s.index(/OOO/) if s.index(/OOO/) w = s.index(/XXX/) if s.index(/XXX/) if e == w puts "NA" elsif s.index(/XXX/) > s.index(/OOO/) puts "East" else puts "West" end
もいちゃん