## A Game of CardsAlice 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 CandylandAlice came up with a new game. In this game called "Candy Quest", there is a NxN size 2D grid. In ea... |

## BakanaGiven 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 GameByang has invented a game he wants to play with his soulmate Byangette during their spare time. The ... |

## Gretchen and Strange FunctionGretchen loves experimenting with functions. She came up with an interesting function recently that ...
Moderate
9/15/110 |

## Relocation GameTourist ( Gennady Korotkevich ) is a famous competitive programmer. He has won two ACM ICPC World Fi...
Moderate
13/25/93 |

## Reverse The MagicYou are probably familiar with the technique of representing a Tree as an array of integers using Eu... |

## Robin SparklesRobin Sparkle went to the mall one day. While shopping, she remembered that she has a homework due t...
Hard
15/17/33 |

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

## Sofdor Ali Is in LoveAgainst all the odds, Sofdor Ali has fallen in love. He wishes to gift the girl the sweetest of subs... |

## The Game of RocksAlice and Bob have come up with a new game. Bob gives Alice a NxM grid that contains N rows and M co... |

## The Perfect CollectionGiven an array A of N integers, if we choose any K of these integers and calculate their bitwise XOR... |

Toph uses cookies. By continuing you agree to our Cookie Policy.