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 5/11/108

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 14/26/80

Bakana

Given four positive integers $N, a, b, M$, find the value of $GCD(N^a-1, N^b-1)$ modulo $M$. Here, $...

Moderate 22/43/110

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 9/15/110

Relocation Game

Tourist ( Gennady Korotkevich ) is a famous competitive programmer. He has won two ACM ICPC World Fi...

Moderate 13/25/93

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 38/61/238
Toph uses cookies. By continuing you agree to our Cookie Policy.