#include <cstdio>#include <cstring>usingnamespace std;
char st[100];
intmain() {
scanf("%s", st);
int n = strlen(st);
for (int i =1; i <= n; ++i) {
if (n % i ==0) {
char c = st[i -1];
if (c >='a')
st[i -1] = c -'a'+'A';
}
}
printf("%s", st);
return0;
}
Time limit: 0
Quiz Summary
0 of 6 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.