結果

問題 No.2773 Wake up Record 1
ユーザー NP
提出日時 2024-06-07 21:49:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 263 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 63,104 KB
最終ジャッジ日時 2024-12-26 07:43:53
合計ジャッジ時間 2,889 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 21 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

def analyze(N, S):
    result_list = []
    for k in range(2, N + 1):
        if S[k-2] == 'x' and S[k-1] == 'o':
            result_list.append(k)
    print(len(result_list))
    if len(result_list) > 0:
        print(" ".join(map(str, result_list)))
N = int(input().strip())
S = input().strip()
analyze(N, S)
0