4 条题解

  • 1
    @ 2025-4-9 20:24:06

    这题考察的是你的基础思考能力 ,
    考到了两个知识点 / 和 % 的应用 '/'代表整除 '%'代表求余 所以只需要输出一下 a/b的值 和 a/b的余数 即可. 简单

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a,b;
        cin>>a>>b;
        cout<<a/b<<" "<<a%b;
        return 0;
    }
    
    • 1
      @ 2025-2-12 20:38:12
      #include <bits/stdc++.h>
      #define yy return 0;
      using namespace std;
      int main(){
          int a,b;
          cin>>a>>b;
          cout<<a/b<<" "<<a%b;// /代表整除 %代表取余
          yy
      }
      • 1
        @ 2024-11-30 20:18:33

        题解如下:

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

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

          • 1

          信息

          ID
          4460
          时间
          1000ms
          内存
          128MiB
          难度
          1
          标签
          (无)
          递交数
          307
          已通过
          224
          上传者