/ Vijos /

记录详情

Accepted

foo.cc: In function 'void spfa(int)':
foo.cc:25:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for(int i=0;i<a[x].to.size();i++){
                     ~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:36:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d%d%d%d",&n,&k,&m,&s,&t);
     ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:37:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     For(i,1,n) scanf("%d",&c[i]);
                ~~~~~^~~~~~~~~~~~
foo.cc:38:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     For(i,1,k) For(j,1,k) scanf("%d",&map[i][j]);
                           ~~~~~^~~~~~~~~~~~~~~~~
foo.cc:41:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d%d%d",&x,&y,&z);
         ~~~~~^~~~~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 396.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 400.0 KiB
#5 Accepted 2ms 400.0 KiB
#6 Accepted 2ms 512.0 KiB
#7 Accepted 2ms 416.0 KiB
#8 Accepted 3ms 492.0 KiB
#9 Accepted 3ms 464.0 KiB
#10 Accepted 3ms 404.0 KiB

信息

递交者
类型
递交
题目
P1794 文化之旅
语言
C++
递交时间
2021-04-17 21:57:56
评测时间
2021-04-17 21:57:56
评测机
分数
100
总耗时
26ms
峰值内存
512.0 KiB