/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void build(int, int, int)':
/in/foo.cc:14:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int m=l+r>>1;
        ~^~
/in/foo.cc: In function 'void update(int, int, int, int, int, int)':
/in/foo.cc:35:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int m=l+r>>1;
        ~^~
/in/foo.cc: In function 'void DFS(int, int, int)':
/in/foo.cc:42:41: warning: format '%d' expects argument of type 'int', but argument 4 has type 'll {aka long long int}' [-Wformat=]
  printf("a[%d]..a[%d]: %d\n",l,r,ss[now]);
                                         ^
/in/foo.cc:44:9: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  int m=l+r>>1;
        ~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:59:5: warning: unused variable 'Ans' [-Wunused-variable]
  ll Ans;
     ^~~
# 状态 耗时 内存占用
#1 Accepted 2ms 944.0 KiB
#2 Accepted 11ms 1.137 MiB
#3 Accepted 135ms 5.586 MiB
#4 Accepted 362ms 10.73 MiB
#5 Accepted 345ms 10.727 MiB

信息

递交者
类型
递交
题目
P3164 小H的序列问题
语言
C++
递交时间
2025-12-24 15:24:46
评测时间
2025-12-24 15:24:46
评测机
分数
100
总耗时
857ms
峰值内存
10.73 MiB