Notice
Recent Posts
Recent Comments
Link
목록백준 (2)
Programmer
1181번 단어 정렬
#include #include #include #include using namespace std; vector str; string s; int inputLength; bool chk(string a, string b) { if (a.length() == b.length()) return a > inputLength; for (int i = 0; i > s; if(find(str.begin(), str.end(), s) == str.end()) str.push_back(s); } sort(str.begin(), str.end(), chk); for ..
백준
2020. 4. 11. 03:11
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