AND Product

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

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

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.

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,