This commit is contained in:
parent
7cc77b6561
commit
31eb852495
1
bst.cpp
1
bst.cpp
|
@ -4,6 +4,7 @@
|
|||
#include<sstream>
|
||||
using namespace std;
|
||||
|
||||
// https://fit-wiki.cz/%C5%A1kola/p%C5%99edm%C4%9Bty/bi-pa2/pa2_zkou%C5%A1ka_2022-06-09
|
||||
|
||||
class CTree{
|
||||
public:
|
||||
|
|
2
lock.cpp
2
lock.cpp
|
@ -23,7 +23,7 @@ public:
|
|||
t.c[i] = static_cast<char>(target[i] - '0');
|
||||
}
|
||||
for (const auto& i : deadends) {
|
||||
if (target == i || target == "0000") return -1;
|
||||
if (target == i || i == "0000") return -1;
|
||||
|
||||
u tmp;
|
||||
for (int j = 0; j < 4; ++j) {
|
||||
|
|
|
@ -67,9 +67,7 @@ public:
|
|||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
CTeleport & Optimize ( void )
|
||||
{
|
||||
// todo
|
||||
CTeleport & Optimize ( void ) {
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
@ -116,7 +114,7 @@ public:
|
|||
|
||||
private:
|
||||
std::map<std::string, City> _toInt;
|
||||
std::vector<std::set<Port>> _ports;
|
||||
std::vector< std::set<Port> > _ports;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue