测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

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;
}