/ Vijos /

记录详情

Accepted

foo.cc: In function 'void addedge(int, int, int)':
foo.cc:23:48: warning: narrowing conversion of 'G[to].std::vector<edges>::size()' from 'std::vector<edges>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
     G[from].push_back((edges){to,cap,G[to].size()});
                                      ~~~~~~~~~~^~
foo.cc:24:50: warning: narrowing conversion of '(G[from].std::vector<edges>::size() - 1)' from 'std::vector<edges>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
     G[to].push_back((edges){from,0,G[from].size()-1});
                                    ~~~~~~~~~~~~~~^~
foo.cc: In function 'void bfs(int)':
foo.cc:33:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<G[u].size();++i){
                     ~^~~~~~~~~~~~
foo.cc: In function 'int dfs(int, int, int)':
foo.cc:44:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int& i=iter[u];i<G[u].size();++i){
                        ~^~~~~~~~~~~~
foo.cc: In function 'int max_flow(int, int)':
foo.cc:64:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
         while(f=dfs(s,t,INF))flow+=f;
               ~^~~~~~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
正在同步测试数据,请稍后
{"receive":"2020-07-22T06:03:18.381Z","handle":"2020-07-22T06:03:18.381Z","cache_start":"2020-07-22T06:03:18.388Z","read_cases":"2020-07-22T06:03:18.859Z","judge":"2020-07-22T06:03:18.860Z","done":"2020-07-22T06:03:19.415Z"}
# 状态 耗时 内存占用
#1 Accepted 2ms 5.125 MiB
#2 Accepted 3ms 5.125 MiB
#3 Accepted 2ms 5.125 MiB
#4 Accepted 4ms 5.25 MiB
#5 Accepted 5ms 5.5 MiB
#6 Accepted 7ms 5.625 MiB
#7 Accepted 9ms 5.75 MiB
#8 Accepted 11ms 5.875 MiB
#9 Accepted 12ms 6.0 MiB
#10 Accepted 11ms 5.965 MiB

信息

递交者
类型
递交
题目
P1555 狼和羊的故事
语言
C++
递交时间
2020-07-22 14:03:18
评测时间
2020-07-22 14:03:18
评测机
分数
100
总耗时
71ms
峰值内存
6.0 MiB