結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
![]() |
提出日時 | 2021-02-09 03:36:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 323 ms |
コンパイル使用メモリ | 81,744 KB |
実行使用メモリ | 53,832 KB |
最終ジャッジ日時 | 2024-07-06 07:42:28 |
合計ジャッジ時間 | 2,259 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 28 |
ソースコード
s = input()v = s.find("XXX")w = s.find("OOO")if v==w==-1: ans = "NA"elif v==-1: ans = "East"elif w==-1: ans = "West"else: ans = "West" if v < w else "East"print(ans)