結果

問題 No.486 3 Straight Win(3連勝)
ユーザー matriematrie
提出日時 2020-11-26 07:14:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 117 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 29,616 KB
最終ジャッジ日時 2023-10-01 03:13:47
合計ジャッジ時間 7,202 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
29,492 KB
testcase_01 AC 130 ms
29,616 KB
testcase_02 AC 128 ms
29,604 KB
testcase_03 AC 132 ms
29,480 KB
testcase_04 AC 129 ms
29,548 KB
testcase_05 AC 130 ms
29,500 KB
testcase_06 AC 129 ms
29,580 KB
testcase_07 AC 128 ms
29,404 KB
testcase_08 AC 129 ms
29,468 KB
testcase_09 AC 129 ms
29,512 KB
testcase_10 AC 129 ms
29,552 KB
testcase_11 AC 129 ms
29,444 KB
testcase_12 AC 129 ms
29,400 KB
testcase_13 AC 126 ms
29,464 KB
testcase_14 AC 130 ms
29,368 KB
testcase_15 AC 129 ms
29,492 KB
testcase_16 AC 131 ms
29,576 KB
testcase_17 AC 130 ms
29,404 KB
testcase_18 AC 128 ms
29,468 KB
testcase_19 AC 128 ms
29,484 KB
testcase_20 AC 134 ms
29,492 KB
testcase_21 AC 132 ms
29,484 KB
testcase_22 AC 128 ms
29,484 KB
testcase_23 AC 130 ms
29,516 KB
testcase_24 AC 129 ms
29,556 KB
testcase_25 AC 127 ms
29,496 KB
testcase_26 AC 129 ms
29,456 KB
testcase_27 AC 133 ms
29,456 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
s = input()
E,W = s.find("OOO")%101, s.find("XXX")%101
print(("East","NA","West")[np.sign(E-W)+1])
0