10 条题解

  • 1
    @ 2024-1-25 20:43:55

    #include<bits/stdc++.h> using namespace std; int n,m; int main() { scanf("%d%d",&n,&m); cout<<n/m<<' '<<n%m; return 0; }

    • 1
      @ 2022-8-7 11:41:27

      这题挺简单的

      #include <bits/stdc++.h>
      using namespace std;
      int m, n;
      int main()
      {
          cin >> m >> n;
          cout << m / n << " " << m % n;
          return 0;
      }
      
      • 0
        @ 2023-9-27 23:27:04
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            int n,m;
            cin>>n>>m;
            cout<<n/m<<" "<<n-((n/m)*m);
            return 0;
        }
        
        • 0
          @ 2023-9-2 19:13:08
          #include <bits/stdc++.h>
          using namespace std;
          int main()
          {
              int x,y,num,sum;
              cin>>x>>y;
              num = x%y;
              sum = x/y;
              cout << sum << " " << num;
          }
          
          • 0
            @ 2023-8-29 19:54:51
            #include <bits/stdc++.h>
            using namespace std;
            int m,n;
            int main()
            {
                cin>>m>>n;
                cout<<m/n<<" "<<m%n;
                return 0;
            }
            
            • 0
              @ 2023-8-21 20:13:19

              两种语言解法(~ ̄▽ ̄)~

              1.c++代码

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

              2.python代码

              a = input().split()
              b = int(a[1])
              a = int(a[0])
              print(a // b , a % b)
              
            • 0
              @ 2023-7-13 10:36:22

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

              • 0
                @ 2023-5-19 22:52:05
                #include <iostream>//hetao3097453
                using namespace std;
                int main()
                {
                    int a,b;
                    cin >> a >> b;
                    cout << a / b << " " << a % b << endl;
                    return 0;
                }
                
                
                • -1
                  @ 2023-8-23 10:57:21

                  过辣!

                      long long m,n;
                      cin>>m>>n;
                      cout<<m/n<<" "<<m%n;
                  
                  • -3
                    @ 2022-9-1 16:39:59
                    cout<<m/n<<" "<<m%n;
                    
                    • 1

                    信息

                    ID
                    308
                    时间
                    1000ms
                    内存
                    16MiB
                    难度
                    6
                    标签
                    递交数
                    1536
                    已通过
                    426
                    上传者