Problems by upobir

Array Partition
Today Leena learnt about subarrays and partitions. Given an array $A$, a subarray of this array is a...
Bi-Element Subsequence
You are participating in a game show. In the final round, the host pulls up a large sequence of posi...
Costly Array
Oyler received a peculiar homework from his school. The teacher gave him a positive number $n$ and t...
Moderate 62/92/304
Count the Deliveries
Lazim has recently decided to open a pizza restaurant. His restaurant’s speciality is that they can ...
Moderate 16/40/129
Create Some Walls!
Mahdi has finally found some time to build his dream house. He had been looking for some cool design...
Dividing the Gifts
Today is a very good day in CSEmpur because Tuktuki has bought N gifts! Tuktuki wants to give these ...
GCD and Sum
Congratulations! You’ve been hired in “Buggy Software Ltd.” And you’ve been already given your first...
GCD, Divisor, Count!
I like short statements and you should too so here's the statement without further ado You are give...
Give Me My Vector
I am in a hurry. I have n 2D vectors. And I have created all possible subsets of these n vectors. Fo...
Moderate 3/5/42
Halting Assembly
Oyler is learning about assembly programming in his class. To explain jump instruction easily, his t...
Moderate 11/12/34
How Do You Make a Problem?
I am very busy these days. So when I was told, I have to create a problem for the contest, I was sli...
Inversions and Goodbye
It's time to say goodbye to CSEmpur, at least for today. And so you wanted to give the citizens of C...
DP, Greedy Moderate 6/9/11
Maximize Mismatch
You are given a permutation $P$ of number $1, \cdots , n$ (I.E. each number occurs exactly once). No...
Not Nim
Alice and Bob recently learned about Nim. In a Nim game, two players play a game on several stacks o...
Oyler's Geometric Jumps
The road from Oyler’s home to his school has nsteps, where his home is at step 1 and his school is a...
Hard 6/7/34
Productive Employees
Congratulations on becoming the new boss of "Horizontal Company, branch: Sylhet"! But now you have a...
Pudding and Coins
Pudding is playing a game that has n levels. There are a total of n(n+1)/2 coins spread out among th...
Random Graphs
This problem is very easy. There's a graph of $N$ nodes. Each edge $u-v$ ($u >= v ; u = v$ is possib...
Rotation Dilemma
Akash has two favorite convex polygons A and B. But one of his new year resolution for 2020 is to ha...
Shortest Path, Yet Again?
Mr O is teaching Algorithms 101 to his students. The class just finished learning BFS and now he wan...
Adhoc Moderate 51/63/177
The Answer to Everything
What is the answer to the ultimate question of Life, the universe, and everything? It is You will be...
The Very Last Exam
You have spent the last twenty years studying competitive programming. Now only one exam stands betw...
Moderate 1/2/26
Toph uses cookies. By continuing you agree to our Cookie Policy.