图来自:https://www.acwing.com/solution/content/27437/参考:https://raelum.blog.csdn.net/article/details/128969669//数组栈 #include <iostream>using namesp