22 条题解

  • 3
    @ 2024-2-22 11:20:32
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int a,b,c,d,e,f,x;
        cin>>a>>b>>c>>d;
        x=60*c+d-60*a-b;
        e=x/60;
        f=x-60*e;
        cout<<e<<" "<<f;
    	return 0;
    }
    
    • 2
      @ 2024-7-16 10:41:30
      #include<bits/stdc++.h>
      using namespace std;
      int main(){
      	int a,b,c,d,e,f,g;
      	cin>>a>>b>>c>>d;
      	g=(60*c+d)-(60*a+b);
      	e=g/60;
      	f=g%60;
      	cout<<e<<" "<<f;
      	return 0;
      }
      
      • 2
        @ 2024-5-29 16:57:55

        #include<bits/stdc++.h> using namespace std; int main(){ int n,a=1,i=0,r=1,h; cin>>n; h=n; for(int c=1;c<=n;c++){ for(int d=1;d<=n;d++){ if(a<10) cout<<0; cout<<a; a++; } cout<<endl; } cout<<endl; for(int m=1;m<=n;m++){ for(int q=2;q<=h;q++){ cout<<" "; } h--; i++; for(int f=1;f<=i;f++){

        if(r<10) cout<<0;
        		cout<<r;
        		r++;
        	}
        	cout<<endl;
        }
        return 0;
        

        }

        • 2
          @ 2024-2-23 8:22:04
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
              int a,b,c,d,e,f,x;
              cin>>a>>b>>c>>d;
              x=60*c+d-60*a-b;
              e=x/60;
              f=x-60*e;
              cout<<e<<" "<<f;
          	return 0;
          }
          
          • 1
            @ 2024-3-3 10:30:21
            • #include<bits/stdc++.h>
              using namespace std;
              int main(){
                  int a,b,c,d,e,f,x;
                  cin>>a>>b>>c>>d;
                  x=60*c+d-60*a-b;
                  e=x/60;
                  f=x-60*e;
                  cout<<e<<" "<<f;
              	return 0;
              }
              

              Copy *

            • 1
              @ 2024-2-23 18:12:23
              #include<bits/stdc++.h>
              using namespace std;
              int main(){
                  int a,b,c,d,e,f,x;
                  cin>>a>>b>>c>>d;
                  x=60*c+d-60*a-b;
                  e=x/60;
                  f=x-60*e;
                  cout<<e<<" "<<f;
              	return 0;
              }
              
              • 1
                @ 2024-2-23 9:56:10
                #include<bits/stdc++.h>
                using namespace std;
                int main(){
                    int a,b,c,d,e,f,x;
                    cin>>a>>b>>c>>d;
                    x=60*c+d-60*a-b;
                    e=x/60;
                    f=x-60*e;
                    cout<<e<<" "<<f;
                	return 0;
                }
                
                • 1
                  @ 2024-2-23 8:22:09
                  #include<bits/stdc++.h>
                  using namespace std;
                  int main(){
                      int a,b,c,d,e,f,x;
                      cin>>a>>b>>c>>d;
                      x=60*c+d-60*a-b;
                      e=x/60;
                      f=x-60*e;
                      cout<<e<<" "<<f;
                  	return 0;
                  }
                  
                  • 1
                    @ 2024-2-23 8:22:03
                    #include<bits/stdc++.h>
                    using namespace std;
                    int main(){
                        int a,b,c,d,e,f,x;
                        cin>>a>>b>>c>>d;
                        x=60*c+d-60*a-b;
                        e=x/60;
                        f=x-60*e;
                        cout<<e<<" "<<f;
                    	return 0;
                    }
                    
                    • 1
                      @ 2024-2-23 8:21:55
                      #include<bits/stdc++.h>
                      using namespace std;
                      int main(){
                          int a,b,c,d,e,f,x;
                          cin>>a>>b>>c>>d;
                          x=60*c+d-60*a-b;
                          e=x/60;
                          f=x-60*e;
                          cout<<e<<" "<<f;
                      	return 0;
                      }
                      
                      • 1
                        @ 2024-2-23 8:21:46
                        #include<bits/stdc++.h>
                        using namespace std;
                        int main(){
                            int a,b,c,d,e,f,x;
                            cin>>a>>b>>c>>d;
                            x=60*c+d-60*a-b;
                            e=x/60;
                            f=x-60*e;
                            cout<<e<<" "<<f;
                        	return 0;
                        }
                        
                        • 1
                          @ 2024-2-22 10:34:27
                          #include<bits/stdc++.h>
                          using namespace std;
                          int main(){
                              int a,b,c,d,e,f,x;
                              cin>>a>>b>>c>>d;
                              x=60*c+d-60*a-b;
                              e=x/60;
                              f=x-60*e;
                              cout<<e<<" "<<f;
                          	return 0;
                          }
                          
                          • 1
                            @ 2024-2-22 10:05:34
                            #include<bits/stdc++.h>
                            using namespace std;
                            int main(){
                                int a,b,c,d,e,f,x;
                                cin>>a>>b>>c>>d;
                                x=60*c+d-60*a-b;
                                e=x/60;
                                f=x-60*e;
                                cout<<e<<" "<<f;
                            	return 0;
                            }
                            
                            • 1
                              @ 2023-10-18 21:04:17

                              #include

                              using namespace std;

                              int main(){

                              int a,b,c,d;

                              cin>>a>>b>>c>>d;

                              int re,e,f;

                              re = (c60+d)-(60a+6);

                              e=re/60;

                              f=re%60;

                              cout<<e<<" "<<f;

                              return 0;

                              }

                              • 0
                                @ 2024-11-5 20:13:37
                                #include <iostream>
                                using namespace std;
                                int main(){
                                	
                                	int a,b,c,d;
                                    cin>>a>>b>>c>>d;
                                    if (d>=b)    cout<<c-a<<" "<<d-b;
                                    else       cout<<c-a-1<<" "<<d+60-b;
                                
                                	return 0 ;
                                }
                                
                                • -1
                                  @ 2024-10-12 23:18:59

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

                                  • -1
                                    @ 2024-7-16 10:42:54

                                    #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f,x; cin>>a>>b>>c>>d; x=60c+d-60a-b; e=x/60; f=x-60*e; cout<<e<<" "<<f; return 0; }

                                    • -1
                                      @ 2024-2-22 18:55:28

                                      #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f,x,z,y; cin>>a>>b>>c>>d; e=a60+b; f=c60+d; x=f-e; z=x/60; y=x%60; cout<<z<<" "<<y; return 0; }

                                      • -1
                                        @ 2024-2-22 11:17:28

                                        #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f,x; cin>>a>>b>>c>>d; x=60c+d-60a-b; e=x/60; f=x-60*e; cout<<e<<" "<<f; return 0; }

                                        • -1
                                          @ 2024-2-22 10:41:33

                                          #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f,j; cin>>a>>b>>c>>d; e=60c+d-60a-b; f=e/60; j=e%60; cout<<f<<" "<<j; }

                                          信息

                                          ID
                                          612
                                          时间
                                          1000ms
                                          内存
                                          125MiB
                                          难度
                                          4
                                          标签
                                          递交数
                                          595
                                          已通过
                                          267
                                          上传者