输入为多行,每行为一个字符串,字符串只由字母、数字和空格组成,长度不超过80。输入以“End of file”结束。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <string.h>int main(){ int i,k,h,p,j,m=0; char a[100][…… 题解列表 2022年09月09日 0 点赞 0 评论 733 浏览 评分:9.9
1196: 去掉空格 ps:用最简单话解释这道题 摘要:```c #include #include int main() { char arr[100][100]; //定义一个二维数组。 int i =0, k =0,j=0; /…… 题解列表 2022年09月14日 0 点赞 0 评论 525 浏览 评分:9.9
去空格 区分scanf 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=0,t=0,j=0,z=0,h=0,k=0,l=0,m=0; char a[100],b[100],…… 题解列表 2022年10月18日 0 点赞 0 评论 366 浏览 评分:9.9
去掉空格(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; #include<string> int main() { string…… 题解列表 2022年11月03日 0 点赞 0 评论 470 浏览 评分:9.9
1196一行解(Python) 摘要:解题思路:将空格替换为空('')注意事项:明确sys.stdin的用法参考代码:import sysfor line in sys.stdin :print(line.replace(…… 题解列表 2022年11月04日 0 点赞 0 评论 250 浏览 评分:9.9
去掉空格(简单基础版) 摘要: 解题思路:先要一个可以一直输入,等到不想输入就可以不输入的东西,我们这里可以用到while(a[i]),用这个的原因是当输入正当则继续输入,想结束那就输入ctrl+z即可 接下来不用做处理,直…… 题解列表 2022年11月23日 0 点赞 0 评论 276 浏览 评分:9.9
(要脸,别举报) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char n; while(~(scanf("%c",&n))) { i…… 题解列表 2022年11月29日 0 点赞 1 评论 213 浏览 评分:9.9
1196: 去掉空格 摘要:```cpp #include using namespace std; int main() { char s[1000]; while(gets(s)) { …… 题解列表 2022年12月06日 0 点赞 0 评论 197 浏览 评分:9.9
电报加密,简单容易懂的 摘要:解题思路:注意事项:就注意‘z’这个字母就行了,其他在Ascll表后移一位参考代码:#include<stdio.h>#include<string.h>int main(){ int l; char…… 题解列表 2022年12月15日 0 点赞 0 评论 434 浏览 评分:9.9
1196: 去掉空格 摘要:```cpp #include #include using namespace std; int main() { string str,temp; while(get…… 题解列表 2022年12月30日 0 点赞 0 评论 242 浏览 评分:9.9