← 查看本卷题目
组合题6 个小题
已作答 0 / 6
#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;}
第 19 题单选题原卷 1.5 分

若输入的字符串全部由大写字母组成,那么输出的字符串就跟输入的字符串一样。()

填写答案