GSS4 - Can you answer these queries IV || luogu4145上帝造题的七分钟2 / 花神游历各国 GSS4 - Can you answer these queries IV 题目链接:https://www.luogu.org/problemnew/show/SP2713 线段树经典题目,然而被我用分块A了. 对于区间开根号,\(1e18\)最多会被开\(6\)次就会成为\(1\),成为\(1\)后,再开根号也是\(1\),0开根号也是0,线段树(分块…
#include<cstdio> #include<cmath> #include<iostream> #define M 100006 using namespace std; struct data { int l,r; long long zhi; bool kg; }shu[*M]; int n,m; void jian(int a1,int l,int r) { shu[a1].l=l; shu[a1].r=r; if(l==r) { scanf("…