diff --git a/src/week4/BOJ15926/BOJ15926_V1.cpp b/src/week4/BOJ15926/BOJ15926_V1.cpp new file mode 100644 index 0000000..5f3ca61 --- /dev/null +++ b/src/week4/BOJ15926/BOJ15926_V1.cpp @@ -0,0 +1,35 @@ +#include +using namespace std; +bool flag[200000]; +int main() { + ios_base::sync_with_stdio(false); + cin.tie(NULL); + cout.tie(NULL); + string s; + int n; + cin >> n >> s; + stack stk; + for (int i=0; i +using namespace std; + +int main() { + + ios::sync_with_stdio(false); + cin.tie(nullptr); + cout.tie(nullptr); + + int n; + string s; + cin >> n >> s; + stack stk; + stk.push(-1); + int ret = 0; + for (int i=0; i