Windows to Linux

When transitioning from Windows to Linux you realized that the paths are very different. Windows uses \ to separate directories and the paths on a Windows system usually look something like this: C:\Documents\Newsletters\Summer2022.pdf. Yet, on Linux, the directories are separated with /. Therefore, when translating the directory from Windows to Linux, one needs to change the \ to / and C: to /home.
Given a string from a Windows system, change it to one that would suit the Linux system.
The input contains a single line that has a Windows path.
The program should print the resulting Linux path.


Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue