結果

問題 No.2773 Wake up Record 1
ユーザー 2000 Ekiben2000 Ekiben
提出日時 2024-06-07 21:49:15
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 63,232 KB
最終ジャッジ日時 2024-06-07 21:49:20
合計ジャッジ時間 2,239 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
51,328 KB
testcase_01 WA -
testcase_02 AC 34 ms
51,712 KB
testcase_03 AC 39 ms
51,328 KB
testcase_04 WA -
testcase_05 AC 48 ms
62,592 KB
testcase_06 AC 46 ms
61,184 KB
testcase_07 AC 52 ms
63,104 KB
testcase_08 AC 44 ms
60,800 KB
testcase_09 AC 44 ms
61,568 KB
testcase_10 AC 44 ms
60,544 KB
testcase_11 AC 50 ms
62,464 KB
testcase_12 AC 49 ms
61,952 KB
testcase_13 AC 44 ms
59,776 KB
testcase_14 AC 47 ms
60,928 KB
testcase_15 AC 42 ms
58,112 KB
testcase_16 AC 50 ms
62,464 KB
testcase_17 AC 48 ms
61,824 KB
testcase_18 AC 47 ms
59,904 KB
testcase_19 AC 51 ms
63,232 KB
testcase_20 AC 46 ms
60,032 KB
testcase_21 AC 50 ms
62,080 KB
testcase_22 AC 50 ms
62,848 KB
testcase_23 AC 49 ms
62,848 KB
testcase_24 AC 48 ms
61,824 KB
権限があれば一括ダウンロードができます

ソースコード

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