U66607.[FOI#1]注释删除

入门

通过率:0%

时间限制:1.00s

内存限制:128MB

题目描述

小G写了一坨注释代码,他自己也看不懂他写的是什么。
现给定一个字符串,要求删除其中的注释。

输入格式

一段代码。

输出格式

删去注释后的代码。

输入输出样例

  • 输入#1

    #include<iostream>
    using namespace std;//我是注释
    /*
    我也是注释
    */
    int main(){
        cout<<"杜老板one three one three one one three";
        return 0;//我还是注释
    }

    输出#1

    #include<iostream>
    using namespace std;
    
    int main(){
        cout<<"杜老板one three one three one one three";
        return 0;
    }
  • 输入#2

    destruction3,2,1/*at 17.3*/

    输出#2

    destruction3,2,1

说明/提示

1代码长度100001 \leq 代码长度 \leq 10000

首页