結果
問題 |
No.2773 Wake up Record 1
|
ユーザー |
![]() |
提出日時 | 2025-05-20 21:19:24 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 365 bytes |
コンパイル時間 | 3,583 ms |
コンパイル使用メモリ | 275,336 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-20 21:19:29 |
合計ジャッジ時間 | 4,351 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 21 WA * 1 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int N; string S; cin >> N >> S; vector<int> ans; for (int i = 0; i < N - 1; i++) { if (S[i] == 'x' && S[i + 1] == 'o') { ans.push_back(i + 2); } } cout << ans.size() << "\n"; for (auto s : ans) { cout << s << " "; } }