C++ :
#include<bits/stdc++.h> using namespace std; int main(){ int sh,sm,eh,em; cin>>sh>>sm>>eh>>em; int t = 0; t = (eh-sh)*60+em-sm; cout<<t; return 0; }
使用您的 YanhuOJ 通用账户