1 条题解

  • 0
    @ 2024-8-2 16:19:44

    C++ :

    #include <bits/stdc++.h>
    using namespace std;
    int main() {
    int x,y,z,c = 0;
    cin>>x>>y>>z;
    if(x < 70 || y < 70 || z < 70) {
    cout<<"N";
    } else {
    if(x >= 90) c++;
    if(y >= 90) c++;
    if(z >= 90) c++;
    if(c >= 2 && (x + y + z) > 255) {
    cout<<x + y + z;
    } else {
    cout<<"N";
    } }
    return 0;
    }
    
    • 1

    信息

    ID
    981
    时间
    1000ms
    内存
    128MiB
    难度
    10
    标签
    递交数
    3
    已通过
    3
    上传者