4 条题解

  • 1
    @ 2025-9-24 15:40:26
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a,b;
        cin>>a>>b;
        cout<<a/b<<" "<<a%b;
        return 0;
    }
    
    
    
    
    
    • 0
      @ 2026-5-17 10:49:35
      #include <iostream>
      using namespace std;
      
      int main() {
      
          int dividend, divisor;
          
          
          cin >> dividend >> divisor;
          
      
          int quotient = dividend / divisor;  // 整除求商
          int remainder = dividend % divisor; // 取余求余数
          
          cout << quotient << " " << remainder << endl;
          
          return 0;
      }
      
      • 0

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

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

          制作不易,点个赞再拿走嘛

          • 1

          信息

          ID
          10
          时间
          1000ms
          内存
          256MiB
          难度
          1
          标签
          递交数
          376
          已通过
          159
          上传者