WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

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!

11 Comments

Add a Comment