Cerinta completa Consider two non-negative long integers, and , where . The bitwise AND of all long integers in the inclusive range between and can be expressed as , where is the bitwise AND operator. Given pairs of long integers,
Anagram
Cerinta completa Two words are anagrams of one another if their letters can be rearranged to form the other word. Given a string, split it into two contiguous substrings of equal length. Determine the minimum number of characters to change
Alternating Characters
Cerinta completa You are given a string containing characters and only. Your task is to change it into a string such that there are no matching adjacent characters. To do this, you are allowed to delete zero or more characters
Almost Sorted
Cerinta completa Given an array of integers, determine whether the array can be sorted in ascending order using only one of the following operations one time. Swap two elements. Reverse one sub-segment. Determine whether one, both or neither of the
Almost Integer Rock Garden
Cerinta completa Victor is building a Japanese rock garden in his square courtyard. He overlaid the courtyard with a Cartesian coordinate system so that any point in the courtyard has coordinates and . Victor wants to place stones in the
Alien Languages
Cerinta completa Sophia has discovered several alien languages. Suprisingly, all of these languages have an alphabet, and each of them may contain thousands of characters! Also, all the words in a language have the same number of characters in it.
Alice and Bob’s Silly Game
Cerinta completa Alice and Bob invented the following silly game: The game starts with an integer, , that’s used to build a of distinct integers in the inclusive range from to (i.e., ). Alice always plays first, and the two
Alex vs Fedor
Cerinta completa In order to entertain themselves during the long flight, Alex and Fedor invented the following very simple two players game. The game is: First, Alex draws some graph with bidirectional weighted edges. There are possibly multiple edges (probably,
Airports
Cerinta completa Airports are being built on a straight road according to a new construction plan. For convenience, imagine a number line on which at different points airports can be positioned. Because a plane can’t take off and start landing
ACM ICPC Team
Cerinta completa There are a number of people who will be attending ACM-ICPC World Finals. Each of them may be well versed in a number of topics. Given a list of topics known by each attendee, presented as binary strings,
