题解 | #简写单词#

简写单词

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

全部评论

相关推荐

06-12 16:23
已编辑
小米_软件开发(准入职员工)
点赞 评论 收藏
分享
下北澤大天使:你是我见过最美的牛客女孩😍
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务