Wrong Answer

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

信息

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