1 solutions

  • 1
    @ 2025-7-5 15:02:06
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int n;
        cin>>n;
        for(int i=2;i<=n;i++){
            if(n%i==0){
                cout<<n/i;
                return 0;
            }
        }
    }
    • 1

    Information

    ID
    5133
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    3
    Tags
    # Submissions
    102
    Accepted
    57
    Uploaded By