我100分!1次过
查看原帖
我100分!1次过
1638002
Timmylang楼主2025/1/12 14:42
#include<bits/stdc++.h>
using namespace std;
int a,b,c,d,x,y,h,s;
int main() {
    cin>>a>>b>>c>>d;
    x=a*60+b;
    y=c*60+d;
    h=(y-x)/60;
    s=(y-x)%60;
    cout<<h<<" "<<s;
    return 0;
}

2025/1/12 14:42
加载中...