/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'db closepoint(std::vector<point>&, int, int)':
/in/foo.cc:46:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
     int mid=l+r>>1; db ans=min(closepoint(A,l,mid),closepoint(A,mid+1,r));
             ~^~
/in/foo.cc:49:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0;i<B.size();i++) for (int j=i+1;j<B.size()&&B[j].y-B[i].y<ans;j++) ans=min(ans,B[i].dis(B[j]));
                  ~^~~~~~~~~
/in/foo.cc:49:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i=0;i<B.size();i++) for (int j=i+1;j<B.size()&&B[j].y-B[i].y<ans;j++) ans=min(ans,B[i].dis(B[j]));
                                                 ~^~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 55ms 2.691 MiB
#2 Accepted 70ms 2.953 MiB
#3 Accepted 45ms 1.406 MiB
#4 Accepted 9ms 696.0 KiB
#5 Accepted 57ms 2.387 MiB
#6 Accepted 35ms 1.34 MiB
#7 Accepted 59ms 2.426 MiB
#8 Accepted 66ms 2.426 MiB
#9 Accepted 31ms 1.426 MiB
#10 Accepted 70ms 2.422 MiB

信息

递交者
类型
递交
题目
P1012 清帝之惑之雍正
语言
C++
递交时间
2019-01-30 12:35:57
评测时间
2019-01-30 12:35:57
评测机
分数
100
总耗时
501ms
峰值内存
2.953 MiB