diff --git a/src/week2/BOJ9012/BOJ9012_V1.cpp b/src/week2/BOJ9012/BOJ9012_V1.cpp new file mode 100644 index 0000000..e632338 --- /dev/null +++ b/src/week2/BOJ9012/BOJ9012_V1.cpp @@ -0,0 +1,51 @@ +#include +using namespace std; + +int main() { + + ios_base::sync_with_stdio(false); + cin.tie(NULL); + cout.tie(NULL); + + int N; + cin >> N; + vector ret; + for (int i = 0; i < N; i++) { + string s; + cin >> s; + stack stk; + bool flag = true; + for (int j=0; j