3 solutions

  • 1
    @ 2025-7-2 14:31:55
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b;
        cin>>a>>b;
        cout<<a/b<<" "<<a%b;
        return 0;
    }
    
    • 0
      @ 2024-7-24 16:29:29
      #include<bits/stdc++.h>
      using namespace std;
      int main(){int a,b;cin>>a>>b;cout<<a/b<<" "<<a%b;return 0;}
      
      • -4
        @ 2024-7-12 10:27:29
        #include<bits/stdc++.h>
        using namespace std;
        int main(){
            int a,b;
            cin>>a>>b;
            cout<<a/b<<' '<<a%b;
            return 0;
        }
        
        • 1

        Information

        ID
        840
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        2
        Tags
        (None)
        # Submissions
        142
        Accepted
        91
        Uploaded By