Notice
Recent Posts
Recent Comments
Link
목록스택 (1)
Programmer
10828번 스택
#include #include #include #include using namespace std; void solve() { stack stk; string command; int inputData; int commandLine; cin >> commandLine; for (int i = 0; i > command; if (!command.compare("push")) { cin >> inputData; stk.push(inputData); } else if (!command.compare("pop")) { if (stk.size() == 0) cout
백준
2020. 4. 3. 19:02