/ Vijos /

记录详情

Accepted

foo.cc: In function ‘int SPFA(int)’:
foo.cc:29:92: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
   29 |                                 if (map[i][j] == 1 && (!(x & (1 << (j - 1))))) y += 1 << j - 1;
      |                                                                                          ~~^~~
foo.cc:30:90: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses]
   30 |                                 if (map[i][j] == -1 && (x & (1 << (j - 1)))) y -= 1 << j - 1;
      |                                                                                        ~~^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB
#2 Accepted 2ms 552.0 KiB
#3 Accepted 3ms 552.0 KiB
#4 Accepted 2ms 536.0 KiB
#5 Accepted 2ms 536.0 KiB
#6 Accepted 2ms 536.0 KiB
#7 Accepted 2ms 536.0 KiB
#8 Accepted 3ms 764.0 KiB
#9 Accepted 6ms 324.0 KiB
#10 Accepted 7ms 356.0 KiB

信息

递交者
类型
递交
题目
P1026 毒药?解药?
语言
C++
递交时间
2025-02-11 10:59:23
评测时间
2025-02-11 10:59:23
评测机
分数
100
总耗时
37ms
峰值内存
764.0 KiB