/ Vijos /

记录详情

Accepted

foo.cc: In member function 'void Segment_tree::build(int, int, int)':
foo.cc:31:15: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid = l + r >> 1;
             ~~^~~
foo.cc: In member function 'void Segment_tree::update(int, int, int)':
foo.cc:42:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid = t[p].l + t[p].r >> 1;
             ~~~~~~~^~~~~~~~
foo.cc: In member function 'Segment_tree::node Segment_tree::query(int, int, int)':
foo.cc:53:20: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   int mid = t[p].l + t[p].r >> 1;
             ~~~~~~~^~~~~~~~
foo.cc: In function 'int main()':
foo.cc:65:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d", &n, &m);
  ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:67:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d", &a[i]);
   ~~~~~^~~~~~~~~~~~~
foo.cc:71:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d %d %d", &opt, &a, &b);
   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 400.0 KiB
#2 Accepted 14ms 988.0 KiB
#3 Accepted 39ms 2.387 MiB
#4 Accepted 30ms 4.027 MiB
#5 Accepted 161ms 5.191 MiB
#6 Accepted 272ms 28.613 MiB
#7 Accepted 324ms 30.395 MiB
#8 Accepted 323ms 30.379 MiB
#9 Accepted 229ms 30.367 MiB
#10 Accepted 230ms 30.387 MiB

信息

递交者
类型
递交
题目
P1083 小白逛公园
语言
C++
递交时间
2021-03-23 23:24:40
评测时间
2021-03-23 23:24:40
评测机
分数
100
总耗时
1628ms
峰值内存
30.395 MiB