Problems by TarifEzaz

Absolute Value

You will be given an integer x. The absolute value of x will be within 100. You have to add 1 to x's...

Moderate 682/749/1k

Anne's Diary

On 12 June 1942, Anne received a diary as a gift. She started writing on it. Later, her diary had be...

Are You Coding Me?

In the year 1992 AD, little Pranoti started to learn how to write. She already figured out that her ...

Moderate 123/146/255

Arshiya's First Code

Arshiya is just three and she already started programming. She has learned how to write loops. Recen...

Moderate 388/428/1k

Arunima City

After the big decentralization process, where Dhaka city's population were relocated, a new city cal...

Ekhlas is a bad boy, not the type of bad that you generally admire. When he was little, his primary ...

In the strange neighborhood of Nocu, a lot of people lives pretty happily, or so they think. Like mo...

Moderate 9/16/35

As some of you already know, Nocu City has a history of having bad neighbors. These bad ones, take a...

Moderate 6/7/78

Be Like Hasib

Hasib, the famous programmer, uses a little game when he teaches Binary Search to his students. He r...

Moderate 496/720/3k

Like most of the other teenage girls, Shabnam loves to generate strings. But recently, she discovere...

Moderate 8/15/45

Byang of Interest

Byang is the most famous detective of Dhaka City. He has just received a secret document regarding h...

Byang's Day Out!

Byang and his little brother Kuno loves Cricket. But they never went to the stadium to watch a match...

Moderate 908/1k/2k

Count the Chaos

Imagine, you have an array of integers of size NNN. At each index of this array is a unique integer ...

Moderate 197/330/959

Count the Odds

Sometimes, contestants tend to look for patterns in problem descriptions. They try to figure out the...

Moderate 521/708/2k

Data Structure

The operations that are performed in a data structure can be categorized into two types: query and u...

Moderate 87/143/311

Digits of Pi

Let’s talk about one fascinating fact about circles. For that, let’s perform the following experimen...

Moderate 57/62/88

Elementary Arithmetic - 2

Long ago, after learning how to add two numbers, Shakib came to know about multiplication. Multiplic...

Moderate 73/91/172

Expected Values From Bubble Sort

Bubble sort is a sorting algorithm that can sort an array of numbers in increasing order. In each of...

Moderate 68/88/248

Exponential Growth

You will be given two integers X and N, you have to calculate XN modulo 1000000007.

Moderate 195/345/1k

Find LCM

The Least Common Multiple of two integers aaa and bbb is the smallest integer xxx, such that xxx is ...

Moderate 167/177/307

Flower Garden

Trisha and her little sister Rafa loves gardening. They plant trees and water them everyday. When th...

Geometry Forever

Fear no more, this is a problem of geometry! When Moyna was little, he had a math teacher named Shuk...

Moderate 477/587/1k

Ghosh vs Datta

About two hundred years ago, a serious dispute evoked between the two neighboring colonies of Khulna...

How Many Pairs of LCM?

A Common Multiple of two integers a and b is an integer X, such that both a and b divides X. A numbe...

Moderate 20/29/74

Interview

You have been called to an interview at Jifatsum, a company you’ve never heard of and who supposedly...

Jewel the Magician

Jewel is a promising magician. Recently, he has learned a technique to mesmerize his audience. Let's...

Moderate 139/208/664

Kingdom of Crisis

In a kingdom far away, NNN people live in a circle of harmony. Literally, they have constructed a ci...

Moderate 99/117/249

Kingdom of Crisis Continues

The economic crisis continues in our beloved kingdom. The king has asked the data scientists to coll...

Moderate 133/160/354

Legacy of _sunny

Tasnim Imran Sunny is the fifth Bangladeshi red coder from Topcoder. This problem is to pay tribute ...

Life of Decimals

Given any circle, if you divide the circumference of that circle with its diameter, you would always...

Moderate 454/474/832

Life of Phi

The Great Khami is learning Number Theory. He is very excited to know that Euler's Totient Function ...

Moderate 257/493/2k

Metro Rail Blocks

The city of Dhaka is experiencing the construction of metro rails. Imagine one such metro rail spans...

Moderate 16/17/43

Minimize the Odds

Ridoy is a world class programmer. He writes his programs with a lot of care so that the odds of a b...

Moderate 70/77/135

Minimum Excluded

In a given set of integers, the &quot;mex&quot; or the minimum excluded value is the smallest non-ne...

Moderate 22/39/163

Monk in the Jungle

The Great Monk Maruf is planning to visit the jungle of Amazon. He loves to prepare himself rigorous...

Mystery of Fibonacci

Fibonacci sequence is a recursive sequence that depends on the following definition: Fib(N) = Fib(N-...

Nearest Co-Prime

Two numbers are relatively prime or co-prime if their greatest common divisor is 111. In this proble...

Moderate 275/290/436

Partition Magic

The Great Researcher Dr. Bari loves to do research. Once he was doing research on VLSI Circuit Desig...

Moderate 1/3/14

Perplexity of Permutations

A permutation of N integers from 1 to N is an array where each number has appeared exactly once in t...

Hard 4/7/23

In the city of Musabad, criminals are punished heavily. Once an enemy is caught, he is kept in the j...

Moderate 83/101/221

Shhh! Don't Tell!

The Bad guys are using the social media to spread their malicious messages to the mass. They have co...

Sofdor Ali's Black and White Tree

Sofdor Ali loves Computer Science. He prefers hexadecimal number system to decimals, just because it...

Moderate 60/74/196

Sofdor Ali's Magical Blackboard!

Sofdor Ali found interest in mathematics very early in his life. And now, he wants to spread this in...

Moderate 628/681/1k

Sofdor Ali's Restaurant

One of Sofdor Ali’s greatest accomplishment was his Biriyani restaurant! Unlike the traditional rest...

Moderate 26/64/153

Sweeper's Dillemma

Minesweeper is a popular single-player puzzle video game from the 60's. It still enjoys the privileg...