結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
![]() |
提出日時 | 2017-03-08 19:04:02 |
言語 | Ruby (3.4.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 138 bytes |
コンパイル時間 | 261 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,544 KB |
最終ジャッジ日時 | 2024-06-23 19:22:53 |
合計ジャッジ時間 | 3,712 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 RE * 17 |
コンパイルメッセージ
Syntax OK
ソースコード
s = gets.chomp puts "NA" unless s.index(/XXX/) && s.index(/OOO/) if s.index(/XXX/) > s.index(/OOO/) puts "East" else puts "West" end