/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void update(const int&, const int&, const int&)':
/in/foo.cc:32:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   32 |     const int&mid=L+R>>1;t[u]=Merge(t[u<<1],w1[mid],w2[mid],t[u<<1|1]);
      |                   ~^~
/in/foo.cc: In function 'void Build(const int&, const int&, const int&)':
/in/foo.cc:36:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   36 |     const int&mid=L+R>>1;Build(u<<1,L,mid);Build(u<<1|1,mid+1,R);update(u,L,R);
      |                   ~^~
/in/foo.cc: In function 'void Mdf(const int&, const int&, const int&, const int&, const int&)':
/in/foo.cc:40:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   40 |     const int&mid=L+R>>1;x<=mid?Mdf(u<<1,x,w,L,mid):Mdf(u<<1|1,x,w,mid+1,R);update(u,L,R);
      |                   ~^~
/in/foo.cc: In function 'void Update(const int&, const int&, const int&, const int&)':
/in/foo.cc:43:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   43 |     const int&mid=L+R>>1;if(x!=mid)x<=mid?Update(u<<1,x,L,mid):Update(u<<1|1,x,mid+1,R);update(u,L,R);
      |                   ~^~
/in/foo.cc: In function 'data Qry(const int&, const int&, const int&, const int&, const int&)':
/in/foo.cc:47:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   47 |     const int&mid=L+R>>1;if(r<=mid)return Qry(u<<1,l,r,L,mid);if(l>mid)return Qry(u<<1|1,l,r,mid+1,R);
      |                   ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:55:23: warning: variable 'x1' set but not used [-Wunused-but-set-variable]
   55 |             int x0,y0,x1,y1;x0=read();y0=read();x1=read();y1=read();
      |                       ^~
# 状态 耗时 内存占用
#1 Accepted 1ms 284.0 KiB
#2 Accepted 1ms 416.0 KiB
#3 Accepted 1ms 284.0 KiB
#4 Accepted 1ms 320.0 KiB
#5 Accepted 43ms 2.895 MiB
#6 Accepted 45ms 2.895 MiB
#7 Accepted 43ms 2.891 MiB
#8 Accepted 44ms 2.895 MiB
#9 Accepted 47ms 2.891 MiB
#10 Accepted 46ms 2.887 MiB

信息

递交者
类型
递交
题目
P1950 道路修建
语言
C++
递交时间
2026-10-28 21:54:30
评测时间
2026-10-28 21:54:30
评测机
分数
100
总耗时
276ms
峰值内存
2.895 MiB