https://www.acmicpc.net/problem/10828 제출 코드#include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int n; string method; vector stack; cin >> n; for (int i = 0; i > method; if (method == "push") { int a; cin >> a; stack.push_back(a); } else if (method == "pop") ..