1 solutions

  • 0
    @ 2025-12-3 11:01:44

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int a,b,c;
    int main()
    {
    	cin>>a>>b>>c;
    	if(a%b==0){
    		cout<<a/b;
    	}
    	else{
    		cout<<a/c;
    	}
    }
    
    • 1

    Information

    ID
    795
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    6
    Tags
    (None)
    # Submissions
    15
    Accepted
    13
    Uploaded By