2 solutions

  • 1
    @ 2026-2-23 11:28:57
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,a,b;
        cin>>n>>a>>b;
        int cnt=n/(a+b);
        cout<<cnt;
        return 0;
    }
    
    • -1
      @ 2025-11-27 11:54:18

      C++ :

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

      Information

      ID
      11
      Time
      1000ms
      Memory
      128MiB
      Difficulty
      7
      Tags
      # Submissions
      15
      Accepted
      9
      Uploaded By