文章
72
粉丝
142
获赞
5
访问
57.6k
#include<iostream>
#include<string>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxn = 10000000 + 5;
int arr[maxn];
int dp[maxn];
int main() {
int n;
while (cin >> n) {
string s;
cin >> s;
int count = 0;
for (int i = 0; i < n; i++) {
if (s[i] == '0') {
arr[i] = 1;
}
else if (s[i] == '1') {
count++;
arr[...
登录后发布评论
5
11111