若输入的字符串长度为18,那么输入的字符串跟输出的字符串相比,至多有()个字符不同。
#include <cstdio>
#include <cstring>
using namespace std;
char st[100];
int main(){
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);
return 0;
}
18
6
10
1