摘要:
目录: 16.91B.Queue(树状数组/线段树) 17.431C.K-Tree(树形DP+容斥) 18.1084D. The Fair Nut and the Best Path(树形DP) 19.1187C. Vasya And Array(构造) 20.768B. Code For 1(分治 阅读全文
摘要:
A. Add Odd or Subtract Even 思路: 相同直接为0,如果两数相差为偶数就为2,奇数就为1 #include<iostream> #include<algorithm> using namespace std; int main(){ int kk; scanf("%d",& 阅读全文
摘要:
A - Beginner(模拟) #include<iostream> #include<algorithm> #include<vector> using namespace std; typedef long long ll; int main() { ll n,r; cin>>n>>r; if 阅读全文