本文共 671 字,大约阅读时间需要 2 分钟。
#include#include #include #include #include using namespace std;int main(){ string s; int i,j,len,length; bool flag,ok; while(cin>>s){ length=s.length(); ok=0; for(len=1;len<=length;len++){ //长度 if(length%len!=0) //不可平分 continue; for(i=0;i
转载地址:http://nbmvi.baihongyu.com/