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

I have got the answer
Posted by dotrangvuong 25 Apr 2011 19:48
Sorry. I asked but now I got the answer and I don't know how to delete this post. My answer is
    long i;
    char c,t[200001];

    i=0;
    t[0]=0;
    while(std::cin.get(c))
    {
         if(c!=t[i])
         {
              i++;t[i]=c;

         }else{i--;};
    }

Edited by author 25.04.2011 20:32