Skip to content

Instantly share code, notes, and snippets.

#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; };
@adler3d
adler3d / about_this_game.md
Created July 19, 2025 14:24
Модель вселенной: игрок и «мир-читер»

Модель вселенной: игрок и «мир-читер»

1. Единственные участники

  • Игрок — наблюдатель, человек, воспринимающий и запоминающий мир.
  • «Мир-Читер» — администратор игры, контролирующий все процессы во вселенной.

2. Роли и возможности

@adler3d
adler3d / findShortestCycle.cpp
Created October 1, 2025 11:14
Shortest Cycle in a Graph
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);
@adler3d
adler3d / cg20260405_top1000_cities_with_many_users_but_without_fr_and_mr.csv
Last active April 9, 2026 09:38
solo(city with single user) users from TOP1000 codingame::contests::global[2026.04.05] (without FR and MA users)
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