A61487. 2019年信奥赛csp-j 初赛阅读程序1:#include<bits/stdc++.h>
编程题
知识点
题目描述
2019年信奥赛csp-j 初赛阅读程序1:
#include<bits/stdc++.h>
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;
}