题目链接:ZOJ4060 题意: 两个二进制串a与b,进行两次段取反操作,使得a变为b,问有多少种方法?
标签:思维
【思维】Marjar Cola
Marjar Cola is on sale now! In order to attract more customers, Edward, the boss of Marjar Company, decides to…
【思维】Definite Game
题目链接:点我 题目大意: 给出一个正整数n,可以多次操作,每次操作可以把n减去一个和n互质的数。问n的最小可能值(最小为1)。
【思维题】 Good Array
思维题: 题目链接 大意: 删除一个数,使得除了最大值之外剩下的数字之和等于最大值
【思维题】 Disturbed People
思维题: 题目链接 思路: 会打扰别人的灯满足条件: 1.前一个灯是灭的。 2.前面的第二个灯和现在的灯是开着的。 arr.get(i-1).equals(0)&&arr.get(i).equals(1)…
codeforces-1037D Berland Fair
题目链接:点我点我w~ XXI Berland Annual Fair is coming really soon! Traditionally fair consists of nn booths, arranged …