/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void findfur(int, int, int&, int&)':
/in/foo.cc:13:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<G[x].size();i++) if(!vis[G[x][i].first]){
              ~^~~~~~~~~~~~
/in/foo.cc: In function 'void justdfs(int, int, int)':
/in/foo.cc:24:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<G[x].size();i++) if(!vis[G[x][i].first]){
              ~^~~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:49:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<route.size();i++) vis[route[i]]=1;
              ~^~~~~~~~~~~~~
/in/foo.cc:50:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0,nouse;i<route.size();i++) findfur(route[i],0,nouse,dist[i]),sd=max(sd,dist[i]);
                    ~^~~~~~~~~~~~~
/in/foo.cc:51:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0,j=0;i<route.size();i++){
                  ~^~~~~~~~~~~~~
/in/foo.cc:52:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      while(j+1<route.size()&&e[route[j]][route[j+1]]+len<=s) len+=e[route[j]][route[j+1]],j++;
            ~~~^~~~~~~~~~~~~
/in/foo.cc:54:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      if(i+1<route.size())len-=e[route[i]][route[i+1]],al+=e[route[i]][route[i+1]];
         ~~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 29ms 35.059 MiB
#2 Accepted 28ms 35.02 MiB
#3 Accepted 28ms 35.0 MiB
#4 Accepted 28ms 34.996 MiB
#5 Accepted 28ms 35.086 MiB
#6 Accepted 27ms 35.125 MiB
#7 Accepted 28ms 35.039 MiB
#8 Accepted 28ms 35.133 MiB
#9 Accepted 28ms 35.148 MiB
#10 Accepted 28ms 35.027 MiB

信息

递交者
类型
递交
题目
P1362 树网的核
语言
C++
递交时间
2021-02-23 15:06:25
评测时间
2021-02-23 15:06:25
评测机
分数
100
总耗时
284ms
峰值内存
35.148 MiB