diff --git a/src/week5/BOJ13144/BOJ13144_V1.cpp b/src/week5/BOJ13144/BOJ13144_V1.cpp new file mode 100644 index 0000000..317a5f0 --- /dev/null +++ b/src/week5/BOJ13144/BOJ13144_V1.cpp @@ -0,0 +1,33 @@ +#include +using namespace std; +bool visited[100001]; +int inp[100001]; +long long cnt; +int main() { + + ios_base::sync_with_stdio(false); + cin.tie(nullptr); + cout.tie(nullptr); + + int N; + cin >> N; + + int st=0; + for (int i=0; i> inp[i]; + } + + for (int ed=0; ed