摘要:
7-14 Yet Another Bracket Sequence 给定一个序列,m次改变序列,问序列是否括号匹配。 把(看做+1,)看做-1,那么括号匹配的条件即为1到n的区间最小前缀和为0,且pre[ n ] 为0,用线段树模拟即可。 #include<bits/stdc++.h> using 阅读全文
摘要:
A - ^&^ HDU - 6702 给出 a,b 求 最小 结果即为 a&b #include<bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back const int N=1e2+50; in 阅读全文
摘要:
A - Big Number HDU - 1212 模拟十进制的除法 #include<bits/stdc++.h> using namespace std; const int inf=0x3f3f3f3f; const int N=1e5+500; int main(){ string s;in 阅读全文