Shui_Dream @ 2018-10-18 13:48:16
#include<bits/stdc++.h>
using namespace std;
string a[100006],r;
int f;
int main()
{
cin>>a[1];
for(int i=2;i<=a[1].size();i++)
cin>>a[i];
f=a[1].size();
for(int i=1;i<=f;i++)
{
for(int j=0;j<f;j++)
r+=a[i][j];
}
cout<<f<<" ";
int k=1;
for(int i=1;i<f*f;i++)
{
if(r[i]!=r[i-1])
{
cout<<k<<" ";
k=1;
}
else k++;
}
if(r[f*f-1]==r[f*f-2]) cout<<k;
return 0;
}
by Viston @ 2018-10-18 13:52:59
红名不会写红题
by Juan_feng @ 2018-10-18 13:55:22
红名不会写红题
by _SeeleVollerei_ @ 2018-10-18 13:56:12
第一位橙名蒟蒻来也!
by _SeeleVollerei_ @ 2018-10-18 13:57:07
#include <iostream>
using namespace std;
int main(){
string a[205];
char c='0';
int sum=0;
cin>>a[0];
for(int i=1;i<a[0].size();i++) cin>>a[i];
cout<<a[0].size()<<" ";
for(int i=0;i<a[0].size();i++){
for(int j=0;j<a[0].size();j++){
if(a[i][j]==c) sum++;
else{
c=a[i][j];
cout<<sum<<" ";
sum=1;
}
}
}
cout<<sum;
return 0;
}
by King_of_gamers @ 2018-10-18 14:11:45
橙名会写红题!
红名不会红题!