/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'bool check(long long int)':
/in/foo.cc:44:28: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
  for(int i=1;i<=num;i++) if(no[son[i].id]) if(cnt[son[i].id])
                            ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:66:25: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  while(l<=r) check(mid=l+r>>1)?r=(ans=mid)-1:l=mid+1;
                        ~^~
/in/foo.cc:67:20: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
  printf("%lld",ans);
                    ^
# 状态 耗时 内存占用
#1 Accepted 4ms 568.0 KiB
#2 Accepted 5ms 632.0 KiB
#3 Accepted 2ms 600.0 KiB
#4 Accepted 2ms 600.0 KiB
#5 Accepted 3ms 724.0 KiB
#6 Accepted 11ms 1.48 MiB
#7 Accepted 8ms 1.148 MiB
#8 Accepted 37ms 3.492 MiB
#9 Accepted 279ms 6.879 MiB
#10 Accepted 1ms 264.0 KiB

信息

递交者
类型
递交
题目
P1783 疫情控制
语言
C++
递交时间
2019-06-16 21:20:37
评测时间
2019-06-16 21:20:37
评测机
分数
100
总耗时
357ms
峰值内存
6.879 MiB