3 solutions

  • 0
    @ 2024-12-7 14:36:48

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

    Information

    ID
    860
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    181
    Accepted
    62
    Uploaded By