結果

問題 No.486 3 Straight Win(3連勝)
ユーザー Takayuki HirotaTakayuki Hirota
提出日時 2021-02-03 15:38:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 905 ms
コンパイル使用メモリ 86,796 KB
実行使用メモリ 71,480 KB
最終ジャッジ日時 2023-09-12 13:19:23
合計ジャッジ時間 3,746 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,296 KB
testcase_01 AC 72 ms
71,404 KB
testcase_02 AC 73 ms
71,176 KB
testcase_03 AC 71 ms
71,256 KB
testcase_04 AC 72 ms
71,228 KB
testcase_05 AC 74 ms
71,136 KB
testcase_06 AC 72 ms
71,224 KB
testcase_07 AC 72 ms
71,200 KB
testcase_08 AC 73 ms
71,260 KB
testcase_09 AC 73 ms
71,380 KB
testcase_10 AC 72 ms
71,172 KB
testcase_11 AC 73 ms
71,220 KB
testcase_12 AC 73 ms
71,416 KB
testcase_13 AC 72 ms
71,256 KB
testcase_14 AC 72 ms
71,404 KB
testcase_15 AC 72 ms
71,220 KB
testcase_16 AC 72 ms
71,188 KB
testcase_17 AC 71 ms
71,480 KB
testcase_18 AC 72 ms
71,256 KB
testcase_19 AC 72 ms
71,180 KB
testcase_20 AC 73 ms
71,292 KB
testcase_21 AC 72 ms
71,284 KB
testcase_22 AC 72 ms
70,988 KB
testcase_23 AC 72 ms
71,144 KB
testcase_24 AC 71 ms
71,168 KB
testcase_25 AC 72 ms
71,388 KB
testcase_26 AC 71 ms
71,144 KB
testcase_27 AC 71 ms
71,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
e=0
w=0
if not 'OOO'in s and not 'XXX' in s:
	print('NA')
else:
	for i in range(2,len(s)):
		if 'OOO' in s[:i+1]:
			print('East')
			break
		elif 'XXX' in s[:i+1]:
			print('West')
			break
0