14 条题解

  • 2
    @ 2023-5-11 21:22:55

    这种一年级的题目就不用说了吧(>ω・* )ノ

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

    求赞~QAQ

    • 1
      @ 2023-1-23 14:56:20
      #include<iostream>
      using namespace std;
      int main(){
      	int a,b;
      	cin>>a>>b;
      	cout<<a/b<<" "<<a%b;
      	return 0;
      }
      
      
      
      • 0
        @ 2023-12-14 22:44:32
        #include <stdio.h>
        int main()
        {
            int a,b;
            scanf("%d %d",&a,&b);
            printf("%d %d",a/b,a%b);
        }
        
        
        • 0
          @ 2023-8-23 13:17:36
          
          Note:
          ****************************************/
          #include <queue>
          #include <math.h>
          #include <stack>
          #include <vector>
          #include <stdio.h>
          #include <iostream>
          #include <vector>
          #include <iomanip>
          #include <string.h>
          #include <cstring>
          #include <algorithm>
          #define int long long
          using namespace std;
          const int N = 1e6 + 10;
          const int INF = 0x3f3f3f3f;
          int n,m;
          signed main(){
          	cin >> n >> m;
          	cout << n / m << " " << n % m << endl;
          	return 0;
          }
          
          
          • 0
            #include <iostream>
            #include <bits/stdc++.h>
            using namespace std;
            const int N=1e7+10;
            const int INF=0x3f3f3f3f;
            int main()
            {
            	int a,b;
            	cin>>a>>b;
            	if(a%b!=0)
            	{
            		cout<<a/b<<" "<<a%b;
            	}
            	else
            	{
            		cout<<a/b;
            	}
            }
            
            
            • -1
              @ 2022-9-13 17:38:24
              #include <bits/stdc++.h>
              
              using namespace std;
              
              int main(void)
              {
              	int a, b;
              
              	cin >> a >> b;
              
              	cout << a / b << " " << a % b;
              
              	return 0;
              }
              
              • -1
                @ 2022-1-24 9:33:39
                #include <stdio.h>
                #include <iostream>
                using namespace std;
                int main()
                {
                	int a,b;
                	cin >> a >> b;
                	cout << a/b << " " << a%b<<endl;
                }
                
                • -2
                  @ 2023-4-22 19:04:49

                  #include<iostream> using namespace std; int main(){ int n; int a; cin>>n>>a; cout<<n/a <<" "<<n%a<<endl; return 0; } 求点赞

                • -3
                  @ 2022-8-23 10:01:50
                  #include <bits/stdc++.h>
                  using namespace std;
                  
                  int main(void)
                  {
                  	int a, b;
                  	
                  	cin >> a >> b;
                  	
                  	cout << a / b << " " << a % b;
                  	
                  	return 0;
                  }
                  
                  • -3
                    @ 2022-4-24 14:46:08

                    #include <iostream> #include <cstdio> using namespace std; int main() { int a,b; cin>>a>>b; cout<<a/b<<" "<<a%b<<endl; return 0; }

                    • -4
                      @ 2022-10-20 17:31:32
                      #include <bits/stdc++.h>
                      
                      using namespace std;
                      
                      int main(void)
                      {
                      	int a, b;
                      
                      	cin >> a >> b;
                      
                      	cout << a / b << " " << a % b;
                      
                      	return 0;
                      }
                      
                      • -4
                        @ 2022-10-20 17:31:21
                        #include <bits/stdc++.h>
                        
                        using namespace std;
                        
                        int main(void)
                        {
                        	int a, b;
                        
                        	cin >> a >> b;
                        
                        	cout << a / b << " " << a % b;
                        
                        	return 0;
                        }
                        
                        • -4
                          @ 2022-9-25 15:16:19
                          #include <bits/stdc++.h>
                          
                          using namespace std;
                          
                          int main(void)
                          {
                          	int a, b;
                          
                          	cin >> a >> b;
                          
                          	cout << a / b << " " << a % b;
                          
                          	return 0;
                          }
                          
                          • -5
                            @ 2022-7-11 21:31:39

                            /crl(陈儒乐)/

                            #include<bits/stdc++.h>//网上查到的万能头//
                            
                            #include <queue>
                            
                            #include <math.h>
                            
                            #include <stack>
                            
                            #include <stdio.h>
                            
                            #include <iostream>
                            
                            #include <vector>
                            
                            #include <iomanip>
                            
                            #include <string.h>
                            
                            #include <algorithm>
                            
                            using namespace std;
                            
                            #define LL long long
                            
                            const int N = 1e5 + 10;
                            
                            const int INF = 0x3f3f3f3f;
                            
                            using namespace std;
                            
                            int main()
                            
                            {
                            
                                int a,b;
                            
                                cin >> a >> b;
                            
                            //  int c,d;
                            
                            //  c = a / b;
                            
                            //  d = a % b;
                            
                                cout << a / b << " " << a % b;
                            
                                return 0;
                            }
                            
                            • 1

                            信息

                            ID
                            839
                            时间
                            1000ms
                            内存
                            128MiB
                            难度
                            3
                            标签
                            递交数
                            981
                            已通过
                            505
                            上传者