Not Nim
Alice and Bob recently learned about Nim. In a Nim game, two players play a game on several stacks o...
Final Over
This is ICC World Cup Final and the match is between Bangladesh and Australia. The match goes down t...
Inspired by Bermuda Triangle
Do you know about Bermuda Triangle? The Bermuda Triangle is a mythical section of the Atlantic Ocean...
Help IKRI
Ikri has a binary string s of length n. (each character of s is either 0 or 1) The weight of the bin...
Marbles Per Second
You have a rooted tree of n nodes. If we traverse the tree from the root, let’s say the traversing o...
Cheers !!
Isabella is from the 19 series of RUET. She loves programming. Also, She considers a number lucky fo...
Subsequence Fight
You are given an array a1​,a2​,…,an​ consisting of n distinct integers and an integer k. You can cho...
MangoSmash
Your friend has come to visit the RUET campus. As the Mango season goes on ⋯, he/she said “Mama Aam ...
Prefix & Suffix Maximization
You are given an array a of n integers. Now, let’s define two variables P and S. Where P is the bitw...
Functions of the Hell's Kitchen
The District Attorney(DA) of Hell’s Kitchen has been defined following functions. GCD(n,m): Returns ...
President of RUET FC
Zenitsu has been elected as the president of RUET FC and now he wants to sign some of the best world...
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...
The Election of Noakhali
Recently, Noakhali became a sovereign state. As a result, the first parliamentary election of the Re...
Adnan And Chess Tournament
Adnan is going to organize a chess tournament. He has invited n players to participate. Each pair of...
XOR-AND Coupling
You are given an array A of N positive integers A1​,A2​,………..,AN−1​,AN​ which are some powers of 2. ...
Life Is All About Balance
Given an array A of N integers, the array will be balanced if you can select at least one index i(1≤...
Square and Cube
Turja is thinking of preparing a hard problem for intra AUST programming contest. He asked Alam and ...
Island of Demons
During the war of the human, elves and dwarves, there rose a glade in an unknown region with multipl...
Sohom's Magical Chest!
One day Sohom was playing an indie game. Before the final boss, he found a Magical Chest and a paper...
Lipsticks From Dubai
Do you know what lipstick is? Well, Lipstick is a cosmetic that applies color, texture, and protecti...
rithyy Moderate 3/4/8
Prefix and Suffix
Initially, you are given an empty array A. You have to perform the following queries. 1 P - Add an i...
Simple Queries
You are given an array x of distinct integers  x1​,x2​,x3​…xn​(0≤xi​≤109;1≤i≤n) of length n. Now you...
Shelly's Adventure
Shelly and her friends have set out on an adventure and have come across an island. The island has a...
Beautiful Substrings
Given a binary string T (consisting of 0 and 1) of length exactly 26, which indicates a frequency co...
Stuck at Home
After researching the Coronavirus researcher come up with a solution to tackle all kinds of mutation...
Toph uses cookies. By continuing you agree to our Cookie Policy.