/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void readnum(int&)':
/in/foo.cc:15:2: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
  while (ch=getchar(),ch<'0'||ch>'9');x=x*10+ch-'0'; 
  ^~~~~
/in/foo.cc:15:38: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
  while (ch=getchar(),ch<'0'||ch>'9');x=x*10+ch-'0'; 
                                      ^
/in/foo.cc: In function 'bool YiCheck(int)':
/in/foo.cc:73:6: warning: unused variable 'cnt' [-Wunused-variable]
  int cnt=0,maxw=0;
      ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:102:16: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   if (YiCheck(l+r>>1)) r=l+r>>1;
               ~^~
/in/foo.cc:102:27: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   if (YiCheck(l+r>>1)) r=l+r>>1;
                          ~^~
/in/foo.cc:103:12: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   else l=(l+r>>1)+1;
           ~^~
# 状态 耗时 内存占用
#1 Accepted 7ms 17.133 MiB
#2 Accepted 7ms 16.301 MiB
#3 Accepted 7ms 16.301 MiB
#4 Accepted 7ms 16.316 MiB
#5 Accepted 7ms 16.309 MiB
#6 Accepted 9ms 16.75 MiB
#7 Accepted 9ms 16.32 MiB
#8 Accepted 8ms 16.555 MiB
#9 Accepted 8ms 18.305 MiB
#10 Accepted 8ms 15.324 MiB
#11 Accepted 60ms 25.719 MiB
#12 Accepted 77ms 28.859 MiB
#13 Accepted 127ms 30.105 MiB
#14 Accepted 175ms 24.961 MiB
#15 Accepted 192ms 32.156 MiB
#16 Accepted 242ms 29.082 MiB
#17 Accepted 110ms 28.637 MiB
#18 Accepted 138ms 29.105 MiB
#19 Accepted 171ms 27.969 MiB
#20 Accepted 554ms 64.816 MiB

信息

递交者
类型
递交
题目
P1983 运输计划
语言
C++
递交时间
2020-02-17 21:56:17
评测时间
2020-02-17 21:56:17
评测机
分数
100
总耗时
1931ms
峰值内存
64.816 MiB