UVA 10298 - Power Strings UVA • Sep 1, 2020 Problem PDFSolution:#include #include #include #include #include #include char s[10000000]; using namespace std; int main() { int a,i,b; while(gets(s)) { if(s[0]=='.'&&!s[1]) break; a=strlen(s); b=1; for(i=1;s[i];i++) while(s[i]!=s[i%b]) b++; if(i%b==0) cout<https://github.com/Shipu/OnlineJudgeProblemSolutionWithCPlusPlus/tree/master/uva/10298/10298.cpp Tags UVA Competitive Programming Shipu Ahamed Recommended for you UVA UVA 913 - Joana and the Odd Numbers 4 years ago • 1 min read UVA UVA 871 - Counting Cells in a Blob 4 years ago • 3 min read UVA UVA 866 - Intersecting Line Segments 4 years ago • 3 min read