結果
| 問題 | No.486 3 Straight Win(3連勝) |
| コンテスト | |
| ユーザー |
turner18_jp
|
| 提出日時 | 2017-10-02 14:07:07 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 2,000 ms |
| + 265µs | |
| コード長 | 411 bytes |
| 記録 | |
| コンパイル時間 | 317 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,996 KB |
| 最終ジャッジ日時 | 2026-07-30 07:44:18 |
| 合計ジャッジ時間 | 4,569 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 28 |
ソースコード
s = input()
def judge(s):
count = 1
temp = s[0]
if len(s) < 3:
return 'NA'
for i in s[1:]:
if i == temp:
count += 1
if count == 3:
if i == "O":
return 'East'
else:
return 'West'
else:
temp = i
count = 1
return 'NA'
print(judge(s))
turner18_jp