From: Skullheadx Date: Thu, 26 Jan 2023 15:16:56 +0000 (-0500) Subject: Revert "2020 S2" X-Git-Url: http://git.skullheadx.com/nixos/static/gitweb.js?a=commitdiff_plain;h=9408af0a3a6369b6cff851ed0dfae139c5132014;p=CCC.git Revert "2020 S2" This reverts commit 97e0b80e5ca590b2228f92fd2731eff0c9d93abc. --- diff --git a/.gitignore b/.gitignore index 2b06a51..17ada73 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,10 @@ *.xml *.iml -.vs/ -.idea/ + *.iml *.o *.exe .idea/CCC.iml .idea/misc.xml *.in -*.out +*.out \ No newline at end of file diff --git a/Main/C++/2020/S2_2.cpp b/Main/C++/2020/S2_2.cpp deleted file mode 100644 index d33fc29..0000000 --- a/Main/C++/2020/S2_2.cpp +++ /dev/null @@ -1,35 +0,0 @@ -#include - -using namespace std; - -int M, N; -vector todo[1000005]; -bool done[1000005]; - -void dfs(int x) { - if (done[x]) { - return; - } - if (x == N * M) { - cout << "yes" << endl; - exit(0); - } - done[x] = 1; - for (int& t : todo[x]) { - dfs(t); - } -} - -int main() { - cin.tie(0)->sync_with_stdio(0); - cin >> M >> N; - for (int i = 1; i <= M; i++) { - for (int j = 1; j <= N; j++) { - int x; - cin >> x; - todo[i * j].push_back(x); - } - } - dfs(1); - cout << "no" << endl; -} \ No newline at end of file diff --git a/Main/Python/2010/S3.py b/Main/Python/2010/S3.py deleted file mode 100644 index 7c1bcab..0000000 --- a/Main/Python/2010/S3.py +++ /dev/null @@ -1,7 +0,0 @@ -C = 1000000 - - -H = int(input()) -for i in range(H): - address = int(input()) -k = int(input()) \ No newline at end of file diff --git a/Main/Python/2020/S2.py b/Main/Python/2020/S2.py index 34a3cae..83c852d 100644 --- a/Main/Python/2020/S2.py +++ b/Main/Python/2020/S2.py @@ -1,4 +1,4 @@ -from queue import LifoQueue +from queue import Queue from math import sqrt # from functools import lru_cache @@ -20,7 +20,7 @@ room = [] for i in range(M): room.append(tuple(map(int, input().split()))) -q = LifoQueue() +q = Queue() q.put((0, 0))