摘要:
Given two strings a and b we define a*b to be their concatenation. For example, if a = "abc" and b = "def" then a*b = "abcdef". If we think of concate 阅读全文
摘要:
The football season has just ended in Berland. According to the rules of Berland football, each match is played between two teams. The result of each 阅读全文
摘要:
The string t1t2…tkt1t2…tk is good if each letter of this string belongs to at least one palindrome of length greater than 1. A palindrome is a string 阅读全文
摘要:
You are playing a variation of game 2048. Initially you have a multiset ss of nn integers. Every integer in this multiset is a power of two. You may p 阅读全文
摘要:
Monocarp has got two strings ss and tt having equal length. Both strings consist of lowercase Latin letters "a" and "b". Monocarp wants to make these 阅读全文