题解 | #简写单词#

简写单词

https://www.nowcoder.com/practice/0cfa856bf0d649b88f6260d878f35bb4

#include <stdio.h>
#include<string.h>
#include<ctype.h>
int main() {
    char arr[5000000]={0};
    fgets(arr,499999,stdin);
    char*new;
    new=strtok(arr," ");
    printf("%c",toupper(*new));
    while(new=strtok(NULL," "))
    {
        printf("%c",toupper(*new));
    }
    return 0;
}

全部评论

相关推荐

1 收藏 评论
分享
牛客网
牛客企业服务