ENG
RUS
Timus 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
Hints
Posted by
Nguyen Khac Tung
10 Aug 2011 11:07
Use stack for those who know what stack means.
For those who don't , take a look at this:
n++;
cin>>a[n];
if (a[n]==a[n-1]) n-=2;
Re: Hints
Posted by
Bogatyr
4 Oct 2012 04:21
Nice!
© 2000–2024
Timus Online Judge Team
. All rights reserved.