AcWing 3758. 距离零点的时刻 Posted on 2021-07-10 Edited on 2024-11-24 In AcWing 123456789101112#include <iostream>using namespace std;int T, h, m;int main() { cin >> T; while (T--) { cin >> h >> m; int ans = (24 - h) * 60 - m; cout << ans << endl; } return 0;}