这个~~~~那个~~~~水一下题

071maozihan 2022-04-14 19:04:37 2022-04-19 13:05:04 11 返回题目

毕竟没有大佬会在这里,我偷偷地在初学者面前装个B~~~~~

我的做法可能比较简单~~~~~~~

————————————————————————

#include <bits/stdc++.h>

#define int long long

using namespace std;

signed main() {

int a,b,c,d;

int sum1,sum2;

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

sum1=a*60+b;

sum2=c*60+d;

int tmp=sum2-sum1;

cout<<tmp/60<<" "<<tmp%60;

return 0;

}

{{ vote && vote.total.up }}