IceCream of Montu Mia Again!Montu Mia is a student of “Omok School”. He likes to eat an icecream every day. But he also likes t...

Color The GraphYou are given an acyclic, bidirectional graph with NNN nodes and M edges. The nodes are numbered fro...

Count the ChaosImagine, you have an array of integers of size NNN. At each index of this array is a unique integer ...

Neat BracketsGiven a sequence of opening and closing parentheses ("(" and ")") you will have ...

CrayonsFive friends A, B, C, D and E has come to a shop to buy crayons for their art project. They need cra...

Set UnionGiven two sets of integers, print the set containing the union of the two input sets. For example, g...

Tree QueriesYou are given a tree of n vertices. Each vertex contains an integer. Vertex 1 is the root of the tre...

Easy Prime!There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...

Byang and War TacticsByang is learning about War Tactics from Raat, a famous martial arts master, who has successfully tr...

Taju Kage Bunshin No JutsuNaruto Uzumaki is one of the strongest ninja of RUET (Rasengan University of Ebisu and Tobi), posses...

Another Query on StringYou are given a string S (of length n) consisting of alphabets only. You need to perform m queries o...

Sofdor Ali and Bracket SequenceSofdor Ali has invented a new game. He asked his assistant Jong Bahadur ( who happens to be a monkey...

Dengue Affected AreasDengue, the talk of the town of Dhaka this year. So many people suffered from dengue fever and a num...

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

Data StructureThe operations that are performed in a data structure can be categorized into two types: query and u...

City of BurgerlandHave you ever heard of The Burgerland City? The city is full of burger shops. You will surely find s...

Rivalry FriendsRyo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t...

Distinct DishtingYou are given an array of NNN integers. Then there will be QQQ commands of the following type: Cha...

A Super Easy Problem  "Array Query"Let's get into the problem directly without much description this time :D . You are given an array A...

MSIS!Do you know what MSIS is? MSIS is the abbreviation for Maximum Sum Increasing Subsequence. It is a s...

Smallest SubarrayYou are given an array A of N integers A1, A2, A3, ..., AN . If we select two indices (1 ≤ i ≤ j ≤ N...

Police StationsRecently the government of country S is going to construct some police stations(possibly zero) in so...

StraightforwardNo gossip. In this problem I will just say what to do. Initially, you will be given a bracket sequen...

Array SimulationYou are given an array of N elements. Initially all the indices have a value of 0. You have to do fo...

Hide and SeekYou know how to play hideandseek, right? In a group of kids, one of them is selected to be the see...

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