結果
問題 | No.2773 Wake up Record 1 |
ユーザー | titia |
提出日時 | 2024-06-07 21:22:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 65 ms / 2,000 ms |
コード長 | 188 bytes |
コンパイル時間 | 200 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-12-26 06:49:33 |
合計ジャッジ時間 | 2,368 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) S=input().strip() ANS=[] for i in range(1,N): if S[i-1]=="x" and S[i]=="o": ANS.append(i+1) print(len(ANS)) print(*ANS)