結果

問題 No.2773 Wake up Record 1
ユーザー hato336hato336
提出日時 2024-06-07 21:21:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 158 ms / 2,000 ms
コード長 488 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 90,496 KB
最終ジャッジ日時 2024-06-07 21:21:47
合計ジャッジ時間 4,918 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
85,760 KB
testcase_01 AC 133 ms
85,632 KB
testcase_02 AC 131 ms
85,700 KB
testcase_03 AC 130 ms
85,632 KB
testcase_04 AC 131 ms
85,376 KB
testcase_05 AC 151 ms
90,368 KB
testcase_06 AC 149 ms
89,856 KB
testcase_07 AC 148 ms
90,496 KB
testcase_08 AC 147 ms
90,112 KB
testcase_09 AC 152 ms
89,984 KB
testcase_10 AC 153 ms
89,984 KB
testcase_11 AC 158 ms
90,368 KB
testcase_12 AC 153 ms
89,984 KB
testcase_13 AC 148 ms
89,856 KB
testcase_14 AC 148 ms
90,112 KB
testcase_15 AC 146 ms
89,088 KB
testcase_16 AC 157 ms
90,112 KB
testcase_17 AC 154 ms
89,600 KB
testcase_18 AC 151 ms
89,600 KB
testcase_19 AC 150 ms
90,112 KB
testcase_20 AC 149 ms
89,728 KB
testcase_21 AC 150 ms
89,728 KB
testcase_22 AC 155 ms
89,856 KB
testcase_23 AC 154 ms
90,240 KB
testcase_24 AC 155 ms
90,240 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
n = int(input())
#alist = list(map(int,input().split()))
#alist = []
s = input()
#n,m = map(int,input().split())
#for i in range(n):
#    alist.append(list(map(int,input().split())))
ans = []
for i in range(n-1):
    if s[i] == 'x' and s[i+1] == 'o':
        ans.append(i+2)
print(len(ans))
print(*ans)
0