[R35A]','变‘.’
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
时空限制
1S/512M
题目描述
给定一个长度为  的字符串 ,该字符串仅包含大小写英文字母、数字、,(逗号)和 .(句号)。
你的任务是将字符串  中所有的逗号 , 替换成句号 .,并输出替换后的字符串。
格式
输入格式
第一行包含一个整数 ,表示字符串的长度。
第二行包含一个长度为 的字符串 。
输出格式
输出一行,表示将字符串  中所有的 , 替换为 . 后的结果。
样例
样例输入 #1
18
Hello,wowo.123,
样例输出 #1
Hello.wowo.123.
样例解释 #1
输入的字符串长度为 18,字符串为 Hello,wowo.123,。
将其中所有的逗号 , 替换为句号 . 后,得到 Hello.wowo.123.。
数据规模
对于  的数据,。字符串中只包含大小写英文字母、数字、, 和 .。
代码源挑战赛 Round 35
- Status
- Done
- Rule
- DMY
- Start at
- 2025-10-24 20:00
- End at
- 2025-10-24 21:30
- Duration
- 1.5 hour(s)
- Host
- Partic.
- 427
