Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:12:11: warning: comparison of constant '400' with boolean expression is always true [-Wbool-compare]
   12 |   if(150<x<=400) y=0.4663*x-3;
      |      ~~~~~^~~~~
/in/foo.cc:12:9: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   12 |   if(150<x<=400) y=0.4663*x-3;
      |      ~~~^~
# 状态 耗时 内存占用
#1 Accepted 2ms 480.0 KiB
#2 Wrong Answer 2ms 484.0 KiB
#3 Accepted 1ms 528.0 KiB
#4 Accepted 2ms 512.0 KiB
#5 Accepted 2ms 540.0 KiB
#6 Accepted 3ms 336.0 KiB
#7 Accepted 2ms 504.0 KiB
#8 Accepted 2ms 532.0 KiB
#9 Accepted 2ms 476.0 KiB
#10 Accepted 2ms 492.0 KiB

信息

递交者
类型
递交
题目
P2997 电费计算(money)
语言
C++
递交时间
2026-01-10 11:39:36
评测时间
2026-01-10 11:39:36
评测机
分数
90
总耗时
24ms
峰值内存
540.0 KiB