Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 527 Bytes

C++小鱼的游泳时间.md

File metadata and controls

19 lines (16 loc) · 527 Bytes

在这里插入图片描述 程序:

//Author:PanDaoxi (File 7)
#include <iostream>
using namespace std;

int main(){
	int sh,sm,eh,em;
	cin >> sh >> sm >> eh >> em;
	int x = sh * 60 + sm;
	int y = eh * 60 + em;
	int z = y - x;
	cout << z / 60 << " " << z % 60 << endl; 
	return 0;
}