You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
360 B

#include <bits/stdc++.h>
using namespace std;
int main() {
//输入+输出重定向
freopen("../time.in", "r", stdin);
freopen("../time.out", "w", stdout);
int a, b, c, d;
cin >> a >> b >> c >> d;
cout << c * 60 + d - a * 60 - b << endl;
//关闭文件
fclose(stdin);
fclose(stdout);
return 0;
}