Man in the Queue You are in charge of Khakha Bank Bashundhara Branch. Your branch has only one desk to serve the cust... |
Robin Sparkles Robin Sparkle went to the mall one day. While shopping, she remembered that she has a homework due t... |
Find NSUPS Given a string s, find the number of subsequence in s which forms the word "NSUPS". A subsequence is... |
Potato Every weekend, Potato becomes a couch potato and spends the whole time at home. Now, he got bored of... |
XOR on Pascal Let's define F(N) as following: F(N)=(0N)⊕(1N)⊕(2N)⊕⋯⊕(NN) You are given an integer N(0≤N≤105), ... |
For Loop FTW You are given an integer N which can be represnted as the product of two positive integers. $ N = a_... |
Gauss - The Great Mathematician Carl Friedrich Gauss was a great mathematician. When he was a child, his teacher told him to sum up ... |
Niko Plays PUBG Gone are those days when Niko used to be a noob PUBG player. Now he gets “Chicken Dinner” every now ... |
Magical Pascal Given an integer N, find the number of elements which are even in the first N rows of the Pascal's t... |
Full Pyramid Given an integer N, print a full pyramid of asterisks. A full pyramid of asterisks of size N has N l... |
Big Factorials Given an integer N, print the trailing 4 digits of N! (N factorial). N!=N×(N−1)×(N−2)×...×1 Here are... |
Bakana Given four positive integers $N, a, b, M$, find the value of $GCD(N^a-1, N^b-1)$ modulo $M$. Here, $... |
Leap Years In the Gregorian calendar, certain years have 366 days instead of 365. In such years, the month of F... |
Incompatible Crops Did you know that certain crops cannot grow next to each other? Given the layout of a field as a gri... |
Fibonacci Numbers Given an integer N, print the N-th Fibonacci number. A Fibonacci series is a series of numbers in wh... |
Is Prime Given an integer $N$, determine if it is a prime a number. A number is called prime if it is only di... |
Mixed Fractions Given an improper fraction (as the numerator $N$ and the denominator $D$), determine and print it in... |
Is Anagram An anagram is a word formed by rearranging the letters of another word. The words "listen" and "sile... |
Making Friends Byang is going to join a new school. His new class has N students. Each of the students are identifi... |
Divisors Read an integer variable and print all of its divisors (including 1 and the number itself). |
Clock Math Given a time (hours as H and minutes as M), determine the smaller angle between the two hands of a c... |
Is Palindrome Given a word, print Yes if it is a palindrome, otherwise No. A palindrome is a word which reads the ... |
Formatted Numbers Read an integer variable and print it in which the digits are separated into groups of three by comm... |
Maximum Given N numbers, find the one that is of the highest value and print it. |
Math and Watermelons Your friend has M watermelons. He doesn't want to share them with anyone, but let's imagine he would... |