1 solutions

  • 0
    @ 2025-3-26 21:10:59

    其实,这道题来来去去就是 33 种情况,要么 a,ba,b55cc77;要么是 a,ca,c55bb77;要么是 b,cb,c55aa77,其他的就都输出 NO 即可。Atcoder 的题记得换行!

    #include "iostream"
    using namespace std;
    int main(){
        int a,b,c;
        cin>>a>>b>>c;
        if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5))cout<<"YES\n";
        else cout<<"NO\n";
        return 0;
    }
    
    • 1

    Information

    ID
    17774
    Time
    2000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    138
    Accepted
    22
    Uploaded By