Problems by Labib666

A Game of Cards
Alice and Bob got bored and came up with a new game. They put N cards in a row on a table. The cards...
Moderate 7/13/110
Alice in Candyland
Alice came up with a new game. In this game called "Candy Quest", there is a NxN size 2D grid. In ea...
Bitmask, DP Moderate 20/33/92
Bakana
Given four positive integers $N, a, b, M$, find the value of $GCD(N^a-1, N^b-1)$ modulo $M$. Here, $...
Moderate 24/45/112
Byang and The Grid Game
Byang has invented a game he wants to play with his soulmate Byangette during their spare time. The ...
Gretchen and Strange Function
Gretchen loves experimenting with functions. She came up with an interesting function recently that ...
Moderate 10/16/111
Relocation Game
Tourist ( Gennady Korotkevich ) is a famous competitive programmer. He has won two ACM ICPC World Fi...
Moderate 16/28/96
Reverse The Magic
You are probably familiar with the technique of representing a Tree as an array of integers using Eu...
Robin Sparkles
Robin Sparkle went to the mall one day. While shopping, she remembered that she has a homework due t...
Sofdor Ali and Bracket Sequence
Sofdor Ali has invented a new game. He asked his assistant Jong Bahadur ( who happens to be a monkey...
Sofdor Ali Is in Love
Against all the odds, Sofdor Ali has fallen in love. He wishes to gift the girl the sweetest of subs...
The Game of Rocks
Alice and Bob have come up with a new game. Bob gives Alice a NxM grid that contains N rows and M co...
The Perfect Collection
Given an array A of N integers, if we choose any K of these integers and calculate their bitwise XOR...
DP Moderate 46/70/257
Toph uses cookies. By continuing you agree to our Cookie Policy.