/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'int get_hash(int, int)':
/in/foo.cc:44:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i < T[u].size();i++){
                   ~~^~~~~~~~~~~~~
/in/foo.cc:57:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(;start < kind[tot].size() && kind[tot][start] == 1;start++);
          ~~~~~~^~~~~~~~~~~~~~~~~~
/in/foo.cc:58:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = start + 1;i < kind[tot].size();i++){
                           ~~^~~~~~~~~~~~~~~~~~
/in/foo.cc: In function 'int get_p(int, int)':
/in/foo.cc:72:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i < T[u].size();i++){
                   ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int get_node(int, int, std::vector<int>*)':
/in/foo.cc:106:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j = 0;j < G[i].size();j++){
                           ~~^~~~~~~~~~~~~
/in/foo.cc:119:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int j = 0;j < G[i].size();j++){
                           ~~^~~~~~~~~~~~~
/in/foo.cc:128:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int j = 0; j < ed[i].size(); ++ j)    if (ed[i][j]>0)
                             ~~^~~~~~~~~~~~~~
/in/foo.cc:138:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j = 0;j < G[i].size();j++) pst[j] = get_num(i , G[i][j]);
                       ~~^~~~~~~~~~~~~
/in/foo.cc:139:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j = 0;j < G[i].size();j++){
                       ~~^~~~~~~~~~~~~
/in/foo.cc:140:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int k = j + 1;k < G[i].size();k++){
                               ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'int brout(std::vector<int>*)':
/in/foo.cc:154:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j = 0;j < G[i].size();j++){
                       ~~^~~~~~~~~~~~~
/in/foo.cc:155:36: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
             neigh[i] |= (1<<G[i][j]-1);
                                     
/in/foo.cc:157:21: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
         connect[1<<i-1] = 1;
                    ~^~
/in/foo.cc:164:23: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
             if((i >> j-1) & 1) mask |= neigh[j];
                      ~^~
/in/foo.cc:167:27: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
             if((mask >> j - 1) & 1) {connect[i | (1<<j-1)] = 1;}
                         ~~^~~
/in/foo.cc:167:55: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
             if((mask >> j - 1) & 1) {connect[i | (1<<j-1)] = 1;}
                                                      ~^~
/in/foo.cc:172:24: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
             if(((i >> j-1) & 1) == 0) continue;
                       ~^~
/in/foo.cc:174:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for(int k = 0;k < G[j].size();k++){
                           ~~^~~~~~~~~~~~~
/in/foo.cc:175:31: warning: suggest parentheses around '-' inside '>>' [-Wparentheses]
                 if((i>>G[j][k]-1) & 1) {T[j].push_back(G[j][k]);}
                                
/in/foo.cc: In function 'void count()':
/in/foo.cc:199:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j = 0;j < T[i].size();j++) W[i].push_back(T[i][j]);
                       ~~^~~~~~~~~~~~~
/in/foo.cc: In function 'void find(int, int)':
/in/foo.cc:220:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0;i < E[u].size();i++){
                   ~~^~~~~~~~~~~~~
/in/foo.cc:228:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j = 0;j < kind[i].size();j++){
                       ~~^~~~~~~~~~~~~~~~
/in/foo.cc:238:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int j = 0;j < E[u].size();j++){
                       ~~^~~~~~~~~~~~~
/in/foo.cc:251:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if(siz >= kind[i].size())  dp[u][i] = (1LL * cop[siz][(1<<len) - 1] * C[siz - len][kind[i].size() - len]) % mod;
            ~~~~^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 13ms 24.379 MiB
#2 Accepted 13ms 24.793 MiB
#3 Accepted 14ms 24.434 MiB
#4 Accepted 18ms 24.496 MiB
#5 Accepted 18ms 24.672 MiB
#6 Accepted 27ms 24.82 MiB
#7 Accepted 53ms 25.289 MiB
#8 Accepted 237ms 26.602 MiB
#9 Accepted 2788ms 91.406 MiB
#10 Accepted 2793ms 93.125 MiB

信息

递交者
类型
递交
题目
P2041 线图
语言
C++
递交时间
2020-04-30 18:36:33
评测时间
2020-04-30 18:36:33
评测机
分数
100
总耗时
5979ms
峰值内存
93.125 MiB