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 1220. Stacks

AC 708KB
Posted by pmartynov 25 Jan 2013 12:41
Got AC. Used 2 arrays(bool and short for holding N's) + 2 arrays(bool and short) for top stack items and 1 int array for values managing 30 bit value storage instead of 32(B <= 1000000000). How can I improve the algo?

Edited by author 25.01.2013 12:42