记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:40:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (Heap.size() > k) Heap.pop();
       ~~~~~~~~~~~~^~~
/in/foo.cc:41:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if (Heap.size() == k && Heap.top() - a[i].val.first > ans) {
       ~~~~~~~~~~~~^~~~
# 状态 耗时 内存占用
#1 Accepted 9ms 11.801 MiB
#2 Accepted 9ms 11.773 MiB
#3 Accepted 9ms 11.77 MiB
#4 Accepted 9ms 11.82 MiB
#5 Accepted 9ms 11.832 MiB
#6 Accepted 9ms 11.789 MiB
#7 Accepted 9ms 11.867 MiB
#8 Accepted 9ms 11.859 MiB
#9 Accepted 9ms 11.879 MiB
#10 Accepted 9ms 11.848 MiB
#11 Accepted 9ms 11.824 MiB
#12 Accepted 9ms 11.805 MiB
#13 Accepted 9ms 11.816 MiB
#14 Accepted 9ms 11.883 MiB
#15 Accepted 32ms 11.863 MiB
#16 Accepted 32ms 11.871 MiB
#17 Accepted 32ms 11.875 MiB
#18 Accepted 35ms 11.906 MiB
#19 Accepted 339ms 12.074 MiB
#20 Accepted 344ms 12.25 MiB

信息

递交者
类型
递交
题目
#4、失意
题目数据
下载
语言
C++
递交时间
2018-11-08 18:49:46
评测时间
2024-09-15 08:37:57
评测机
分数
100
总耗时
946ms
峰值内存
12.25 MiB