Skip to content

Commit 1fd3a2f

Browse files
committed
Minutes Before the New Year
1 parent 85185a0 commit 1fd3a2f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

1283A.cpp

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
4+
5+
#define ll long long
6+
#define endl '\n'
7+
#define debug(n) cout<<(n)<<endl;
8+
const ll INF = 2e18 + 99;
9+
10+
int main(){
11+
ios_base::sync_with_stdio(false);
12+
cin.tie(NULL);
13+
14+
int t;
15+
cin>>t;
16+
int h, m;
17+
while(t--){
18+
cin>>h;
19+
cin>>m;
20+
cout<<(1440 - (h * 60) - m)<<endl;
21+
}
22+
}

0 commit comments

Comments
 (0)