/ Vijos /

记录详情

Accepted

foo.cc: In function 'void RMQ_ST()':
foo.cc:39:38: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
   39 |    st[i][j]=max(st[i][j-1],st[i+(1<<j-1)][j-1]);
      |                                     ~^~
foo.cc: In function 'int main()':
foo.cc:52:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   52 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:55:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   55 |   scanf("%d",a+i);
      |   ~~~~~^~~~~~~~~~
foo.cc:58:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   58 |  scanf("%d",&m);
      |  ~~~~~^~~~~~~~~
foo.cc:61:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   61 |   scanf("%d %d",&l,&r);
      |   ~~~~~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 512.0 KiB
#2 Accepted 3ms 1.0 MiB
#3 Accepted 6ms 1.492 MiB
#4 Accepted 11ms 3.117 MiB
#5 Accepted 21ms 5.992 MiB
#6 Accepted 40ms 11.617 MiB
#7 Accepted 91ms 14.121 MiB
#8 Accepted 77ms 15.242 MiB
#9 Accepted 139ms 23.129 MiB
#10 Accepted 127ms 23.117 MiB

信息

递交者
类型
递交
题目
P1514 天才的记忆
语言
C++
递交时间
2022-01-31 19:11:32
评测时间
2022-01-31 19:11:32
评测机
分数
100
总耗时
523ms
峰值内存
23.129 MiB