結果

問題 No.2773 Wake up Record 1
ユーザー koukikawagoekoukikawagoe
提出日時 2024-06-07 21:58:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 73,532 KB
最終ジャッジ日時 2024-06-07 21:59:00
合計ジャッジ時間 2,260 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,380 KB
testcase_01 AC 36 ms
52,332 KB
testcase_02 AC 35 ms
52,832 KB
testcase_03 AC 36 ms
52,820 KB
testcase_04 AC 35 ms
52,192 KB
testcase_05 AC 52 ms
73,344 KB
testcase_06 AC 52 ms
66,536 KB
testcase_07 AC 53 ms
73,532 KB
testcase_08 AC 48 ms
65,928 KB
testcase_09 AC 53 ms
67,896 KB
testcase_10 AC 48 ms
67,432 KB
testcase_11 AC 58 ms
71,472 KB
testcase_12 AC 51 ms
69,312 KB
testcase_13 AC 47 ms
64,176 KB
testcase_14 AC 50 ms
67,572 KB
testcase_15 AC 46 ms
61,940 KB
testcase_16 AC 53 ms
72,296 KB
testcase_17 AC 51 ms
69,824 KB
testcase_18 AC 47 ms
63,868 KB
testcase_19 AC 53 ms
73,068 KB
testcase_20 AC 54 ms
65,636 KB
testcase_21 AC 54 ms
71,740 KB
testcase_22 AC 51 ms
72,548 KB
testcase_23 AC 53 ms
73,184 KB
testcase_24 AC 50 ms
68,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = input()

c = 0

for i in range(N-1):
    if S[i]+S[i+1]== "xo":
        c+=1
print(c)
for i in range(N-1):
    if S[i]+S[i+1]== "xo":
        print(i+2,end=" ")
print("")
0