/ 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 532.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 2ms 528.0 KiB
#4 Accepted 2ms 548.0 KiB
#5 Accepted 3ms 532.0 KiB
#6 Accepted 2ms 764.0 KiB
#7 Accepted 2ms 488.0 KiB
#8 Accepted 2ms 580.0 KiB
#9 Accepted 6ms 536.0 KiB
#10 Accepted 7ms 568.0 KiB

信息

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