1 条题解

  • 0
    @ 2024-8-12 9:41:47
    #include<bits/stdc++.h>
    using namespace std;
    int lh,lm,rh,rm;
    int main(){
    	ios::sync_with_stdio(NULL);
    	cin.tie(0);cout.tie(0);
    	cin>>lh>>lm>>rh>>rm;
    	int sum=(rh-lh)*60+rm-lm;
    	cout<<sum/60<<' '<<sum%60;
    	return 0;
    } 
    
    • 1

    信息

    ID
    538
    时间
    1000ms
    内存
    256MiB
    难度
    9
    标签
    递交数
    10
    已通过
    7
    上传者