首先,先谈谈快读快写
这是我一开始的输入输出
cin>>a;
cout<<a;然后,因为在一次模拟赛中 c i n cin cin被卡掉了,于是,我就改用
scanf("%d",&a);
printf("%d",a);可是,又有一道…
#10116. 「一本通 4.1 练习 1」清点人数(题目链接)
树状数组板子题
#include <bits/stdc.h>
using namespace std;
const int maxn 5e5500;
int sum[maxn];
int mp[maxn];
int n,m;
int low(int x){return x&(-x);
}
int qur(int x){int an 0;while(x){an sum[x…