当前位置:网站首页>Openjudge: filter extra spaces
Openjudge: filter extra spaces
2022-07-28 05:36:00 【Programmer system】
describe
There may be multiple consecutive spaces in a sentence , Filter out the extra space , Just leave a space .
Input
a line , A string ( Length not exceeding 200), There are no spaces at the beginning and the end of a sentence .
Output
Filtered sentences .
The sample input
Hello world.This is c language.
Sample output
Hello world.This is c language.
Code
s = input().split()
for i in s:
print(i, end=" ")边栏推荐
- 论文模型主图范例
- JSON in JS (launch object deep copy)
- repackag failed: Unable to find main class
- Tomato timing dimming table lamp touch chip-dlt8t10s-jericho
- openjudge:过滤多余的空格
- oracle查看锁表语句、解锁方法
- 2021CSDN博客之星评选,互投
- Confused, I'm going to start running in the direction of [test]
- JVM note 4: Memory Model
- 2022 summer practice (PowerDesigner tutorial learning record) (first week)
猜你喜欢

regular expression

蒸馏模型图

GET与POST区别

How practical is the struct module? Learn a knowledge point immediately

Tomato timing dimming table lamp touch chip-dlt8t10s-jericho

Writing methods of scientific research papers: add analysis and discussion in the method part to explain their contributions and differences

多线程进阶:volatile的作用以及实现原理

论文写作用词

Scanf function of input and output function in C language

ByteBuffer.position 抛出异常 IllegalArgumentException
随机推荐
What are the methods of array objects in Es5 and what are the new methods in ES6
Digital twin technology creates visual application of smart mine
List < long >, list < integer > convert each other
Share several methods of managing flag bits in C program
C language characters and strings
科研论文写作方法:在方法部分添加分析和讨论说明自己的贡献和不同
Video twins: the starting point of informatization upgrading of smart Parks
MySQL uses list as a parameter to query
ES6 new variable modifiers let and const, new basic data type symbol
You must configure either the server or JDBC driver (via the ‘serverTimezone)
SimpleDateFormat线程不安全和DateTimeFormatter线程安全
ssm项目快速搭建项目配置文件
[singleton mode] thread safety of lazy mode
论文写作用词
regular expression
Low illumination image data set
蒸馏模型图
regular expression
蒙特卡罗方法求解圆周率π并用turtle画点,以及完成进度条问题
个人写的一个文件上传工具网站