/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int query(int, int, int, int, int)':
/in/foo.cc:30:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int x=0;x<pi.size();x++) si+=cnt[lc[pi[x]]];
                ~^~~~~~~~~~
/in/foo.cc:31:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int x=0;x<pj.size();x++) sj+=cnt[lc[pj[x]]];
                ~^~~~~~~~~~
/in/foo.cc:34: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:35: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:39: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:40: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:70:12: warning: unused variable 'k' [-Wunused-variable]
    int i,j,k,t;
            ^
# 状态 耗时 内存占用
#1 Accepted 2ms 380.0 KiB
#2 Accepted 3ms 496.0 KiB
#3 Accepted 8ms 1.457 MiB
#4 Accepted 8ms 1.445 MiB
#5 Accepted 53ms 7.805 MiB
#6 Accepted 71ms 12.652 MiB
#7 Accepted 56ms 12.555 MiB
#8 Accepted 56ms 12.668 MiB
#9 Accepted 60ms 12.602 MiB
#10 Accepted 54ms 12.57 MiB

信息

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