1 条题解

  • 0
    @ 2025-3-9 10:21:34

    #include <bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; if (a%30 and a%50 and a%70){ cout<<3<<" "<<5<<" "<<7; } else if (a%30 and a%50){ cout<<3<<" "<<5; } else if (a%30 and a%70) { cout<<3<<" "<<7; } else if (a%50 and a%70){ cout<<5<<" "<<7; }
    else if (a%30) { cout<<3; }else if (a%50){ cout<<5; }else if (a%70) { cout<<7; } else cout<<'n'; return 0; }

    • 1

    信息

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