Red and Green
Suppose, there is an array of N integers. Each index of the array is either red or green. The first ...
Relatively Prime
Given a positive integer N, determine how many of the integers between 1 and N are co-prime with N. ...
Rivalry Friends
Ryo and his girlfriend love to think about challenges. One day his girlfriend gave him a challenge t...
Roll the Dice
You have got a 6 sided dice. In a single roll, it may show any integers from 1 to 6. You are going t...
Running Average
Given $N$ numbers, read each one, calculate the running average and print it. For example, given the...
Running Average Again
Given N numbers, read each one, calculate the running average and print it. For example, given the t...
Scary Big Chessboard
Our friend Alice got stuck in a big chessboard. The chessboard has N rows and N columns. Some cells ...
Scholarship
Your school is going to start a new scholarship program. To apply for this scholarship you have to w...
Secret Meeting
The world is terrified by Pandas! After a miraculous chemical explosion, they became smarter; and ev...
Sheldon's Obtuse Triangle
We all know Sheldon Cooper from The Big Bang Theory. Recently he got his Nobel Prize. He likes polyg...
Shiku Being Shiku
Guni Moira, the honest sweet shop owner of CSEmpur has recently learned about the Fibonacci sequence...
Shine on You Crazy Diamond
This problem is authored by one of our late friends, Sifat, who unexpectedly left us last year. He w...
Sofdor Ali and Histogram
The Great Sofdor Ali is now interested in competitive programming. Seeing this, his friend and also ...
Sofdor Ali and Radioactivity
Sofdor Ali is the craziest and clumsiest scientist in Bangladesh. He tries to maintain the safety me...
Sofdor Ali and the Puzzle of Weights
Sofdor Ali is one of the most famous scientists of Bangladesh. He is also well known for his puzzle ...
Sofdor Ali's Restaurant
One of Sofdor Ali’s greatest accomplishment was his Biriyani restaurant! Unlike the traditional rest...
Solve This Giveaway Problem First
This problem is straightforward and easy. You will be given two integers N, P and a list L of positi...
Spot It!
Have you played the game Spot it!? Though there are many ways to play this game, the basic rule is t...
Squared
Given the length of a side of a square, calculate and print its area.
Squares Inside Square
Hello , Programmers. There is one thing that I don't like about competitive problem solving, which i...
String Factory
Welcome to the string factory where strings are generated in a peculiar manner. You are given a stri...
String in a Grid 2
Prof. Bari loves to play with string. He is also very skilled in drawing. One day he was drawing a g...
String Play
Milo has a string S of length L. Tutu picks a random prefix and Mota picks a random suffix of S. Now...
Subset of Sequences
You will be given a set of sequences. Each sequence is a list of numbers. Two sequences are K-simila...
SUM Equals LCM
Given N, print a sequence of N positive integers A1​,A2​,…,AN​ that satisfy the following conditions...
Toph uses cookies. By continuing you agree to our Cookie Policy.