/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:34:18: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
   34 |         if (n & 1==1)
      |                 ~^~~
foo.cc:70:25: warning: 'dd' may be used uninitialized in this function [-Wmaybe-uninitialized]
   70 |                         if (abs(n/2-j)<dd) {num=j;dd=abs(n/2-j);}
      |                         ^~
foo.cc:74:39: warning: 'num' may be used uninitialized in this function [-Wmaybe-uninitialized]
   74 |             second=change(second,a[num+1]);
      |                                    ~~~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 256.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 3ms 256.0 KiB
#5 Accepted 3ms 384.0 KiB
#6 Accepted 3ms 356.0 KiB
#7 Accepted 2ms 256.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 2ms 256.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1039 最小差距
语言
C++
递交时间
2022-08-18 17:42:35
评测时间
2022-08-18 17:42:35
评测机
分数
100
总耗时
27ms
峰值内存
384.0 KiB