$ git clone https://gitlab.com/UniCatHMR/dfs-cpp.git
$ cd DFS
- Mac
$ g++ -std=c++17 DFS.cpp -o DFS
$ ./DFS < input (or input2)
$ 9
- Windows
$ g++ -std=c++17 DFS.cpp -o DFS.exe
$ .¥DFS < input (or input2)
$ 9
親nodeの番号(root node は入力しない) 子nodeに伸びている枝の数 子nodeの番号(子nodeに伸びている枝の数==0の時は自身の値)
https://www.webcyou.com/?p=6997
$ git clone https://gitlab.com/UniCatHMR/dfs-cpp.git
$ cd MiniMax
-
Mac
$ g++ -std=c++17 MinMax.cpp -o MiniMax
$ ./MiniMax < input (or input2)
$ 7
-
Windows
$ g++ -std=c++17 MinMax.cpp -o MiniMax.exe
$ .¥MiniMax < input (or input2)
$ 7
$ git clone https://gitlab.com/UniCatHMR/dfs-cpp.git
$ cd AlphaBeta
-
Mac
$ g++ -std=c++17 AlphaBeta.cpp -o AlphaBeta
$ ./AlphaBEta < input (or input2)
$ 7
-
Windows
$ g++ -std=c++17 AlphaBeta.cpp -o AlphaBeta.exe
$ .¥AlphaBeta < input (or input2)
$ 7