- Игрок — наблюдатель, человек, воспринимающий и запоминающий мир.
- «Мир-Читер» — администратор игры, контролирующий все процессы во вселенной.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <vector> | |
| #include <string> | |
| #include <unordered_map> | |
| #include <set> | |
| #include <cstdlib> // for rand() | |
| #include <ctime> // for time() | |
| #include <iostream> | |
| // Типы-заглушки | |
| struct t_client_name { std::string name; }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Solution { | |
| public: | |
| typedef vector<set<int>> t_graph; | |
| int findShortestCycle(int n, vector<vector<int>>& edges) { | |
| t_graph a(n); | |
| for(auto&ex:edges){ | |
| a[ex[0]].insert(ex[1]); | |
| a[ex[1]].insert(ex[0]); | |
| } | |
| vector<int> passed(n,-1e9); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| n | c | city | p | p/n/1k | |
|---|---|---|---|---|---|
| 2 | HU | Esztergom | 28026 | 14 | |
| 19 | PL | Wrocław | 672929 | 35 | |
| 3 | GB | Cambridge | 123867 | 41 | |
| 2 | CH | Lausanne | 139111 | 70 | |
| 3 | RO | Cluj-Napoca | 324576 | 108 | |
| 2 | DE | Mainz | 217556 | 109 | |
| 2 | PL | Częstochowa | 223322 | 112 | |
| 2 | CY | Limassol | 235056 | 118 | |
| 2 | DE | Aachen | 249070 | 125 |
OlderNewer