/ Vijos /

记录详情

Accepted

foo.cc: In function 'void spt::splay(int, int&)':
foo.cc:54:24: warning: suggest parentheses around comparison in operand of '^' [-Wparentheses]
   54 |                 if(L(y)==x^L(z)==y)rotate(x,k);
      |                        ^
foo.cc: In function 'void spt::opt::init(int)':
foo.cc:85:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   85 |             for(int i=1;i<=n;i++)scanf("%d",&a[i]);
      |                                  ~~~~~^~~~~~~~~~~~
foo.cc: In function 'void spt::opt::ins(int, int)':
foo.cc:113:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  113 |             for(int i=0;i<tot;i++)scanf("%d ",&a[i]);
      |                                   ~~~~~^~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:125:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  125 |     int n,m;scanf("%d %d\n",&n,&m);
      |             ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:129:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  129 |         scanf("%s",s);
      |         ~~~~~^~~~~~~~
foo.cc:130:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  130 |         if(s[2]!='X')scanf("%d %d",&p,&t);
      |                      ~~~~~^~~~~~~~~~~~~~~
foo.cc:131:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  131 |         if(s[2]=='K')scanf("%d",&k);
      |                      ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 2.25 MiB
#2 Accepted 3ms 2.25 MiB
#3 Accepted 259ms 2.875 MiB
#4 Accepted 66ms 2.875 MiB
#5 Accepted 125ms 3.5 MiB
#6 Accepted 247ms 5.367 MiB
#7 Accepted 583ms 5.492 MiB
#8 Accepted 614ms 18.617 MiB
#9 Accepted 420ms 19.129 MiB
#10 Accepted 458ms 20.242 MiB

信息

递交者
类型
递交
题目
P1835 维护数列
语言
C++
递交时间
2021-12-30 21:04:08
评测时间
2021-12-30 22:01:06
评测机
分数
100
总耗时
2785ms
峰值内存
20.242 MiB