题解
2025-01-13 17:10:51
发布于:江苏
15阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    for(int i=0;i<n;i++){
        int x,y;
        cin>>x>>y;
        if(x>6||x==6&&y<=1116){
            cout<<"Gold"<<"\n";
        }else if(x>4||x==4&&y<=556){
            cout<<"Silver"<<"\n";
        }else if(x>3||x==3&&y<=357){
            cout<<"Bronze"<<"\n";
        }else if(x>=1){
            cout<<"Ferrum"<<"\n";
        }else{
            cout<<"Traval"<<"\n";
        }
    }
    return 0;
}
这里空空如也







有帮助,赞一个