题解 | #简写单词#

简写单词

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

全部评论

相关推荐

不愿透露姓名的神秘牛友
07-11 11:16
点赞 评论 收藏
分享
流浪的神仙:无恶意,算法一般好像都得9硕才能干算法太卷啦
点赞 评论 收藏
分享
06-24 19:27
云南大学 Java
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

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