首页
比赛
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
简写单词
89条解析
开通博客写题解
Zerone·
发表于 2022-05-27 18:14:40
```#include<stdio.h> int main() { char s[100] = {0}; while (scanf("%s", &s) != EOF ) { if (s[0] >= 65 && s[0] <
展开全文
寒山客L
发表于 2022-02-27 17:34:42
最开始一直没能解决scanf遇空格或tab结束这个问题,后面在网上查了一下下面用的方法。输出的时候直接默认输出第一个字符,和输出前一个字符为空格的字符即可。 #include<stdio.h> #include<string.h> int main(){ int i;
展开全文
Hanson_Zhong
发表于 2022-05-13 17:46:09
链接:https://ac.nowcoder.com/acm/contest/19306/1037 来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 262144K,其他语言524288K 64bit IO Format: %lld 题目
展开全文
我是编程大王
发表于 2022-07-13 14:27:15
由题可知,我们需要把每个单词的首字母找出来把它变成大写的形式输出即可,由输入的格式我们可以发现除了第一个单词外,每个空格的后面就是我们要找的字母。由此思路即可轻松写出我们的代码 #include<stdio.h> #include<string.h> int mai
展开全文
zzfyupup
发表于 2022-06-24 16:14:31
#include<stdio.h> #include<string.h> int main() { char ch[1000]; gets(ch); int sz = strlen(ch); for (int i = 0; i < sz;
展开全文
汪汪小麦
发表于 2022-03-31 20:59:18
import java.util.Scanner; public class Main{ public static void main(String[] args){  
展开全文
理智的小饼干离上岸不远了
发表于 2023-08-16 20:34:15
#include <stdio.h> int main() { char arr[6000]={0}; scanf("%[^\n]",arr); char *sta=arr; int cnt=0; char arr2[6000
展开全文
牛客82035003号
发表于 2022-03-13 19:23:40
#include<stdio.h> #include<string.h> int main() { char arr[5100]={0}; //最大个数100*最大串长50+最多空格10
展开全文
屑屑_
发表于 2024-03-28 21:31:05
#include <stdio.h> #include <string.h> #define N 5100 char s[N]; char toUpper(char c) { if (c >= 'a' && c <= 'z')
展开全文
空杯心态&
发表于 2022-04-12 16:27:12
#include<stdio.h> #include<string.h> #include<stdio.h> #include<ctype.h> int main() { char a
展开全文
查看本题
查看本题讨论
相关比赛
6020-中国地质大学(武汉)第十三届研究生编程技能测试大赛
进入比赛
19306-牛客竞赛语法入门班数组字符串习题
进入比赛
19973-cslg_新生刷题训练4(数组字符串)
进入比赛
21320-zut数组与字符串入门练习
进入比赛
23023-CCSU_新生训练4(数组字符串)
进入比赛
等你来战
查看全部
金山杯2025年武汉理工大学程序设计竞赛
报名截止时间:2025-06-30 15:00
牛客小白月赛119
报名截止时间:2025-07-04 21:00
牛客周赛 Round 99
报名截止时间:2025-07-06 21:00
牛客练习赛142
报名截止时间:2025-07-11 21:30
牛客周赛 Round 100
报名截止时间:2025-07-13 21:00
2025牛客暑期多校训练营1
报名截止时间:2025-07-15 17:00
2025牛客暑期多校训练营2
报名截止时间:2025-07-17 17:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题