Dividing the Gifts
Today is a very good day in CSEmpur because Tuktuki has bought N gifts! Tuktuki wants to give these ...
Divisible by 3
You will be given a string containing digits. You have to say the number of sub strings whose sum is...
Divisible LCM
You have a sequence a1​, a2​, a3​, …, an​ of n integers and q queries. In each query, you are given ...
Divisors
Read an integer variable and print all of its divisors (including 1 and the number itself).
Do you have Arithmophobia ?
Don’t worry! If you are a programmer, you might not have arithmophobia!! But Era has a weird phobia ...
Earn Your Cupcake
A delicious NxN grid is given to you. All the lattice points of this grid contain a cupcake each exc...
Easy Factorial?
It is time to show your performance on number theory. Why so late? Come to the point. You are given...
Easy Peasy Subset Sum
Little Oishee loves to watch TV. But her mother, who is a math teacher, doesn't like this at all. Sh...
Easy Prime!
There are N numbers in an array. You will have Q queries. In each query, you can make 2 operations. ...
Easy Summation
Little Arya is growing up fast and now she can count the numbers. The problem with her counting is t...
Elementary Arithmetic
When Shakib was little, his mother used to help him with his studies. Usually, around 7 PM in the ev...
Elementary Arithmetic - 2
Long ago, after learning how to add two numbers, Shakib came to know about multiplication. Multiplic...
Equation Equals Hazards
You are given the equation, GCD(A,M)=1. You have to determine whether there exists at least one inte...
Erik: The Candyboy - 1
Erik has N candies, and he wants to distribute those candies among his friends. But he has more frie...
Expected Oddness
Alita found a string of n characters where each character of the string is either '0' or '1'. The Od...
Expected Result
A witch has imprisoned Bob in the 1st room of the Central Witchland Hotel. The hotel is weird. All t...
Expected Values From Bubble Sort
Bubble sort is a sorting algorithm that can sort an array of numbers in increasing order. In each of...
Explosion
There is a house named Larcana. It is a very weird house. There are exactly N rooms in total and bet...
Exponential Growth
You will be given two integers X and N, you have to calculate XN modulo 1000000007.
Fair Distribution
Mr. Forhad has X children. One day, on his way home, he bought Y chocolates for his children. He doe...
Fast Co-Prime
Two numbers A and B are called co-prime if the only common positive factor of the two numbers is 1. ...
Fibonacci Between
Given two numbers L and R, you must print all the Fibonacci numbers between L and R (inclusive). Alt...
Fibonacci Numbers
Given an integer N, print the N-th Fibonacci number. A Fibonacci series is a series of numbers in wh...
Finding Lines
Annabel and Richard like to invent new games and play against each other. One day Annabel has a new ...
Find the Number of Pearls
Today is a very special day. It’s the birthday of only one girlfriend of programmer Shojib. Now, you...
Toph uses cookies. By continuing you agree to our Cookie Policy.