n2随长度增加呈现出一个有规律的数列,从最短长度5开始,n2为:3,4,3,4,5,4,5,6,5,6,7,6,7,8,7,8,9,8,9,10...... #include<iostream> #include<cstring> using namespace std; int suren2(int len){//计算n2 if(len%3==0||len%3==2) return len/3+2; else return len/3+1; } int main(){ string a; int n1,n2; while(cin>>a){ ...