Ajob Commute IIOnce again we return to Ajobshohor, the capital city and the heart of Ajobdesh. Ajobshohorâ€™s road sy...

Static TreeYou are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...

Magical Tree QueryYou are given a rooted tree (a connected graph with no cycles) with n vertices. The vertices are num...

Race in DomKiThere is a kingdom called DomKi. DomKi has N city and N1 twoway road. Each city is numbered with 1...

Yet Another XOR Tree ProblemYou are given a tree with NNN nodes. A nonnegative weight is assigned to each edge of the tree. Let...

2Sat, Adhoc, ApolloneasTheorem, Backtracking, BFS, Bignum, BinarySearch, BipartiteMatching, Bitmask, BruteForce, ChineseRemainderTheorem, Combinatorics, ConvexHull, CutVertex, DataStructure, DFS, DigitDP, DisjointSets, DivideAndConquer, DP, Eertree, EulerTour, ExpectedValue, FenwickTree, FFT, Flow, Game, GCD, Geometry, Graph, Greedy, Hashing, HeavyLightDecomposition, Implementation, InclusionExclusion, Interactive, KnuthMorrisPratt, LowestCommonAncestor, Math, Matrix, MatrixExponentiation, MergeSortTree, ModularExponentiation, MOSAlgorithm, MST, NTT, NumberTheory, Parsing, PersistentLiChaoTree, PersistentSegmentTree, PollardRho, PriorityQueue, Probability, Queue, RabinMiller, RangeOrderStatistics, Scheduling, SegmentTree, ShortestPath, Simulation, Sorting, SparseTable, SpragueGrundyTheorem, SqrtDecomposition, Stack, String, StronglyConnectedComponents, SuffixStructure, TernarySearch, Tree, Trie, TwoPointer, WaveletTree