Codeforces 595C - Warrior and Archer

595C - Warrior and Archerhtml 思路:设最后答案的区间为[l,r],那么r-l等于n/2,由于在(l,r)中的点都是其中一我的挖掉的,[0,l)和(r,n]中的点是另外一我的挖掉的,二者相等。ios 代码:c++ #include<bits/stdc++.h> using namespace std; #define ll long long #define pb pu
相关文章
相关标签/搜索