Posts

Showing posts with the label beecrowd

ICPC Dhaka Regional Preliminary Contest #Editorials 2022 Hosted By Green University of Bangladesh

  ICPC Dhaka Regional Preliminary Contest 2022 Hosted By Green University of Bangladesh Problem A: A Game with Grandma Setter: Shafaet Ashraf Tester & Alter writers: Nafis Sadique Aleksa Plavsic Arghya Pal Problem type: Game Theory, DP Solution idea: If you're familiar with Grundy Numbers, you can use the divide and conquer technique to solve it. To do this, loop through the columns of the grid and place a box in all possible positions. Whenever a box is placed, it divides the whole grid into two parts. Solve each sub-problem recursively by calculating the Grundy number. The base case is when the grid size is less than 1. This solution has a time complexity of O(N^3) and will pass the time limit. Problem B: Transform the Array Setter: Raihat Zaman Neloy Tester & Alter writers: Md. Mahbubul Hasan H. M. Ashiqul Islam Muhiminul Islam Osim Problem type: Number theory, finding prime divisors Solution idea: For the first type of transformation - Let's find two sets of primes ...

Solution - Interval 2 Solution in C,C++,Python - URI / BEE CROWD 1072

  URI / BEE CROWD 1072 - Interval 2 Solution in C,C++,Python | URI - BEECROWD - BEE 1072 Solution in C,C++,Python  beecrowd | 1072 Interval 2 Adapted by Neilor Tonin, URI Brazil Timelimit: 1 Read an integer  N . This N will be the number of integer numbers  X  that will be read.   Print how many these numbers  X  are in the interval [10,20] and how many values are out of this interval. Input The first line of input is an integer  N  ( N  < 10000), that indicates the total number of test cases. Each case is an integer number  X  (-10 7  <  X  < 10 7 ).   Output For each test case, print how many numbers are in and how many values are out of the interval. Input Sample Output Sample 4 14 123 10 -25 2 in 2 out URI / BEE CROWD 1072 - Interval 2 Solution in C,C++,Python | URI - BEECROWD - BEE 1072 Solution in C,C++,Python [Solution in C++]: #include <bits/stdc++.h> using namespace ...

Popular posts from this blog

12 Best Websites to Practice Coding for Beginners

Using Generic in TypeScript about types in the Code

Whiteboarding Interviews