Wrong Answer

foo.cc: In function 'int main()':
foo.cc:13:14: warning: comparison of constant '20' with boolean expression is always true [-Wbool-compare]
        if(2<n<20)cout<<setprecision(1)<<fixed<<(n-2)*4.+21;
           ~~~^~~
foo.cc:13:12: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
        if(2<n<20)cout<<setprecision(1)<<fixed<<(n-2)*4.+21;
           ~^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Wrong Answer Read 10.517.0, expect 21.0. 2ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 388.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 2ms 384.0 KiB
#9 Accepted 1ms 384.0 KiB
#10 Wrong Answer 0a1 > 93.0 2ms 384.0 KiB

信息

递交者
类型
递交
比赛
初二开学分层赛
语言
C++
递交时间
2021-09-01 13:49:00
评测时间
2021-09-01 13:49:00
评测机
分数
80
总耗时
21ms
峰值内存
388.0 KiB