摘要:
链接:https://www.nowcoder.net/acm/contest/71/E来源:牛客网 题目描述 有一个长为 n 的数列 A,其中有 m 个限制条件,条件有两种: 1、对于区间 [l,r],其区间元素按位或和等于 x 2、对于区间 [l,r],其区间元素按位与和等于 x 求出一个数列 阅读全文
摘要:
【题目链接】 A - Watching TV 模拟。统计一下哪个数字最多即可。 B - Longest Prefix 模拟。一个串能乱变,一个串不能动,只要统计能变的那个串每个字母有几个即可,到不能动的串上来消耗。 C - Lunch Break 水题。 D - Counting Paths 组合数 阅读全文
摘要:
【题目链接】 A. Charm Is Not Always Enough 模拟一下就可以了。 #include <bits/stdc++.h> using namespace std; int T; int main() { scanf("%d", &T); while(T --) { int n, 阅读全文