#include <iostream>
int c(int h1, int m1, int h2, int m2) {
int currentTime = h1 * 60 + m1;
int alarmTime = h2 * 60 + m2; if (currentTime > alarmTime) {
alarmTime += 24 * 60; } return alarmTime - currentTime;
}int main() {
while (true) { int h1, m1, h2, m2;
std::cin >> h1 >> m1 >> h2 >> m2;
if (h1 == 0 && m1 == 0 && h2 == 0 && m2 == 0) {
break;
}
int s = c(h1, m1, h2, m2);
std::cout << s << std::endl;
}
return 0;
}
可以不要再丟程式碼了嗎??