結果
| 問題 | 
                            No.486 3 Straight Win(3連勝)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             takakin
                         | 
                    
| 提出日時 | 2020-03-29 20:31:24 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 33 ms / 2,000 ms | 
| コード長 | 239 bytes | 
| コンパイル時間 | 230 ms | 
| コンパイル使用メモリ | 11,904 KB | 
| 実行使用メモリ | 10,112 KB | 
| 最終ジャッジ日時 | 2025-01-02 15:46:40 | 
| 合計ジャッジ時間 | 2,215 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 28 | 
ソースコード
import sys
input=lambda: sys.stdin.readline().rstrip()
S=input()
e,w=0,0
for s in S:
  if s=="O":
    e+=1
    w=0
  else:
    w+=1
    e=0
  if e==3:
    print("East")
    break
  elif w==3:
    print("West")
    break
else:
  print("NA")
            
            
            
        
            
takakin