Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
261 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    int H, Y, h, m,x;  //x=1440 - (h*60+m)
    cin >> Y;
    for (int i=0; i < Y; i++) {
        cin >> h >> m;
        x=(1440 - h * 60 - m);
        cout << x;
    }                       
  
}