結果
問題 | No.486 3 Straight Win(3連勝) |
ユーザー |
|
提出日時 | 2017-02-24 22:28:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 451 bytes |
コンパイル時間 | 225 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2025-01-02 22:49:17 |
合計ジャッジ時間 | 2,231 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 9 |
ソースコード
def main():S = list(input())east = 0west = 0for s in S:if s == "O":east += 1if east == 3:print("East")returnelse:west += 1if west == 3:print("West")returnprint("NA")if __name__ == "__main__": # {{{try:import testtest.test()except:main() # }}}