Python代码-去掉空格 摘要:```pythonif __name__ == '__main__': while True: try: str1 = str(input()…… 题解列表 2025年02月17日 0 点赞 0 评论 21 浏览 评分:0.0
去掉空格(getline, string) 摘要:解题思路: getline string注意事项:参考代码:#include<iostream>#include<cmath>#include<cst…… 题解列表 2025年02月02日 0 点赞 0 评论 50 浏览 评分:0.0
如何实现输入多行之后 再输出相应的结果 摘要:解题思路:在主函数中定义两个字符串a,b;一个字符串流ss;在第一个while循环中使用a和ss实现多行的输入;在第二个while循环中使用a,ss和b实现相应行数去掉空格之后的输出b。注意事项:参考…… 题解列表 2024年12月07日 0 点赞 0 评论 160 浏览 评分:0.0
好用的STL双端队列 摘要:#include<bits/stdc++.h> using namespace std; deque<char>q; int main() { char c[100]; while(c…… 题解列表 2024年07月26日 0 点赞 0 评论 81 浏览 评分:0.0
去掉空格C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> void fun(char *a) { int i,j; for(i=…… 题解列表 2024年06月28日 1 点赞 0 评论 226 浏览 评分:9.9
fgets函数解决,思路稍稍复杂了些 摘要:解题思路:见注释注意事项:记住封口,不然烫烫烫烫烫烫参考代码:#define _CRT_SECURE_NO_WARNINGS 1 #include <stdio.h> #include <s…… 题解列表 2024年06月25日 0 点赞 0 评论 148 浏览 评分:0.0
编写题解 1196: 去掉空格(编程入门) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char arr[101]={0}; cha…… 题解列表 2024年04月26日 0 点赞 0 评论 134 浏览 评分:0.0
1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: s = input() print(s.replace(' ', '…… 题解列表 2024年04月19日 0 点赞 0 评论 198 浏览 评分:0.0
使用String的replaceAll()方法把" "替换成"" 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年03月24日 0 点赞 0 评论 80 浏览 评分:0.0