4 solutions

  • 2
    @ 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
      @ 2025-7-21 11:58:41
      #incude <bits/stdc++.h>
      using namespace std;
      int main()
      {
      	int a,b;
      	cin>>a>>b;
      	int z=a/b;
      	int c=a%b;
      	cout<<z<<" "<<c;
      	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
          1
          Tags
          (None)
          # Submissions
          156
          Accepted
          103
          Uploaded By