666潘昊宸666 @ 2022-05-23 21:31:36
#include<bits/stdc++.h>
using namespace std;
string a[205];
int x,y;
char c;
int main(){
cin>>a[0];
y=a[0].size();
for(int i=1;i<y;i++)cin>>a[i];
c='0';
cout<<y<<" ";
for(int i=0;i<y;i++){
for(int j=0;j<y;j++){
if(a[i][j]==c)x++;
else{
cout<<x<<' ';
x=1;
if(c=='0')c='1';
else c='0';
}
}
}
cout<<x;
return 0;
}
by Lucky_cat @ 2022-05-23 21:32:11
@666潘昊宸666 博客提交,请——
by FQR_ @ 2022-05-23 21:34:35
by FFTotoro @ 2022-05-23 21:46:33
请不要在讨论区发布您的题解
by FFTotoro @ 2022-05-23 21:47:16
@666潘昊宸666 请仔细阅读《洛谷新用户必读》