結果
| 問題 | No.2773 Wake up Record 1 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-07-30 22:28:25 |
| 言語 | C++23(gcc16) (gcc 16.1.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 544 bytes |
| 記録 | |
| コンパイル時間 | 4,179 ms |
| コンパイル使用メモリ | 352,880 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-30 22:28:32 |
| 合計ジャッジ時間 | 5,832 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 21 WA * 1 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef string str;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
ll n;
str s, p = "";
cin >> n >> s;
ll countt = 0;
bool check = true;
for (ll i = 0; i < n; i++)
{
if (check && s[i] == 'o')
{
p += to_string(i + 1) + ' ';
check = false;
countt++;
}
else if (!check && s[i] == 'x') check = true;
}
cout << countt << "\n" << p;
return 0;
}