Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:15: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
    7 |         if(0<P<=10)
      |            ~~~^~~~
/in/foo.cc:7:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
    7 |         if(0<P<=10)
      |            ~^~
/in/foo.cc:11:16: warning: comparison of constant '100' with boolean expression is always true [-Wbool-compare]
   11 |         if(20<P<=100)
      |            ~~~~^~~~~
/in/foo.cc:11:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   11 |         if(20<P<=100)
      |            ~~^~
# 状态 耗时 内存占用
#1 Wrong Answer 2ms 508.0 KiB
#2 Wrong Answer 2ms 480.0 KiB
#3 Wrong Answer 2ms 404.0 KiB
#4 Wrong Answer 2ms 484.0 KiB
#5 Wrong Answer 3ms 524.0 KiB
#6 Wrong Answer 2ms 528.0 KiB
#7 Wrong Answer 3ms 432.0 KiB
#8 Wrong Answer 5ms 472.0 KiB
#9 Wrong Answer 6ms 536.0 KiB
#10 Wrong Answer 2ms 532.0 KiB

信息

递交者
类型
递交
题目
P3009 手机电量显示202512GESP1级T2
比赛
2026.1.10初级班结业测试
语言
C++
递交时间
2026-01-10 09:25:04
评测时间
2026-01-10 09:25:04
评测机
分数
0
总耗时
33ms
峰值内存
536.0 KiB