Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
212 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main() {
	int a, b, c,d;
	cin >> a;
	d = 0;
	for (int i = 0; i < a; i++){
		cin >> b >> c;
		d += (b * 60) + c;
		cout << 1440 - d << endl;
		d = 0;
	}

}