Problem hidden
This problem was hidden by Editorial Board member probably because it has incorrect language version or invalid test data, or description of the problem is not clear.

NOCOMMEN - No comment

Your task is to remove all comments from C/C++ program.

There are 2 types of comments:

  • multi-line: /* comment */
  • single-line: // comment

However, You have to remember about the character \ which binds two consecutive lines. For example:

// this is a comment \
that's still a comment

Input

Program written in C/C++ with comments.

Warning: tests may contain characters of Ascii value greater than 127.

Output

The same program but without comments.

Warning: "Exact judge" is used in this problem, so you should not ignore any whitespaces in the output.

Example

Input:
// program which adds two numbers \
sorry... three numbers

#include<stdio.h>

int main(void)
{
int a, b, c;
/*
a - first number
b - second one
c - last but not least
*/
scanf("%d %d %d",&a,&b,&c);
printf("%d\n",a+b+c);
return 0;
}
Output:


#include<stdio.h>

int main(void)
{
int a, b, c;

scanf("%d %d %d",&a,&b,&c);
printf("%d\n",a+b+c);
return 0;
}


Added by:Piotr Kąkol
Date:2011-06-10
Time limit:5s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: SCM qobi

hide comments
2014-05-31 09:04:08 Mitch Schwartz
@Dominique: Thanks again for your supportive words here and in a few other places. I don't think calling it a race is entirely accurate, as we often do things like improving in language X even though it has no chance to beat our shorter solution in language Y (which might lead to new insights for language Y in some cases, but you know what I mean), and some other considerations. Anyway, it's cool to have top spot for a little while, until someone else decides to (re)claim it. ;)

Congrats to you too; your recent wave of Ruby submissions is quite intriguing. :) I'm sure you'll find more improvements too.

Last edit: 2014-05-31 09:14:12
2014-05-16 21:00:22 Dominique VAILLANT
@Mitch: Wow! You are now the 1st one, beating legendary Jander after a very hard race with Linghui Liu. Sincere congratulations at you Mitch and also Jander and Linghui Liu!
It's very motivating.
2014-05-15 06:25:15 Mitch Schwartz
Note: Tests like these do not occur in the input: http://ideone.com/JjZ9km (and it's not a good idea to add them at this point, because of the current AC solutions)

Also, in answer to primo's earlier question, I've checked that the C/C++ programs have properly terminated quotes and comments.

Last edit: 2014-05-15 13:55:40
2014-05-14 20:15:49 Mitch Schwartz
It could be helpful to include a note in the problem description that an exact judge is being used for this problem (instead of the standard "Ignores extra whitespaces" one).
2014-03-10 17:19:52 Piotr KÄ…kol
Yes, it is. Good luck. :-)
2014-03-10 17:01:38 Jander
And you've done it again (as I predicted on IRC)! I take it yours is based on mine as usual ?
2014-03-10 16:57:44 Piotr KÄ…kol
Finally something challenging for you. :-)
2014-03-10 11:50:38 Jander
@challenger - ooh, you rotter! 57 in Perl indeed.
2013-12-15 15:03:01 Piotr KÄ…kol
Done.
2013-12-15 04:05:52 Hallvard Norheim Bø
Needs rejudge, my 130 Python solution is invalid in Python 2.7.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.