用函数实现等级映射
multiset打表
比对
include<bits/stdc++.h>
using namespace std;
const int N = 10010;
int fun(int n){
if(n>=85) return 5;
else if(n>=45) return 4;
else if(n>=25) return 3;
else if(n>=1) return 2;
else return 1;
}
int main()
{
multiset
int flag=1;
int i;
int a[3];
cin>>a[0]>>a[1]>>a[2];
int b[3];
b[0]=fun(a[0]);
b[1]=fun(a[1]);
b[2]=fun(a[2]);
s.insert(b[0]);
s.insert(b[1]);
s.insert(b[2]);
s1={4,3,2};
s2={5,4,3};
s3={5,5,4};
s4={5,5,3};
s5={5,5,5};
if(s!=s1&&s!=s2&&s!=s3&&s!=s4&&s!=s5) cout<<"No";
else cout<<"Yes";
return 0;
}