|
|
вернуться в веткуОтвет на сообщение- Сообщения должны быть написаны на английском языке и соответствовать тематике сайта.
- Сообщения не должны содержать оскорблений и нецензурной лексики.
- Сообщения не должны содержать правильных решений.
actually this is an easy problem! no bitwise shit needed, no storing 17 bits for indexes and no such stuff! just use unsigned stack* [1000] for the stacks (store elements in a dynamic array, reallocating memory for each push), and unsigned top[1000] for the index of the top element. with this i got AC with 663 KB! good luck!
|
|
|