/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int query(int, int, int, int, int)':
/in/foo.cc:40:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int x=0;x<pi.size();x++) si+=num[lc[pi[x]]];
                ~^~~~~~~~~~
/in/foo.cc:41:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int x=0;x<pj.size();x++) sj+=num[lc[pj[x]]];
                ~^~~~~~~~~~
/in/foo.cc:44:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pi.size();x++) pi[x]=lc[pi[x]];
                   ~^~~~~~~~~~
/in/foo.cc:45:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pj.size();x++) pj[x]=lc[pj[x]];
                   ~^~~~~~~~~~
/in/foo.cc:49:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pi.size();x++) pi[x]=rc[pi[x]];
                   ~^~~~~~~~~~
/in/foo.cc:50:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       for(int x=0;x<pj.size();x++) pj[x]=rc[pj[x]];
                   ~^~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:83:12: warning: unused variable 'k' [-Wunused-variable]
    int i,j,k,t;
            ^
# 状态 耗时 内存占用
#1 Accepted 173ms 230.645 MiB
#2 Accepted 174ms 229.793 MiB
#3 Accepted 185ms 229.785 MiB
#4 Accepted 189ms 230.066 MiB
#5 Accepted 228ms 229.801 MiB
#6 Accepted 245ms 229.805 MiB
#7 Accepted 244ms 229.816 MiB
#8 Accepted 246ms 229.738 MiB
#9 Accepted 241ms 229.816 MiB
#10 Accepted 237ms 229.719 MiB

信息

递交者
类型
递交
题目
P2580 动态RKQ问题[1]
语言
C++
递交时间
2023-03-09 14:47:14
评测时间
2023-03-09 14:47:14
评测机
分数
100
总耗时
2167ms
峰值内存
230.645 MiB