1206 去掉双斜杠注释


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

将C++程序代码中的双斜杠注释去掉。

Input

输入数据中含有一些符合C++语法的代码行。需要说明的是,为了方便编程,规定双斜杠注释内容不含有双引号。

Output

输出不含有双斜杠注释的C++代码,原语句行格式不变,行尾也不应有空格。

Sample

Input

//======================
// simplest program
//======================
#include
using namespace std;
//----------------------
int main(){
  cout
using namespace std;
int main(){
  cout<<”hello world!\n”;
}

Source: qianneng


Comments

There are no comments at the moment.