Mag the Mighty Kaidul The winter is about to come. Mag the Mighty Kaidul is waiting for it for days. It is his favorite se... |
Incremental Induction The Nordic Collegiate Pong Championship (NCPC) is an insanely competive tournament where every conte... |
Building the Number This is a straight-froward problem. You will be given N. You have to find the expected value of buil... |
The Cipher In an ancient civilization, shrouded in the mists of time, there existed a group of mathematicians k... |
Many Paths, Many Costs Alice and Bob are visiting Byteland. They are observing the map of this country. Surprisingly, the m... |
Composite Facts Let's define two functions F and S: F(n) = 1 + n! S(n,m) = Sum of first m non-prime integers which ... |
The Greedy Mathematician Once upon a time, there lived a man called Mahi the mathematician. He was banned from his kingdom be... |
Divisible LCM You have a sequence a1, a2, a3, …, an of n integers and q queries. In each query, you are given ... |
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... |
Cocoa Coalition Alice and Bob decide to share a chocolate bar, which is an $n$ by $m$ rectangular grid of chocolate ... |
Mr Makor And His Friends Mr Makor has a set S of n integers. He calls a sequence of length k special if every element of the ... |
Joker's GCD Test Joker has a sequence P of n integers. Each two elements in the sequence are pairwise distinct. He de... |
Random Graphs This problem is very easy. There's a graph of $N$ nodes. Each edge $u-v$ ($u >= v ; u = v$ is possib... |
The Lucky Dice Ray and Evangeline are playing a game named "The Lucky Dice". In this game, each player tosses up an... |
Earn Your Cupcake A delicious NxN grid is given to you. All the lattice points of this grid contain a cupcake each exc... |
K-th DuoPalindrome Alice likes playing with Palindromes (strings that read the same backward as forward, such as 'madam... |
Killing Floor $N (1 \leq N \leq 10^{18})$ robots have decided to take part on a battle royale. Every robot has a u... |
Yet Another Hello World The greatest company, Pied Piper, is developing encryption systems. The company has already built Md... |
Maximum Distance You know it’s hard seeing your favorite person being interested in another one instead of you. At th... |
Expected Oddness Alita found a string of n characters where each character of the string is either '0' or '1'. The Od... |
Lucky Shirt Marjokes is a very famous comedy personality in Byteland. He is a poet, a writer, a singer and an ac... |
ML Vs AI Nowadays, CS students try to learn Machine Learning and Artificial Intelligence even before learning... |
Christmas Tree Professor Rio has an amazing Christmas tree. Unlike other trees, this Christmas tree has some specia... |
Goku's Tree Recently Goku has discovered a rooted tree graph. Goku’s tree has N nodes, among them node 1 is the ... |
Jimmy and Jamy Jimmy and Jamy are two brothers. They like to play with colored marble. Jimmy has N boxes with three... |