29 条题解

  • 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
            @ 2025-2-19 13:35:09

            #include using namespace std; int main() { int a,b,c,d,t; cin>>a>>b>>c>>d; t=(c60+d)-(a60+b); cout<<t/60<<" "<<t%60; 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
                                  @ 2025-2-10 13:05:57

                                  #include using namespace std; int main(){ int o,i,v,n,a,b,y; cin>>o>>i>>v>>n; a=o60+i; b=v60+n; y=b-a; cout<<y/60<<" "<<y%60; return 0; }

                                  • 0
                                    @ 2025-2-10 10:38:37

                                    #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; }

                                    • 0
                                      @ 2025-2-10 10:36:29

                                      #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; }

                                      • 0
                                        @ 2025-2-10 10:22:12

                                        #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; }

                                        • 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 ;
                                          }
                                          

                                          信息

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