ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1654. Cipher Message

got wa @test 9 help
Posted by avinashkumarc1 19 Jul 2012 16:30
#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{char c[200000],d;
int i=0,j,k;
while(cin>>c[i]&&i<200000)
{char d=c[i];
if(i!=0&&c[i-1]==d){c[i]=c[i-1]=NULL;i=i-1;}
else if(int(d)==32){c[i]=NULL;}
else i++;
}

cout<<c<<endl;
return 0;
}


Edited by author 20.07.2012 19:31
Re: got wa @test 7 help
Posted by Noob 19 Jul 2012 19:29
Length is 200000, not 20000
Re: got wa @test 9help
Posted by avinashkumarc1 21 Jul 2012 17:50
still got wa@9 please help
Noob wrote 19 July 2012 19:29
Length is 200000, not 20000
Re: got wa @test 9help
Posted by ksana42 28 Jul 2012 08:24
try 250000