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