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

avinashkumarc1 got wa @test 9 help [3] // Problem 1654. Cipher Message 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
Noob Re: got wa @test 7 help [2] // Problem 1654. Cipher Message 19 Jul 2012 19:29
Length is 200000, not 20000
avinashkumarc1 Re: got wa @test 9help [1] // Problem 1654. Cipher Message 21 Jul 2012 17:50
still got wa@9 please help
Noob wrote 19 July 2012 19:29
Length is 200000, not 20000
waksana Re: got wa @test 9help // Problem 1654. Cipher Message 28 Jul 2012 08:24
try 250000