Compiler Version
Practice
3.8 (83 votes)
Ad Hoc
Approved
Data structures
Easy
Implementation
Open
Problem
49% Success 20496 Attempts 10 Points 5s Time Limit 256MB Memory 1024 KB Max Code
You are converting an old code for a new version of the compiler.
In the old code we have used "->" for pointers. But now we have to replace each "->" with a ".". But this replacement shouldn't be done inside commments. A comment is a string that starts with "//" and terminates at the end of the line.
Input:
At max. \(2000\) lines of code.
Each line of code consists of at maximum \(60\) characters.
Output:
New code with required changes.
Submissions
Please login to view your submissions
Similar Problems
Points:10
62 votes
Tags:
AlgorithmsEasyString Manipulation
Editorial