View Code of Problem 3924

#include<stdio.h>
#include<string.h>
#include<math.h>
#define MAX 1000000+10
#define Max(a,b) a>b?a:b
#define Min(a,b) a<b?a:b
int main()
{
	char c;
	char last;
	while((c=getchar())!=EOF)
	{
		if(c!=last)
		{
			putchar(c);
		}
		last=c;
	}

}

Double click to view unformatted code.


Back to problem 3924