THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Standardize the string

Threads: For a string with the path of a file in the computer. The correct path is the path without the slash (/) at the top, at the end, and in between the folder has only one slash to separate. Please remove the slash admit to being a correct path.
Input: A string is the path may be true or not true.
Output: The correct path of paths for.
For example:

input:
laptrinh//code///chuanhoa.cpp
output:
laptrinh / code / chuanhoa.cpp

You are not logged in? Log in to Submit Now!

10 Comments

Add a Comment