結果
問題 |
No.486 3 Straight Win(3連勝)
|
ユーザー |
![]() |
提出日時 | 2020-04-10 09:45:28 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 144 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-09-14 17:34:39 |
合計ジャッジ時間 | 2,095 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 20 |
ソースコード
s = input() i,j = None, None if 'ooo' in s: i=s.index('ooo') if 'xxx' in s: j = s.index('xxx') if (i is None) and (j is None): print('NA') elif (i is None) and j: print('West') elif i and (j is None): print('East') else: if i<j: print('East') else: print('West')