This commit is contained in:
hladu357 2024-05-18 14:13:46 +02:00
parent 7cc77b6561
commit 31eb852495
3 changed files with 4 additions and 5 deletions

View File

@ -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:

View File

@ -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) {

View File

@ -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;
};