Accepted

/in/foo.cc: In function 'long long int get(int, int, int, int)':
/in/foo.cc:11:16: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
   11 |         if(y1<0&&y<0||y1>0&&y>0) return 1LL *abs(x-x1)+abs(y-y1);
      |            ~~~~^~~~~
/in/foo.cc:30:1: warning: control reaches end of non-void function [-Wreturn-type]
   30 | }
      | ^
# 状态 耗时 内存占用
#1 Accepted 1ms 504.0 KiB
#2 Accepted 1ms 348.0 KiB
#3 Accepted 1ms 532.0 KiB
#4 Accepted 1ms 376.0 KiB
#5 Accepted 1ms 488.0 KiB
#6 Accepted 1ms 516.0 KiB
#7 Accepted 1ms 536.0 KiB
#8 Accepted 1ms 344.0 KiB
#9 Accepted 1ms 348.0 KiB
#10 Accepted 1ms 352.0 KiB

信息

递交者
类型
递交
题目
P3143 城市隔离 pta202605T4
语言
C++
递交时间
2026-10-23 21:34:50
评测时间
2026-10-23 21:34:50
评测机
分数
100
总耗时
17ms
峰值内存
536.0 KiB