80分求助(样例3WA)
查看原帖
80分求助(样例3WA)
1436107
封禁用户楼主2025/1/12 14:35
#include<bits/stdc++.h>
using namespace std;
void shuchu(int a,int b,int c,int x)
{
    if(x == 1)
    {
        if(b > c)
        {
            cout << "art";
        }
        else
        {
            cout << "comprehensive";
        }
    }
    else
    {
        if(a < b && a < c)
        {
            cout << "library";
        }
        else if(b < a && b < c)
        {
            cout << "comprehensive";
        }
        else
        {
            cout << "art";
        }
    }
}
int main()
{
    int n;
    cin >> n;
    int a, b, c;
    cin >> a >> b >> c;
    if(n > 3)
    {
        shuchu(a, b, c, 1);
    }
    if(n <= 3)
    {
        shuchu(a, b, c, 0);
    }
    if(n > 5)
    {
        cout << "art";
    }
    return 0;
}
2025/1/12 14:35
加载中...