Requirement

Cerinta completa There are variables and requirements. Requirements are represented as , meaning that the variable must be less than or equal to the variable. Your task is to assign non-negative numbers smaller than to each variable and then calculate

Quadrant Queries

Cerinta completa There are points on a plane. Each point is described by , where . There are three types of queries needed:  X i j Reflect all points in the inclusive range between points and along the -axis. Y

Prime XOR

Cerinta completa Penny has an array of integers, . She wants to find the number of unique multisets she can form using elements from the array such that the bitwise XOR of all the elements of the multiset is a

Powers Game

Cerinta completa After their success in coming up with Fun Game, Kyle and Mike invented another game having the following rules: The game starts with an -element sequence, , and is played by two players, and . The players move

Prime Dates

Cerinta completa In this challenge, the task is to debug the existing code to successfully execute all provided test files. Given two dates each in the format dd-mm-yyyy, you have to find the number of lucky dates between them (inclusive).

Palindrome Index

Cerinta completa Given a string of lowercase letters in the range ascii[a-z], determine the index of a character that can be removed to make the string a palindrome. There may be more than one solution, but any will do. If

Repair Roads

Cerinta completa The country of Byteland contains cities and bidirectional roads. There is a path between any two cities. The roads in Byteland were built long ago, and now they are in need of repair. You have been hired to

Plus Minus

Cerinta completa Given an array of integers, calculate the ratios of its elements that are , , and . Print the decimal value of each fraction on a new line with 6 places after the decimal. Note: This challenge introduces