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

I get AC with 2 paths
Posted by Platto Pavel 20 Jul 2010 02:28
First, very stupied method: used just 2 arrays for A and B values, 0.609s, 673KB.
Second, some hint: used multi-stack and for pointers at next element used unsigned short, 0.031s, 677KB.
Sorry, for bad english:-)
Re: I get AC with 2 paths
Posted by Valentin (PSU) 13 Jan 2011 11:35
I used 2 arrays for A and B values and O(n) algorithm