Accepted

foo.cc: In function ‘int main()’:
foo.cc:7:13: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
    7 |         if(x>=y>=z)
      |            ~^~~
foo.cc:9:18: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
    9 |         else if(x>=z>=y)
      |                 ~^~~
foo.cc:11:27: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
   11 |                 else if (y>=x>=z)
      |                          ~^~~
foo.cc:13:35: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
   13 |                         else if (y>=z>=x)
      |                                  ~^~~
foo.cc:15:43: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses]
   15 |                                 else if (z>=y>=x)
      |                                          ~^~~
# 状态 耗时 内存占用
#1 Accepted 3ms 540.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 2ms 324.0 KiB
#4 Accepted 2ms 540.0 KiB
#5 Accepted 2ms 764.0 KiB

信息

递交者
类型
递交
比赛
春季班初级3.30
语言
C++
递交时间
2024-04-02 20:55:18
评测时间
2024-04-02 20:55:18
评测机
分数
100
总耗时
14ms
峰值内存
764.0 KiB